30.08.2010, 18:38
Quote:
Код:
public OnPlayerStateChange(playerid, newstate, oldstate) { if(newstate == PLAYER_STATE_DRIVER && GetPlayerVehicleID(playerid) == VEHICLEID_WHO_YOU_WANT) { SendClientMessage(playerid, 0xFFFFFFFF, "This Vehicle is restrict for admins, get out!"); RemovePlayerFromVehicle(playerid); return 1; } return 1 } |
pawn Код:
public OnPlayerStateChange(playerid, newstate, oldstate)
{
if(newstate == PLAYER_STATE_DRIVER && GetPlayerVehicleID(playerid) == VEHICLEID_WHO_YOU_WANT)
{
if(IsPlayerAdmin(playerid)) return 1;
SendClientMessage(playerid, 0xFFFFFFFF, "This Vehicle is restrict for admins, get out!");
RemovePlayerFromVehicle(playerid);
}
return 1
}