18.05.2014, 10:41
pawn Код:
if(strcmp(cmd, "/freezeall", true) == 0 || strcmp(cmd, "/fall", true) == 0)
{
if(PlayerInfo[playerid][pAdmin] < 5) return SendClientMessage(playerid, COLOR_GREY, "Access denied!");
for(new i=0; i < MAX_PLAYERS; i++)
{
if(!IsPlayerConnected(i)) continue;
if(PlayerInfo[i][pAdmin]) continue;
TogglePlayerControllable(i,0);
}
new ab[70];
format(ab, sizeof(ab), "[ANTI-ABUSE] %s used /freezeall command !",GetName(playerid));
SendToAdmins(COLOR_LIGHTRED, ab);
return 1;
}