Are there any death textdraws? Ex: Dave killed R0ckstar -
David5290 - 27.01.2011
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.
Re: Are there any death textdraws? Ex: Dave killed R0ckstar -
David5290 - 27.01.2011
Death icons, anyone have link to it?
Re: Are there any death textdraws? Ex: Dave killed R0ckstar -
Kyosaur - 27.01.2011
https://sampwiki.blast.hk/wiki/SendDeathMessage
Why use textdraws or filterscripts when its already implemented with actual icons :P.
Re: Are there any death textdraws? Ex: Dave killed R0ckstar -
David5290 - 27.01.2011
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..?
Re: Are there any death textdraws? Ex: Dave killed R0ckstar -
Kyosaur - 27.01.2011
That should be fine (though i really only looked at the SendDeathMessage function).
Re: Are there any death textdraws? Ex: Dave killed R0ckstar -
David5290 - 27.01.2011
Do you need ICON_CONNECT, ICON_DISCONNECT in there somewhere? >_>
Re: Are there any death textdraws? Ex: Dave killed R0ckstar -
PeteShag - 27.01.2011
No..
btw
new string[256];
could be
new string[128];