/kill
#3

At the top of the script;
Код:
new Kill[MAX_PLAYERS] = 1;
Somewhere in script;
Код:
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;
	}
I think that's about right.
Reply


Messages In This Thread
/kill - by WiseRice - 05.05.2013, 12:01
Re: /kill - by WiseRice - 05.05.2013, 12:07
Re: /kill - by Rillo - 05.05.2013, 12:34
Re: /kill - by Pottus - 05.05.2013, 12:36
Re: /kill - by BigGroter - 05.05.2013, 13:23

Forum Jump:


Users browsing this thread: 1 Guest(s)