Hello SkUnity,
I've currently got a skript where I'm trying to make a list of players with the highest kills on the server. I currently have the complete numerical list working properly, but I'm struggling with having the player names associated with the kill numbers.
The skript currently works perfectly for displaying the amount of kills, but I'd like for it to display as %player% - %kills% like "ZsCortzones - 25"
Does anyone know how I would get the list to display with specific playernames like that?
I've currently got a skript where I'm trying to make a list of players with the highest kills on the server. I currently have the complete numerical list working properly, but I'm struggling with having the player names associated with the kill numbers.
Code:
command /refreshtopkills:
permission: owner.refreshtopkills
trigger:
clear {topkills::*}
loop all offline players:
add {kills.%loop-offline player%} to {topkills::*}
send "Done!"
command /topkills:
permission: owner.topkills
trigger:
set {topkills::*} to sorted {topkills::*}
loop {topkills::*}:
send "&7- &f%loop-value%"
command /cleartopkills:
permission: owner.cleartopkills
trigger:
clear {topkills::*}
send "Done!"
The skript currently works perfectly for displaying the amount of kills, but I'd like for it to display as %player% - %kills% like "ZsCortzones - 25"
Does anyone know how I would get the list to display with specific playernames like that?
Last edited: