player car help - 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: player car help (
/showthread.php?tid=206233)
player car help -
yarrum3 - 03.01.2011
How can i find out if a player has exit a car so i can send a message saying don't for get to turn of car.
Re: player car help -
Alex_Valde - 03.01.2011
With this:
OnPlayerStateChange
Re: player car help -
JamesC - 03.01.2011
pawn Код:
public OnPlayerStateChange( playerid, newstate, oldstate )
{
if( newstate == PLAYER_STATE_ONFOOT && oldstate == PLAYER_STATE_DRIVER ) // Check if the player was in the vehicle as a driver.
{
// If engine is on
SendClientMessage( playerid, 0xFFFFFFFF, "SERVER: Don't forget to turn the engine off!" );
}
return 1;
}