Death Logs
#1

How would I clear deathlogs?

In a CMD: way?
Reply
#2

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;
}
Reply
#3

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;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)