Advertisement
PabloEduardo

Ranking

May 27th, 2022 (edited)
37
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.06 KB | None | 0 0
  1. command /Ranking:
  2. trigger:
  3. loop {kills::*}:
  4. add 1 to {_size}
  5. if {_low.to.high.list::%loop-value%} is not set:
  6. set {_low.to.high.list::%loop-value%} to loop-index
  7. else:
  8. set {_n} to 0
  9. loop {_size} times:
  10. set {_n} to {_n}+1
  11. {_low.to.high.list::%loop-value-1%.%{_n}%} is not set
  12. set {_low.to.high.list::%loop-value-1%.%{_n}%} to loop-index
  13. stop loop
  14. wait 1 tick
  15. set {_n} to size of {_low.to.high.list::*}
  16. loop {_low.to.high.list::*}:
  17. set {_high.to.low.list::%{_n}%} to loop-value
  18. set {_n} to {_n}-1
  19. wait 1 tick
  20. send " &8[&e&lRANKING&8] "
  21. send " "
  22. loop {_high.to.low.list::*}:
  23. add 1 to {_result}
  24. send "&9&m--------------------------------------------"
  25. send "&6&lTOP&7: &e&l%{_result}%"
  26. send "&bShinobi&7: &e%loop-value%" to player
  27. send "&cAsesinatos&7: &e%{kills::%loop-value%}% &7- &5K/D&7: &6%{kd::%loop-value%}% &7- &4Muertes&7: &e%{muertes::%loop-value%}% &8&o(&b&oFama&7&o: &9&o%{Fama::%loop-value%}%&8&o) " to player
  28. if {_result} is 4:
  29. stop
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement