Are there any death textdraws? Ex: Dave killed R0ckstar
#4

Quote:
Originally Posted by Kyosaur
Посмотреть сообщение
https://sampwiki.blast.hk/wiki/SendDeathMessage

Why use textdraws or filterscripts when its already implemented with actual icons :P.
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..?
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)