Removing player from vehicle
#2

OnPlayerEnterVehicle callback is called every time when player is near a vehicle and when he presses a ENTER key. The entry can be canceled but the callback is still called.
RemovePlayerFromVehicle - will only work if player is IN vehicle, but not if he's trying to enter it.
You could use OnPlayerStateChange callback or you could use GetPlayerPos & SetPlayerPos with the OnPlayerEnterVehicle callback.

Quote:
Originally Posted by ZzZzZ
Код:
if (playerid,TEAM_ZOMBIE)
And this is also wrong.
Reply


Messages In This Thread
Removing player from vehicle - by WardenCS - 07.12.2009, 14:28
Re: Removing player from vehicle - by Correlli - 07.12.2009, 14:31
Re: Removing player from vehicle - by WardenCS - 07.12.2009, 14:35
Re: Removing player from vehicle - by Correlli - 07.12.2009, 14:52

Forum Jump:


Users browsing this thread: 1 Guest(s)