player car help
#1

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.
Reply
#2

With this: OnPlayerStateChange
Reply
#3

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;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)