23.04.2015, 17:39
Code:
CMD:freeze(playerid, params) { new player1, second, reason[256]; if(!IsPlayerAdmin(playerid)) return 0; if(sscanf(params, "iis[256]", player1, second, reson)) return SendClientMessage(playerid, -1, "/freeze [ID] [Second] [Reason]"); TogglePlayerControllable(playerid, 0); SetTimerEx("Unfreeze", second*1000, false, "i", playerid); return 1; } forward Unfreeze(playerid); public Unfreeze(playerid) { TogglePlayerControllable(playerid, true); return 1; }