Siema, przerobilem taki skrypt, i nie działa. Zawsze wywala największego bana.
Help
options:
tag: [&4&l4&f&lHARD.pl BAN&r]
ban_time1: 900
ban_time2: 3600
ban_time3: 86400
ban_time4: 604800
farewell_time: 10
command /dunban [<text>] [<offlineplayer>]:
permission: admin.dunban
trigger:
loop {DeathBan::bans::*}:
set {DeathBan::bans::%loop-index%} to 0
send "Zresetowano ban gracza: %loop-index%"
stop
on death of player:
send "{@tag} &3Masz &c{@farewell_time} &3sekund na pozegnanie sie z serwerem." to victim
wait {@farewell_time} seconds
if {DeathBan::ilosc::%victim%} is not set:
set {DeathBan::ilosc::%victim%} to 1
set {DeathBan::bans::%victim%} to {@ban_time1}
kick victim due to "{@tag} &7Umarles. To twoja %{DeathBan::ilosc:%victim%}% smierc. Twoj ban skonczy sie za &c15 &7minut. &f&lKup unbana: https://4HARD.pl"
stop
if {DeathBan::ilosc::%victim%} is 1:
set {DeathBan::ilosc::%victim%} to 2
set {DeathBan::bans::%victim%} to {@ban_time2}
kick victim due to "{@tag} &7Umarles. To twoja %{DeathBan::ilosc:%victim%}% smierc. Twoj ban skonczy sie za &c1 &7godzine. &f&lKup unbana: https://4HARD.pl"
if {DeathBan::ilosc::%victim%} is 2:
set {DeathBan::ilosc::%victim%} to 3
set {DeathBan::bans::%victim%} to {@ban_time3}
kick victim due to "{@tag} &7Umarles. To twoja %{DeathBan::ilosc:%victim%}% smierc. Twoj ban skonczy sie za &c1 &7dzien. &f&lKup unbana: https://4HARD.pl"
if {DeathBan::ilosc::%victim%} is 3:
set {DeathBan::ilosc::%victim%} to 4
set {DeathBan::bans::%victim%} to {@ban_time4}
kick victim due to "{@tag} &7Umarles. To twoja %{DeathBan::ilosc:%victim%}% smierc. Twoj ban skonczy sie za &cTYDZIEN. &f&lKup unbana: https://4HARD.pl"
if {DeathBan::ilosc::%victim%} is 4:
set {DeathBan::bans::%victim%} to {@ban_time4}
set {DeathBan::ilosc::%victim%} to 5
kick victim due to "{@tag} &7Umarles. To twoja %{DeathBan::ilosc:%victim%}% smierc. Twoj ban skonczy sie za &cTYDZIEN. &f&lKup unbana: https://4HARD.pl"
if {DeathBan::ilosc::%victim%} is more than 4:
add 1 to {DeathBan::ilosc::%victim%}
set {DeathBan::bans::%victim%} to {@ban_time4}
kick victim due to "{@tag} &7Umarles. To twoja %{DeathBan::ilosc:%victim%}% smierc. Twoj ban skonczy sie za &cTYDZIEN. &f&lKup unbana: https://4HARD.pl"
on connect:
if {DeathBan::bans::%player%} is set:
kick player due to "{@tag} &7Umarles. To twoja %{DeathBan::ilosc:%player%}% smierc. Twoj ban skonczy sie za &c%{DeathBan::bans::%player%}% &7sekund. &f&lKup unbana: https://4HARD.pl"
if {DeathBan::ilosc::%player%} is not set:
set {DeathBan::ilosc::%player%} to 0
every 1 second:
loop {DeathBan::bans::*}:
if {DeathBan::bans::%loop-index%} is not 0:
remove 1 from {DeathBan::bans::%loop-index%}
else:
clear {DeathBan::bans::%loop-index%}
Pytanie
OliwierGL 0
Siema, przerobilem taki skrypt, i nie działa. Zawsze wywala największego bana.
Help
Odnośnik do komentarza
Udostępnij na innych stronach
4 odpowiedzi na to pytanie
Rekomendowane odpowiedzi