Advertisement
Guest User

Untitled

a guest
Dec 27th, 2018
165
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. variables:
  2. {ks.%player%} = 0
  3. {kills.%player%} = 0
  4. {deahts.%player%} = 0
  5.  
  6.  
  7. on death:
  8. attacker is a player
  9. add 1 to {kills.%attacker%}
  10. add 1 to {ks.%attacker%}
  11. add 1 to {deahts.%victim%}
  12.  
  13. on death of player:
  14. set {ks.%player%} to 0
  15.  
  16.  
  17.  
  18.  
  19.  
  20.  
  21. options:
  22. top10: &c&l--TOP KILLS--
  23.  
  24. command /top10:
  25. trigger:
  26. loop {kills::*}:
  27. add 1 to {_size}
  28. if {_low.to.high.list::%loop-value%} is not set:
  29. set {_low.to.high.list::%loop-value%} to loop-index
  30. else:
  31. set {_n} to 0
  32. loop {_size} times:
  33. set {_n} to {_n}+1
  34. {_low.to.high.list::%loop-value-1%.%{_n}%} is not set
  35. set {_low.to.high.list::%loop-value-1%.%{_n}%} to loop-index
  36. stop loop
  37. wait 1 tick
  38. set {_n} to size of {_low.to.high.list::*}
  39. loop {_low.to.high.list::*}:
  40. set {_high.to.low.list::%{_n}%} to loop-value
  41. set {_n} to {_n}-1
  42. wait 1 tick
  43. send "{@top10}" to player
  44. loop {_high.to.low.list::*}:
  45. add 1 to {_result}
  46. send "&f%loop-value%&7: &c%{kills::%loop-value%}% kills" to player
  47. if {_result} is 10:
  48. stop
Advertisement
RAW Paste Data Copied
Advertisement