How to detect if a player is under a vehicle?
#4

Use these functions:

GetPlayerAnimationIndex(playerid)
GetVehivlePos
IsPlayerInRangeOfPoint

If the player animation index is 1126 and he is in the range of position of some car, he's under a vehicle.
It's not 100% accurately
Reply


Messages In This Thread
How to detect if a player is under a vehicle? - by Whizion - 23.08.2011, 12:14
Re: How to detect if a player is under a vehicle? - by Pinguinn - 23.08.2011, 12:32
Re: How to detect if a player is under a vehicle? - by Gamer_Z - 23.08.2011, 12:34
Re: How to detect if a player is under a vehicle? - by CyNiC - 23.08.2011, 13:28

Forum Jump:


Users browsing this thread: 2 Guest(s)