OnPlayerEnterVehicle check - 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: OnPlayerEnterVehicle check (
/showthread.php?tid=248727)
OnPlayerEnterVehicle check -
ajwar - 15.04.2011
Wondering if it's possible to check if the player is entering as a passenger OnPlayerEnterVehicle? How?
Re: OnPlayerEnterVehicle check -
aircombat - 15.04.2011
pawn Код:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
if(ispassenger == 1) return SendClientMessage(playerid,COLOR_YELLOW,"You're A Passenger");
if(ispassenger == 0) return SendClientMessage(playerid,COLOR_YELLOW,"You're The Driver");
return 1;
}
https://sampwiki.blast.hk/wiki/OnPlayerEnterVehicle