• 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Suggestion] OnPlayerVehicleTakeDamage callback
#1
Hi, I'm new here and this is my first post.

I used to play sa-mp in the early 2010's and even started scripting my own gamemode, and since then I always missed an OnPlayerVehicleTakeDamage callback that would be called whenever a player's vehicle takes damage, similarly to OnPlayerTakeDamage being called when players themselves take damage, and would have similar parameters like issuerid (the player who gave the damage or INVALID_PLAYER_ID if nobody did), weaponid and float:ammount. Such a callback would allow us to detect which player damaged another player's vehicle, which would be so useful in vehicle combat situations (like for example a tank fight or a Rustler dogfight minigame) so you could reward the player who damages or destroys their rivals' vehicles.
  Reply


Messages In This Thread
OnPlayerVehicleTakeDamage callback - by Username - 2023-10-12, 05:54 PM

Forum Jump: