10.12.2011, 20:01
pawn Код:
public OnPlayerStateChange(playerid, newstate, oldstate)
{
for(new i = 0; i < sizeof(AdmCars); i ++)
{
new vehicleid = GetPlayerVehicleID(playerid);
if(vehicleid == AdmCars[i])
{
if(!IsPlayerAdmin(playerid))
{
SendClientMessage(playerid,Vermelho,"{FF3D3D}[Erro]{FFFFFF} Vocк nгo й ADM.");
TogglePlayerControllable(playerid, 1);
RemovePlayerFromVehicle(playerid);
}
}
}
return 1;
}