SA-MP Forums Archive
Death Logs - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Death Logs (/showthread.php?tid=399353)



Death Logs - UnknownGamer - 14.12.2012

How would I clear deathlogs?

In a CMD: way?


Re: Death Logs - Threshold - 14.12.2012

There is no such thing as an INVALID DEATH MESSAGE as of yet, so therefore, you can't completely clear the death list, however you can clear it from player names etc. So far, there has been no invalid or invisible death icon added to the SA-MP versions, making it basically impossible to clear the death list without having to hide it. Your best chance of replicating something like this, is to change the killerid and victimid to INVALID_PLAYER_ID and having an icon of your choice, sent in a death message 5 or more times. As you can see in https://sampwiki.blast.hk/wiki/Weapons there is no invisible or invalid icons available. An example of what I am telling you to do, is as follows:

pawn Код:
CMD:cleardeaths(playerid, params[])
{
    SendDeathMessage(INVALID_PLAYER_ID, INVALID_PLAYER_ID, 0);
    SendDeathMessage(INVALID_PLAYER_ID, INVALID_PLAYER_ID, 0);
    SendDeathMessage(INVALID_PLAYER_ID, INVALID_PLAYER_ID, 0);
    SendDeathMessage(INVALID_PLAYER_ID, INVALID_PLAYER_ID, 0);
    SendDeathMessage(INVALID_PLAYER_ID, INVALID_PLAYER_ID, 0);
    return 1;
}



Re: Death Logs - RajatPawar - 14.12.2012

Almost the same, but will print the reason as instead of which according to me, is a bit more subtle :0 (My opinion)
pawn Код:
CMD:cleardeaths(playerid,params[])
{
      for(new i=0; i<7; i++)
{
 SendDeathMessage(INVALID_PLAYER_ID, INVALID_PLAYER_ID, 200);
}
return 1;
}