SA-MP Forums Archive
Detect driver? - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Detect driver? (/showthread.php?tid=221665)



Detect driver? - Rokzlive - 05.02.2011

How do i make a command detect if the player is the driver of the vehicle?


Re: Detect driver? - xRyder - 05.02.2011

Use GetPlayerState function.

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


Re: Detect driver? - _Tommy - 05.02.2011

pawn Код:
if(GetPlayerState(playerid)== PLAYER_STATE_DRIVER)