How to make only when player enter in veh and sit at driver sit to send a mesaage to him ?
#7

Quote:
Originally Posted by Dragonsaurus
Посмотреть сообщение
pawn Код:
public OnPlayerStateChange( playerid, newstate, oldstate )
{
    if( newstate == PLAYER_STATE_DRIVER && GetVehicleModel(GetPlayerVehicleID(playerid) == 420)
    {
        SendClientMessage(playerid, color, "You are the driver of this vehicle!");
    }
    return 1;
}
pawn Код:
public OnPlayerStateChange( playerid, newstate, oldstate )
{
    if( newstate == PLAYER_STATE_DRIVER)
    {
        if (GetPlayerVehicleModel(GetPlayerVehicleID(playerid)) == 420)
        {
        SendClientMessage(playerid, color, "You are the driver of this vehicle!");
        }
    }
    return 1;
}
Yeah it's the same.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 5 Guest(s)