Check if player dealing damage is in vehicle
#1

I need to check if a player just hit another player while driving, would checking if GetPlayerVehicleID(issuerid) != 0 under OnPlayerTakeDamage work?
Reply
#2

That would check if the player who gave damage to playerid is in vehicle.
Reply
#3

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?
Reply
#4

Yes, it will call OnPlayerGiveDamage/OnPlayerTakeDamage.

EDIT:
Reply


Forum Jump:


Users browsing this thread: