SA-MP Forums Archive
Death / Kills counters in player list - 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 / Kills counters in player list (/showthread.php?tid=610726)



Death / Kills counters in player list - AaronJ - 27.06.2016

Hello everyone,

i can't find using the search function a little code to show the players deaths and kills in the player list (alt button) or another way to show the counters..

Can someone help me please?

Regards


Re: Death / Kills counters in player list - Matz - 27.06.2016

You can either show kill or death by using SetPlayerScore


Re: Death / Kills counters in player list - AaronJ - 28.06.2016

But is only one counter, i need the death counter and the kill counter..


Re: Death / Kills counters in player list - SickAttack - 28.06.2016

You must save those values and display them accordingly.


Re: Death / Kills counters in player list - AaronJ - 28.06.2016

Quote:
Originally Posted by SickAttack
Посмотреть сообщение
You must save those values and display them accordingly.
i save the values but i don't know how to show them...
as i said in the first post i need a way to show the two values in the player list or in a table in some way..


Re: Death / Kills counters in player list - SickAttack - 28.06.2016

Quote:
Originally Posted by AaronJ
Посмотреть сообщение
i save the values but i don't know how to show them...
as i said in the first post i need a way to show the two values in the player list or in a table in some way..
How do you save those values?


Re: Death / Kills counters in player list - AaronJ - 28.06.2016

Quote:
Originally Posted by SickAttack
Посмотреть сообщение
How do you save those values?
i have 2 vars, "Kill" and "Death"

PHP код:
public OnPlayerDeath(playeridkilleridreason)
{
    
SendDeathMessage(killeridplayeridreason);
    [...]
    
CharacterData[killerid][Kill] ++;
    
CharacterData[playerid][Death] ++;
    [...]
    return 
1;

and i need to show something like a table with the kills and deaths counter of all the players.
I would like to know if is possible in the player list or if there is a way to do something nice to see..
I know that i can create something like a windows that is always at the bottom-right of the screen but it can't contain the full list of the players (15/20 per match).