Vehicles set only for required scores..
#4

Oh yea, you can't use "RemovePlayerFromVehicle" function under the OnPlayerEnterVehicle. Why? Well, OnPlayerEnterVehicle is called when the player presses RETURN or F button to enter the vehicle, while RemovePlayerVehicle can be used only on players who are already in the vehicle. Try using "ClearAnimations(playerid)" function, so:

pawn Код:
// instead of RemovePlayerFromVehicle, use

ClearAnimations(playerid);
Hope I helped.


Or, if you still want to use the RemovePlayerFromVehicle function, you can use OnPlayerStateChange callback. But that would mean changing your whole script.
Reply


Messages In This Thread
Vehicles set only for required scores.. - by Huxley - 30.04.2012, 17:01
Re: Vehicles set only for required scores.. - by antonio112 - 30.04.2012, 17:09
Re: Vehicles set only for required scores.. - by Huxley - 30.04.2012, 17:15
Re: Vehicles set only for required scores.. - by antonio112 - 30.04.2012, 22:31
Re: Vehicles set only for required scores.. - by Huxley - 01.05.2012, 00:24

Forum Jump:


Users browsing this thread: