Advertisement
Guest User

Untitled

a guest
Apr 30th, 2017
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.97 KB | None | 0 0
  1. msg: &a&l==&bTOP KILLS&a&l==
  2.  
  3.  
  4.  
  5. command /top10:
  6. aliases: /kt, /topk, /topkt, /killtop
  7. trigger:
  8.  
  9. loop {member.kills::*}:
  10. add 1 to {_size}
  11. if {_low.to.high.list::%loop-value%} is not set:
  12. set {_low.to.high.list::%loop-value%} to loop-index
  13. else:
  14. set {_n} to 0
  15. loop {_size} times:
  16. set {_n} to {_n}+1
  17. {_low.to.high.list::%loop-value-1%.%{_n}%} is not set
  18. set {_low.to.high.list::%loop-value-1%.%{_n}%} to loop-index
  19. stop loop
  20. wait 1 tick
  21. set {_n} to size of {_low.to.high.list::*}
  22. loop {_low.to.high.list::*}:
  23. set {_high.to.low.list::%{_n}%} to loop-value
  24. set {_n} to {_n}-1
  25. wait 1 tick
  26. send "&a&l==&bTOP KILLS&a&l==" to player
  27. loop {_high.to.low.list::*}:
  28. add 1 to {_result}
  29. send "&9%loop-value%&7: &b%{member.kills::%loop-value%}% kills" to player
  30. if {_result} is 10:
  31. stop
  32.  
  33. on death of player:
  34. add 1 to {member.kills::%attacker%}
  35.  
  36. on skript unload:
  37. set {member.kills::*} to 0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement