14.03.2018, 07:33
Код:
CMD:freezeall(playerid, params[]) { //check if the player is a admin LevelCheck(playerid, 3); LOOP_PLAYERS(i) { if(i != playerid) { if(GetPlayerGAdminLevel(playerid) < GetPlayerGAdminLevel(i)) { TogglePlayerControllable(i, false); PlayerPlaySound(i, 1057, 0.0, 0.0, 0.0); } } } PlayerPlaySound(playerid, 1057, 0.0, 0.0, 0.0); new string[144]; format(string, sizeof(string), "* admin %s[%i] has freezed all players.", ReturnPlayerName(playerid), playerid); SendClientMessageToAll(COLOR_DODGER_BLUE, string); return 1; }