06.07.2011, 19:43
PHP Code:
public OnPlayerStateChange(playerid, newstate, oldstate) {
if(newstate == 2) {
if(GetPlayerVehicleID(playerid) == Admins[0] || GetPlayerVehicleID(playerid) == Admins[1]) {
#if defined pAdmin
if(PlayerInfo[playerid][pAdmin] < 0) {
SendClientMessage(playerid, -1, "<!> Vocк nгo й adm.");
RemovePlayerFromVehicle(playerid); }
#else
if(!IsPlayerAdmin(playerid)) {
SendClientMessage(playerid, -1, "<!> Vocк nгo й adm.");
RemovePlayerFromVehicle(playerid); }
}
}
}
return 1;
}