SA-MP Forums Archive
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=364472)



OnPlayerEnterVehicle - Marusa - 30.07.2012

Hi. How to check is player going to sit on driver place or on passanger place.... I need this on "OnPlayerEnterVehicle" not on OnPlayerStateChange...
Is there any way to recognize this ?

I try this: I check "GetPlayerKeys" on "OnPlayerEnterVehicle" but this function nothing do :/ I hope you understand me (Sry for bad eng)
Thanks in advance!


Re: OnPlayerEnterVehicle - iFizzy - 30.07.2012

https://sampwiki.blast.hk/wiki/GetPlayerVehicleSeat


Re: OnPlayerEnterVehicle - SEnergy - 30.07.2012

pawn Код:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
if(!ispassenger) // driver
//stuff
else if(ispassenger) // passenger
//stuff
}



Re: OnPlayerEnterVehicle - Marusa - 30.07.2012

I need this thanks


Re: OnPlayerEnterVehicle - Devilxz97 - 30.07.2012

https://sampwiki.blast.hk/wiki/GetPlayerState