Nie mój skrypt ale trzymaj wyłącza się gm i fly
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:
disable 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!"