Witam czy mógłby to ktoś przerobić aby po lognieciu usuwało itemy graczowi który opuscił serwer podczas walki
oto kod:
on damage:
if attacker is player:
if victim is player:
if {antylogout::%victim%} is not set:
send "&6&lBlaze-Craft > &cJestes podczas walki! Nie logaj!" to victim
set {antylogout::%victim%} to 20
every 1 seconds:
loop all players:
if {antylogout::%loop-player%} is set:
if {antylogout::%loop-player%} is greater than 0:
remove 1 from {antylogout::%loop-player%}
set action bar of loop-player to "&c&lAntyLogout &c%{antylogout::%loop-player%}% &c&Lsek"
else:
clear {antylogout::%loop-player%}
send "&aSkonczyles walczyc." to loop-player
set action bar of loop-player to "&a&lMozesz logac!"
on death:
set {antylogout::%victim%} to false
Pytanie
Blaze-Craft 0
Witam czy mógłby to ktoś przerobić aby po lognieciu usuwało itemy graczowi który opuscił serwer podczas walki
oto kod:
on damage: if attacker is player: if victim is player: if {antylogout::%victim%} is not set: send "&6&lBlaze-Craft > &cJestes podczas walki! Nie logaj!" to victim set {antylogout::%victim%} to 20 every 1 seconds: loop all players: if {antylogout::%loop-player%} is set: if {antylogout::%loop-player%} is greater than 0: remove 1 from {antylogout::%loop-player%} set action bar of loop-player to "&c&lAntyLogout &c%{antylogout::%loop-player%}% &c&Lsek" else: clear {antylogout::%loop-player%} send "&aSkonczyles walczyc." to loop-player set action bar of loop-player to "&a&lMozesz logac!" on death: set {antylogout::%victim%} to false
Edytowane przez LeQuLaWstawiam w code.
Odnośnik do komentarza
https://skript.pl/temat/36992-pomoc-z-antylogout/Udostępnij na innych stronach
2 odpowiedzi na to pytanie
Rekomendowane odpowiedzi