05.05.2013, 12:34
At the top of the script;
Somewhere in script;
I think that's about right.
Код:
new Kill[MAX_PLAYERS] = 1;
Код:
forward KillTimer(playerid); public KillTimer(playerid) { Kill[playerid] = 1; return 1; }
Код:
if (strcmp("/kill", cmdtext, true, 10) == 0) { If (Kill[playerid] == 1) { SetPlayerHealth(playerid, 0); GameTextForPlayer(playerid, "~w~Grim Reaper~n~~r~Has Taken Your Soul!", 4500, 2); SetTimerEx("KillTimer", 1000*60*5, false, "i", playerid); Kill[playerid] = 0; } else return SendClientMessage(playerid, 0xFF0000FF, "You can only use this command once every 5 minutes!"); return 1; }