14.08.2011, 19:41
is there anyway to clear the deathlist?
}
forward ClearKillFeed(playerid, lines);
public ClearKillFeed(playerid, lines)//By Killa[DGZ]
{
if (IsPlayerConnected(playerid))
{
for(new i=0; i<lines; i++)//how many lines to clear( which is 6, but it could be 5 i just use 6 to make sure )
{
SendDeathMessage(202, 202, 202);// 202 = nothing, so no playerid, no killerid and no reason.
}
}
return 1;
for(new i = 0; i < MAX_PLAYERS; i++)
{
ClearKillFeed(i, 6);//Calls the "ClearKillFeed" function to clear 6 lines for all players
}
//sendclientmsg "killfeed cleared by admin"
Killa[DGZ] u r my hero
And for some people, i will explain it. I need it cos i made textdraw score board, and for it to look good, deathlist needs to be gone at this time. edit: but i dont see the point of sending this message 6 times if 5 is the maximum on the deathlist, and why do it for playerid if it will clear for all players :P |