02.01.2012, 18:17
Код:
public OnPlayerStateChange(playerid, newstate, oldstate) { if( oldstate == PLAYER_STATE_ONFOOT && newstate == PLAYER_STATE_DRIVER ) { //If they got into a car from being on foot. if( GetVehicleModel(GetPlayerVehicleID( playerid )) == 428 || 520) //naudoti || masina || { if( GetPlayerSkin(playerid) != 27 || 287) //naudoti || skinas || { //If their skin is not 27 //Remove them and send message. RemovePlayerFromVehicle( playerid ); SendClientMessage( playerid,0xFF000000, "My Text" );//-1 return 1; } else { SendClientMessage(playerid, 0xFF000000, "My Text"); return 1; } } } return 1; }