FlupMC

Untitled

Jul 30th, 2017
127
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.07 KB | None | 0 0
  1. on join:
  2. set {fejl.kills::%player%} to {kills::%uuid of player%}
  3. set {navn.%player%} to "%player%"
  4. on death:
  5. wait 3 ticks
  6. set {fejl.kills::%attacker%} to {kills::%uuid of attacker%}
  7.  
  8. command /topkills:
  9. Permission: *
  10. trigger:
  11. loop {fejl.kills::*}:
  12. add 1 to {_size}
  13. if {_low.to.high.list::%loop-value%} is not set:
  14. set {_low.to.high.list::%loop-value%} to loop-index
  15. else:
  16. set {_n} to 0
  17. loop {_size} times:
  18. set {_n} to {_n}+1
  19. {_low.to.high.list::%loop-value-1%.%{_n}%} is not set
  20. set {_low.to.high.list::%loop-value-1%.%{_n}%} to loop-index
  21. stop loop
  22. wait 1 tick
  23. set {_n} to size of {_low.to.high.list::*}
  24. loop {_low.to.high.list::*}:
  25. set {_high.to.low.list::%{_n}%} to loop-value
  26. set {_n} to {_n}-1
  27. send "&7Loader TopKills"
  28. wait 2 seconds
  29. send "&3&m---&r &b&m---&r &3&lTOP KILLS &b&m---&r &3&m---&r"
  30. send " "
  31. loop {_high.to.low.list::*}:
  32. add 1 to {_result}
  33. send "&3%{_result}% &r&8- &b%{navn.%loop-value%}% &8- &b%{icosa::%loop-value%}% &3Kills" to player
  34. if {_result} is 10:
  35. stop
Advertisement
Add Comment
Please, Sign In to add comment