Advertisement
LukaMC59

Untitled

Nov 14th, 2017
322
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.02 KB | None | 0 0
  1. On death of a player:
  2. if attacker is a player:
  3.  
  4. if {top.kills::%attacker%} is not set:
  5. set {top.kills::%attacker%} to 0
  6.  
  7. add 1 to {top.kills::%attacker%}
  8. stop
  9.  
  10. command /top:
  11. aliases: /topkills, /topk, /tk, /tkills
  12. trigger:
  13. loop {top.kills::*}:
  14. add 1 to {_size}
  15. if {_low.to.high.list::%loop-value%} is not set:
  16. set {_low.to.high.list::%loop-value%} to loop-index
  17. else:
  18. set {_n} to 0
  19. loop {_size} times:
  20. set {_n} to {_n}+1
  21. {_low.to.high.list::%loop-value-1%.%{_n}%} is not set
  22. set {_low.to.high.list::%loop-value-1%.%{_n}%} to loop-index
  23. stop loop
  24. wait 1 tick
  25. set {_n} to size of {_low.to.high.list::*}
  26. loop {_low.to.high.list::*}:
  27. set {_high.to.low.list::%{_n}%} to loop-value
  28. set {_n} to {_n}-1
  29. wait 1 tick
  30. send " &9[Leaderboard]" to player
  31. loop {_high.to.low.list::*}:
  32. add 1 to {_result}
  33. send " &9%loop-value%&8 | &7%{top.kills::%loop-value%}% kills" to player
  34. if {_result} is 10:
  35. stop
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement