[Help] Kill command.
#4

Код:
	if (strcmp(cmd, "/kill", true) == 0)
	{
	    if(PlayerInfo[playerid][pJailedSec] > 0)
		{
			SendClientMessage(playerid, COLOR_RED, "You cannot kill yourself if you're in the jail.");
		}
		else
		{
		 SetPlayerHealth(playerid, 0);
		 new pname[24];
                 new string[100];
                 GetPlayerName(playerid,pname,24);
                 format(string,sizeof(string), "%s has killed them self!",pname);
                 SendClientMessageToAll(COLOR_RED,string);
		}
		return 1;
	}
Something like that should work hopefully .
Reply


Messages In This Thread
[Help] Kill command. - by [Aka]Dragonu - 01.12.2010, 06:19
Re: [Help] Kill command. - by BMUK - 01.12.2010, 07:42
Re: [Help] Kill command. - by [Aka]Dragonu - 01.12.2010, 08:00
Re: [Help] Kill command. - by Haydz - 01.12.2010, 08:14
Re: [Help] Kill command. - by [Aka]Dragonu - 01.12.2010, 08:45
Re: [Help] Kill command. - by WillyP - 01.12.2010, 08:54
Re: [Help] Kill command. - by BMUK - 01.12.2010, 08:54
Re: [Help] Kill command. - by [Aka]Dragonu - 01.12.2010, 08:56

Forum Jump:


Users browsing this thread: 3 Guest(s)