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

I wanted to know if there are any textdraws or filterscripts that tells you in a box..not sure what its called.




Like on CrazyBob's Cops And Robbers server.
Reply
#2

Death icons, anyone have link to it?
Reply
#3

https://sampwiki.blast.hk/wiki/SendDeathMessage

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

That should be fine (though i really only looked at the SendDeathMessage function).
Reply
#6

Do you need ICON_CONNECT, ICON_DISCONNECT in there somewhere? >_>
Reply
#7

No..

btw
new string[256];

could be

new string[128];
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)