Quote:
Originally Posted by cynic
pawn Код:
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 }
https://sampwiki.blast.hk/wiki/OnPlayerStateChange
|
You only need to return 1 once.