30.08.2010, 15:06
(
Последний раз редактировалось CyNiC; 30.08.2010 в 15:11.
Причина: Complement
)
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