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

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


Messages In This Thread

Forum Jump:


Users browsing this thread: 7 Guest(s)