variables: {pkt::%player%} = 1000 {zabojstwa::%player%} = 0 {smierci::%player%} = 0 {top} = true on death: if attacker is set: add 1 to {zabojstwa::%attacker%} add 1 to {smierci::%victim%} send "&cZabiles &6%victim%! &7+5 {pkt::%player%}" to attacker send "&cZostales zabity przez &6%attacker%! &7-5 {pkt::%player%}" to victim add 5 to {pkt::%attacker%} remove 5 from {pkt::%victim%} command /top []: aliases: /topka trigger: if {top} is true: loop {zabojstwa::*}: 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 "TOP 10 ZABOJSTW" loop {_high.to.low.list::*}: add 1 to {_result} send "&a%loop-value%&8: &e%{zabojstwa::%loop-value%}% zabojstw" to player if {_result} is 3: stop