Hey, i am using this ranking skript for my top kills right now:
my question is now: How can I ask in a command for the ranking number of a specific player, wether he is not in the top 10. What can I do? Thanks
[doublepost=1586094094,1585926508][/doublepost]bump
Code:
command /ranking [<text>]:
trigger:
loop {kill::*}:
add 1 to {_size}
if {_low.to.high.list::%loop-value%} is not set:
set {_low.to.high.list::%loop-value%} to loop-index
else:
set {_n} to 0
loop {_size} times:
set {_n} to {_n}+1
{_low.to.high.list::%loop-value-1%.%{_n}%} is not set
set {_low.to.high.list::%loop-value-1%.%{_n}%} to loop-index
stop loop
wait 1 tick
set {_n} to size of {_low.to.high.list::*}
loop {_low.to.high.list::*}:
set {_high.to.low.list::%{_n}%} to loop-value
set {_n} to {_n}-1
wait 1 tick
set {_i} to 0
send "&8&m-------------&e&lRANKING&8&m-------------"
loop {_high.to.low.list::*}:
add 1 to {_topnumber}
set {_player} to "%loop-value%" parsed as offlineplayer
send "&3##%{_topnumber}% &8- &7%{_player}% &8> &7%{kill::%loop-value%}% &7Kills"
add 1 to {_i}
if {_topnumber} > 9: #this is top 10 you can change it
stop
send "&8&m-------------&e&lRANKING&8&m-------------"
my question is now: How can I ask in a command for the ranking number of a specific player, wether he is not in the top 10. What can I do? Thanks
[doublepost=1586094094,1585926508][/doublepost]bump