cmd + string
#3

Quote:
Originally Posted by Flo_White
Код:
new suicider[MAX_PLAYER_NAME];
	if(strcmp(cmd, "/kill", true) == 0)
	{
       new string[128];
		GetPlayerName(playerid, suicider, sizeof(suicider));
		SetPlayerHealth(playerid,0.0);
		format(string, sizeof(string), "* %s takes out a knife from jacket, and takes a suicide.", suicider);
		SendClientMessageToAll(COLOR_RED, string);
		return 1;
}
You also might want to make the text local using a loop and GetDistanceBetweenPlayers()

you forgot the new string[128]; and a }
Reply


Messages In This Thread
cmd + string - by KnooL - 21.02.2009, 23:35
Re: cmd + string - by Flo_White - 21.02.2009, 23:39
Re: cmd + string - by x-cutter - 22.02.2009, 03:16
Re: cmd + string - by Mikep - 22.02.2009, 07:46
Re: cmd + string - by [RP]Rav - 22.02.2009, 09:27
Re: cmd + string - by KnooL - 22.02.2009, 10:39

Forum Jump:


Users browsing this thread: 1 Guest(s)