Advertisement
Guest User

Leaderboard

a guest
Feb 22nd, 2020
115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.02 KB | None | 0 0
  1. command cpctop:
  2. trigger:
  3. loop {cpc::*}:
  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. message "&m------------&r &6&lCpC &nTop 10&r &m------------"
  21. loop {_high.to.low.list::*}:
  22. add 1 to {_result}
  23. send "&b%(loop-value) parsed as offlineplayer%&7: &e%format({cpc::%loop-value%})% "
  24. if {_result} is 10:
  25. stop
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement