23.11.2011, 10:22
//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)
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)