SA-MP Forums Archive
Check if the player is the vehicle driver function - 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: Check if the player is the vehicle driver function (/showthread.php?tid=91164)



Check if the player is the vehicle driver function - BugsY - 13.08.2009

What is the function to check if the player if the driver of a vehicle and not a passenger.


Re: Check if the player is the vehicle driver function - _Vortex - 13.08.2009

I'm not sure if there's a function to check if they're just driver..

If there's not, you could probably code one.


Re: Check if the player is the vehicle driver function - RaFsTar - 13.08.2009

Код:
if(GetPlayerState(playerid)==PLAYER_STATE_DRIVER)
{
//someting
}
Cheers


Re: Check if the player is the vehicle driver function - BugsY - 13.08.2009

Zer0, I wanna make a script so only the driver of the vehicle can use the /exit command to exit the vehicle and not the passengers too.


Re: Check if the player is the vehicle driver function - BugsY - 13.08.2009

Thanks so much RaF


Re: Check if the player is the vehicle driver function - RaFsTar - 13.08.2009

Quote:
Originally Posted by BugsY
Thanks so much RaF
You're welcome