function startAntiLogOut(p: player):
set {antiLogOut::%{_p}%} and {_var} to 5
loop 5 times:
{antiLogOut::%{_p}%} is not set:
stop
{antiLogOut::%{_p}%} > {_var}:
stop
send action bar "&cJesteś w walce jeszcze przez &6%{antiLogOut::%{_p}%}% &csekund!" to {_p}
remove 1 from {antiLogOut::%{_p}%} and {_var}
wait 1 second
clear {antiLogOut::%{_p}%}
send action bar "&aJuż nie jesteś podczas walki!" to {_p}
on damage of player:
attacker is a player
startAntiLogOut(victim)
startAntiLogOut(attacker)
on quit:
{antiLogOut::%player%} is set
kill player
send "&cGracz &6{%player%} &cwylogował się podczas walki!"
on command:
command is not "login" or "tpaccept" or "msg" or "tak" or "nie" or "ec"
{antiLogOut::%player%} is set
cancel event
send "&cJesteś podczas walki!" to player
Kiedy kogoś uderzę, jest wszystko ok. Ale jak ktoś mnie udeży po tym jak ja to zrobiłem to nalicza za dużo tych remove 1 from....... i mam antylogout na minusie, np. -4
Pytanie
wanisz_0 0
Mam problem ze skryptem na AntyLogOut
function startAntiLogOut(p: player):
set {antiLogOut::%{_p}%} and {_var} to 5
loop 5 times:
{antiLogOut::%{_p}%} is not set:
stop
{antiLogOut::%{_p}%} > {_var}:
stop
send action bar "&cJesteś w walce jeszcze przez &6%{antiLogOut::%{_p}%}% &csekund!" to {_p}
remove 1 from {antiLogOut::%{_p}%} and {_var}
wait 1 second
clear {antiLogOut::%{_p}%}
send action bar "&aJuż nie jesteś podczas walki!" to {_p}
on damage of player:
attacker is a player
startAntiLogOut(victim)
startAntiLogOut(attacker)
on quit:
{antiLogOut::%player%} is set
kill player
send "&cGracz &6{%player%} &cwylogował się podczas walki!"
on command:
command is not "login" or "tpaccept" or "msg" or "tak" or "nie" or "ec"
{antiLogOut::%player%} is set
cancel event
send "&cJesteś podczas walki!" to player
Kiedy kogoś uderzę, jest wszystko ok. Ale jak ktoś mnie udeży po tym jak ja to zrobiłem to nalicza za dużo tych remove 1 from....... i mam antylogout na minusie, np. -4
Wie ktoś jak poprawić ten skrypt?
Odnośnik do komentarza
https://skript.pl/temat/51911-antylogout/Udostępnij na innych stronach
0 odpowiedzi na to pytanie
Rekomendowane odpowiedzi
Dołącz do dyskusji
Możesz dodać zawartość już teraz a zarejestrować się później. Jeśli posiadasz już konto, zaloguj się aby dodać zawartość za jego pomocą.