Witam,
na moim serwerze gracze gdy znajdują się w wodzie nie mogą walczyć, bić się itp.
Co może blokować to ??
Antylogout
on damage:
if attacker is player:
if victim is player:
if {antylogout::%victim%} is not set:
send "&cJestes podczas walki! Nie logaj!" to victim
set {antylogout::%victim%} to 2
every 2 seconds:
loop all players:
if {antylogout::%loop-player%} is set:
if {antylogout::%loop-player%} is greater than 0:
remove 1 from {antylogout::%loop-player%}
else:
clear {antylogout::%loop-player%}
send "&aSkonczyles walczyc." to loop-player
set action bar of loop-player to "&2&lAntyLogout"
on quit:
if {antylogout::%player%} is set:
kill player
broadcast "&cGracz %player% wylogowal sie podczas walki!"
on death:
clear {antylogout::%victim%}
on command:
if {antylogout::%player%} is set:
if command is not "helpop":
cancel event
Pytanie
BlackRode 28
Witam,
??
na moim serwerze gracze gdy znajdują się w wodzie nie mogą walczyć, bić się itp.
Co może blokować to
Antylogout
on damage:
if attacker is player:
if victim is player:
if {antylogout::%victim%} is not set:
send "&cJestes podczas walki! Nie logaj!" to victim
set {antylogout::%victim%} to 2
every 2 seconds:
loop all players:
if {antylogout::%loop-player%} is set:
if {antylogout::%loop-player%} is greater than 0:
remove 1 from {antylogout::%loop-player%}
else:
clear {antylogout::%loop-player%}
send "&aSkonczyles walczyc." to loop-player
set action bar of loop-player to "&2&lAntyLogout"
on quit:
if {antylogout::%player%} is set:
kill player
broadcast "&cGracz %player% wylogowal sie podczas walki!"
on death:
clear {antylogout::%victim%}
on command:
if {antylogout::%player%} is set:
if command is not "helpop":
cancel event
Odnośnik do komentarza
https://skript.pl/temat/25548-blokada-pvp-w-wodzie/Udostępnij na innych stronach
0 odpowiedzi na to pytanie
Rekomendowane odpowiedzi