16.10.2013, 17:14
Код:
COMMAND:freezeall(playerid, params[]) { if(PlayerInfo[playerid][power] < 4) return SendClientError(playerid, CANT_USE_CMD); PlayerLoop(i) { SendClientMSG(i, COLOR_YELLOW, "[Admin] All players have been frozen by Admin %s", RPName(playerid)); frozen[i] = 1; TogglePlayerControllable(i, false); } return 1; } COMMAND:unfreezeall(playerid, params[]) { if(PlayerInfo[playerid][power] < 4) return SendClientError(playerid, CANT_USE_CMD); PlayerLoop(i) { SendClientMSG(i, COLOR_YELLOW, "[Admin] All players have been un-frozen by Admin %s", RPName(playerid)); frozen[i] = 0; TogglePlayerControllable(i, true); SetPVarInt(i, "Tied", 0); } return 1; }