Check if player dealing damage is in vehicle - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Check if player dealing damage is in vehicle (
/showthread.php?tid=521541)
Check if player dealing damage is in vehicle -
maramizo - 23.06.2014
I need to check if a player just hit another player while driving, would checking if GetPlayerVehicleID(issuerid) != 0 under OnPlayerTakeDamage work?
Re: Check if player dealing damage is in vehicle -
Konstantinos - 23.06.2014
That would check if the player who gave damage to playerid is in vehicle.
Re: Check if player dealing damage is in vehicle -
maramizo - 23.06.2014
Quote:
Originally Posted by Konstantinos
That would check if the player who gave damage to playerid is in vehicle.
|
My question being: Hitting other players with vehicles, does that call OnPlayerGiveDamage/OnPlayerTakeDamage?
Re: Check if player dealing damage is in vehicle -
Rittik - 23.06.2014
Yes, it will call OnPlayerGiveDamage/OnPlayerTakeDamage.
EDIT: