[13:12:45 ERROR]: [Skript] Can't understand this condition/effect: remove fly for loop-player (antyfly.sk, line 26: remove fly for loop-player')
options:
time: 20 #Czas po jakim ma zniknac walka
on damage:
attacker is player
victim is player
set {walka.now.%victim%} to {@time}
set {walka.now.%attacker%} to {@time}
if {walka.now.%victim%.bc} is not set:
set {walka.now.%victim%.bc} to true
send "&cJestes w walce, nie wylogowywuj sie!" to victim
if {walka.now.%attacker%.bc} is not set:
set {walka.now.%attacker%.bc} to true
send "&cJestes w walce, nie wylogowywuj sie!" to attacker
on command:
if {walka.now.%player%} is set:
if command is not "msg" or "r" or "t" or "...":
cancel event
send "&7Nie mozesz uzywac komend podczas walki"
stop
every 1 second:
loop all players:
if {walka.now.%loop-player%} is larger than 0:
if loop-player's gamemode is creative:
set loop-player's gamemode to survival
if loop-player is flying:
remove fly for loop-player
remove 1 from {walka.now.%loop-player%}
if {walka.now.%loop-player%} is 0:
send "&aNie jestes juz w walce, mozesz spokojnie sie wylogowac" to loop-player
clear {walka.now.%loop-player%}
clear {walka.now.%loop-player%.bc}
on quit:
if {walka.now.%player%} is set:
kill player
#execute console command "tempban %player% 5m"
broadcast "&6Gracz &c%player% &6wylogowal sie podczas walki!"
Pytanie
T0fficzeG 0
options:
time: 20 #Czas po jakim ma zniknac walka
on damage:
attacker is player
victim is player
set {walka.now.%victim%} to {@time}
set {walka.now.%attacker%} to {@time}
if {walka.now.%victim%.bc} is not set:
set {walka.now.%victim%.bc} to true
send "&cJestes w walce, nie wylogowywuj sie!" to victim
if {walka.now.%attacker%.bc} is not set:
set {walka.now.%attacker%.bc} to true
send "&cJestes w walce, nie wylogowywuj sie!" to attacker
on command:
if {walka.now.%player%} is set:
if command is not "msg" or "r" or "t" or "...":
cancel event
send "&7Nie mozesz uzywac komend podczas walki"
stop
every 1 second:
loop all players:
if {walka.now.%loop-player%} is larger than 0:
if loop-player's gamemode is creative:
set loop-player's gamemode to survival
if loop-player is flying:
remove fly for loop-player
remove 1 from {walka.now.%loop-player%}
if {walka.now.%loop-player%} is 0:
send "&aNie jestes juz w walce, mozesz spokojnie sie wylogowac" to loop-player
clear {walka.now.%loop-player%}
clear {walka.now.%loop-player%.bc}
on quit:
if {walka.now.%player%} is set:
kill player
#execute console command "tempban %player% 5m"
broadcast "&6Gracz &c%player% &6wylogowal sie podczas walki!"
Odnośnik do komentarza
https://skript.pl/temat/33943-pomo%C5%BCe-kto%C5%9B-ze-skryptem-anty-fly/Udostępnij na innych stronach
3 odpowiedzi na to pytanie
Rekomendowane odpowiedzi