Advertisement
Guest User

Untitled

a guest
Dec 27th, 2018
393
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. options:
  2. servernavn: &e&lCombo&c&lPVP #navn på scoreboard.
  3.  
  4.  
  5. every 1 second:
  6. loop all players:
  7. wipe loop-player's sidebar
  8. set name of sidebar of loop-player to " {@servernavn} "
  9. set score " &b&l" in sidebar of loop-player to 10
  10. set score " &a&lStats:" in sidebar of loop-player to 9
  11. set score " &7Kills: &a%{kills::%loop-player%}%" in sidebar of loop-player to 8
  12. set score " &7Dødsfald: &a%{deaths::%loop-player%}%" in sidebar of loop-player to 7
  13. set score " &7KillStreak: &a%{ks.%loop-player%}%" in sidebar of loop-player to 6
  14. set score " &7Penge: &a%loop-player's money%" in sidebar of loop-player to 5
  15. set score "&b" in sidebar of loop-player to 4
  16. set score " &a&lServeren:" in sidebar of loop-player to 3
  17. set score " &7Online: &a%number of all players%" in sidebar of loop-player to 2
  18. set score " &7Ping: &a%loop-player's ping%" in sidebar of loop-player to 1
  19. set score " &a&l" in sidebar of loop-player to 0
  20.  
  21. variables:
  22. {ks.%player%} = 0
  23. {kills::%player%} = 0
  24. {deahts.%player%} = 0
  25.  
  26.  
  27. on death:
  28. attacker is a player
  29. add 1 to {kills.%attacker%}
  30. add 1 to {ks.%attacker%}
  31. add 1 to {death::%player%}
  32.  
  33. on death of player:
  34. set {ks.%player%} to 0
  35.  
  36.  
  37.  
  38.  
  39.  
  40.  
  41.  
  42. command /topkills:
  43. trigger:
  44. loop {kills::*}:
  45. add 1 to {_size}
  46. if {_low.to.high.list::%loop-value%} is not set:
  47. set {_low.to.high.list::%loop-value%} to loop-index
  48. else:
  49. set {_n} to 0
  50. loop {_size} times:
  51. set {_n} to {_n}+1
  52. {_low.to.high.list::%loop-value-1%.%{_n}%} is not set
  53. set {_low.to.high.list::%loop-value-1%.%{_n}%} to loop-index
  54. stop loop
  55. wait 1 tick
  56. set {_n} to size of {_low.to.high.list::*}
  57. loop {_low.to.high.list::*}:
  58. set {_high.to.low.list::%{_n}%} to loop-value
  59. set {_n} to {_n}-1
  60. wait 1 tick
  61. set {_i} to 0
  62. #THIS IS THE MESSAGE WITH TOP KILLS
  63. send "&7&m-----------&8< &6Top10 &8>&7&m-----------"
  64. loop {_high.to.low.list::*}:
  65. add 1 to {_topnumber}
  66. set {_player} to "%loop-value%" parsed as offlineplayer
  67. send "&7%{_topnumber}% - &c%{_player}% &8» &7%{kill::%loop-value%}% Kills"
  68. add 1 to {_i}
  69. if {_topnumber} > 9: #this is top 10 you can change it
  70. stop
  71. send "&7&m------------------------------"
  72. on join:
  73. if {kills::%player%} is not set:
  74. set {kill::%player%} to 0
  75. if {death::%player%} is not set:
  76. set {death::%player%} to 0
Advertisement
RAW Paste Data Copied
Advertisement