How i can make a "death" message?
#2

//OnPlayerDeath
new string[128], name[MAX_PLAYER_NAME];
GetPlayerName(playerid, name, sizeof(name));
format(stiring, sizeof(string), "%s has been critically injured.",
SendClientMessageToAll(color, string);

//OnPlayerSpawn
SetPlayerPos(playerid, x, y, z);

You could perhaps store in variable if player had died before or just connected.

(code not tested, just wrote something directional)
Reply


Messages In This Thread
How i can make a "death" message? - by Gooday - 23.11.2011, 09:33
Re: How i can make a "death" message? - by Johnson_boy - 23.11.2011, 10:22
Re: How i can make a "death" message? - by kiloman3 - 23.11.2011, 11:02
Re: How i can make a "death" message? - by MathijsS - 23.11.2011, 11:12
Re: How i can make a "death" message? - by Max_Coldheart - 23.11.2011, 12:03
Re: How i can make a "death" message? - by Kostas' - 23.11.2011, 12:13
Re: How i can make a "death" message? - by Shadow19 - 05.02.2012, 17:15
Re: How i can make a "death" message? - by [ABK]Antonio - 05.02.2012, 17:19

Forum Jump:


Users browsing this thread: 1 Guest(s)