Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- variables:
- {ks.%player%} = 0
- {kills.%player%} = 0
- {deahts.%player%} = 0
- on death:
- attacker is a player
- add 1 to {kills.%attacker%}
- add 1 to {ks.%attacker%}
- add 1 to {deahts.%victim%}
- on death of player:
- set {ks.%player%} to 0
- options:
- top10: &c&l--TOP KILLS--
- command /top10:
- trigger:
- loop {kills::*}:
- add 1 to {_size}
- if {_low.to.high.list::%loop-value%} is not set:
- set {_low.to.high.list::%loop-value%} to loop-index
- else:
- set {_n} to 0
- loop {_size} times:
- set {_n} to {_n}+1
- {_low.to.high.list::%loop-value-1%.%{_n}%} is not set
- set {_low.to.high.list::%loop-value-1%.%{_n}%} to loop-index
- stop loop
- wait 1 tick
- set {_n} to size of {_low.to.high.list::*}
- loop {_low.to.high.list::*}:
- set {_high.to.low.list::%{_n}%} to loop-value
- set {_n} to {_n}-1
- wait 1 tick
- send "{@top10}" to player
- loop {_high.to.low.list::*}:
- add 1 to {_result}
- send "&f%loop-value%&7: &c%{kills::%loop-value%}% kills" to player
- if {_result} is 10:
- stop
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement