Quote:
Originally Posted by Kyosaur
|
public OnPlayerDeath(playerid, killerid, reason)
{
HideDraw(playerid);
SendDeathMessage(killerid, playerid, reason);
SetPlayerColor(playerid, GREY);
SetPlayerWantedLevel(playerid, 0);
if(reason <= 46 && hit[playerid] != 0)
{
new string[256];
format(string, sizeof(string), "%s (%i) killed %s (%i) and recieved $%i for a completed hit", ReturnPlayerName(killerid), killerid, ReturnPlayerName(playerid), playerid, hit[playerid]);
SendClientMessageToAll(COLOR_MSG, string);
GivePlayerMoney(killerid, hit[playerid]);
GivePlayerMoney(hiter[playerid], GetPlayerMoney(hiter[playerid])-hit[playerid]);
hit[playerid] = 0;
}
else if(hit[playerid] != 0)
{
new string[256];
format(string, sizeof(string), "The hit on %s (%i) has been cancelled (died)", ReturnPlayerName(playerid), playerid);
SendClientMessageToAll(COLOR_MSG, string);
hit[playerid] = 0;
}
IsSpawned[playerid] =0;
if(HaveGPS[playerid]) {
KillTimer(GPSTimer[playerid]);
HaveGPS[playerid] = false;
GPSTimer[playerid] = 0;
}
return true;
}
Would that show the death list/icons for it? Or do you have to add icons..?