Togrul
Bir Kömür Göründü Kaptanım!
- Katılım
- 18 Temmuz 2018
- Mesajlar
- 171
- Elmaslar
- 16
- Puan
- 0
- Yaş
- 26
- Minecraft
- Togrul
Alpho320#9202
On death of a player:
if attacker is a player:
if {killtop::%attacker%} is not set:
set {killtop.kills::%attacker%} to 0
add 1 to {killtop.kills::%attacker%}
stop
command /katiller:
trigger:
loop {killtop.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 "&7&m--------------------"
send " &8[&aKill&7Top&8] "
send " "
loop {_high.to.low.list::*}:
add 1 to {_result}
send "&a%loop-value%&8: &e%{killtop.kills::%loop-value%}% Kills" to player
if {_result} is 3:
stop
if {killtop.kills::%player%} is 10000:
execute console command "manuadd %player% Diamond"
send "&6Basariyla &bDiamond &6Rutbesine Eristin!" to player
if {killtop.kills::%player%} is 20000:
execute console command "manuadd %player% Iron"
send "&6Basariyla &fIron &6Rutbesine Eristin!" to player
command /resetkatiller:
permission: reset.katiller
trigger:
delete {killtop.kills::*}
delete {_high.to.low.list::*}
delete {_size}
delete {_n}
delete {_high.to.low.list::%{_n}%}
senin baba tarafi veya anne tarafi Adamin Dibi olmaliBuyur;
Denenmemiştir.Kod:On death of a player: if attacker is a player: if {killtop::%attacker%} is not set: set {killtop.kills::%attacker%} to 0 add 1 to {killtop.kills::%attacker%} stop command /katiller: trigger: loop {killtop.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 "&7&m--------------------" send " &8[&aKill&7Top&8] " send " " loop {_high.to.low.list::*}: add 1 to {_result} send "&a%loop-value%&8: &e%{killtop.kills::%loop-value%}% Kills" to player if {_result} is 3: stop if {killtop.kills::%player%} is 10000: execute console command "manuadd %player% Diamond" send "&6Basariyla &bDiamond &6Rutbesine Eristin!" to player if {killtop.kills::%player%} is 20000: execute console command "manuadd %player% Iron" send "&6Basariyla &fIron &6Rutbesine Eristin!" to player command /resetkatiller: permission: reset.katiller trigger: delete {killtop.kills::*} delete {_high.to.low.list::*} delete {_size} delete {_n} delete {_high.to.low.list::%{_n}%}
Büyük bir topluluğun parçası ol, etkinliklere katıl ve özel hediyeler kazanma şansı yakala!