SA-MP Forums Archive
Dude - 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: Dude (/showthread.php?tid=631219)



Dude - Ertouq - 25.03.2017

Hi, I have a duda:

How to do so, imagine, a player having more kills than the X player (example: 2 kills more than the other) first exit than others? (in a command /top) Thus:

TOP
pepe: have 2 kills
popo: has 1 kills

How to do so are first put those who have more kills?

Greetings and thanks.

Translated, sorry if there are errors.


Re: Dude - Flamehaze7 - 25.03.2017

Take a look at this: http://forum.sa-mp.com/showpost.php?...postcount=1760


Respuesta: Dude - Ertouq - 25.03.2017

Thank you, but I did not understand much that.


Respuesta: Dude - Ertouq - 28.03.2017

bump


Re: Dude - AhmedMohamed - 28.03.2017

Can you Explain more?!


Re: Dude - [eLg]elite - 28.03.2017

He wants a script which shows a list of players in the server ordered from the one with the most kills to the one with the least kills.


Re: Dude - Sithis - 28.03.2017

Create a variable to count the kills, use it in OnPlayerDeath and keep track of the killerid. You can then create a command to loop through all players and order them by amount of kills.

Do some research and you will be able to script this with ease. Don't be lazy and expect us to do all the work for you.


Respuesta: Re: Dude - Ertouq - 28.03.2017

Quote:
Originally Posted by Sithis
Посмотреть сообщение
Create a variable to count the kills, use it in OnPlayerDeath and keep track of the killerid. You can then create a command to loop through all players and order them by amount of kills.

Do some research and you will be able to script this with ease. Don't be lazy and expect us to do all the work for you.
Thanks