OnPlayerEnterVehicle - 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: OnPlayerEnterVehicle (
/showthread.php?tid=385467)
OnPlayerEnterVehicle -
GXLZPGX - 16.10.2012
Is there an alternative? This detects when the user begins the animation for entering the vehicle, but the player does not actually have to complete the animation. I just want to know what function is called when it's all said and done please.
Re : OnPlayerEnterVehicle -
lelemaster - 16.10.2012
Код:
public OnPlayerStateChange(playerid, newstate, oldstate)
{
if(newstate == PLAYER_STATE_DRIVER)
{
//codes
}
return 1;
}
Re: Re : OnPlayerEnterVehicle -
GXLZPGX - 16.10.2012
Quote:
Originally Posted by lelemaster
Код:
public OnPlayerStateChange(playerid, newstate, oldstate)
{
if(newstate == PLAYER_STATE_DRIVER)
{
//codes
}
return 1;
}
|
I had actually JUST started research on that when I posted this, thank you tons.