Advertisement
LukaMC59

Untitled

Nov 11th, 2017
348
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.30 KB | None | 0 0
  1. on statistics increase:
  2. if event-statistic is player kills:
  3. remove {kills.%player%} from {TopKills::*}
  4. increase {kills.%player%} by 1
  5. loop {TopKills::*}:
  6. if {kills.%player%} is less than loop-index:
  7. insert {kills.%player%} after {TopKills::%loop-index%}
  8. stop
  9. loop all players:
  10. if {kills.%player%} = first element of {TopKills::*}
  11. set {pos.%loop-player%} to 1
  12. else:
  13. loop {TopKills::*}:
  14. if {kills.%loop-player%} = loop-index:
  15. set {pos.%loop-player%} to loop-value
  16. set {PlayerIndic.%loop-value%} to name of loop-player
  17. set {killsIndic.%loop-value%} to {kills.%loop-player%}
  18.  
  19. command /top:
  20. aliases: /topkills
  21. trigger:
  22. message "&9 Top killers"
  23. message "&8&m--------------------"
  24. message "&9[1] &7%{PlayerIndic.1}%"
  25. message "&9[2] &7%{PlayerIndic.2}%"
  26. message "&9[3] &7%{PlayerIndic.3}%"
  27. message "&9[4] &7%{PlayerIndic.4}%"
  28. message "&9[5] &7%{PlayerIndic.5}%"
  29. message "&9[6] &7%{PlayerIndic.6}%"
  30. message "&9[7] &7%{PlayerIndic.7}%"
  31. message "&9[8] &7%{PlayerIndic.8}%"
  32. message "&9[9] &7%{PlayerIndic.9}%"
  33. message "&9[10] &7%{PlayerIndic.10}%"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement