function startAntiLogOut(p: player): set {antiLogOut::%{_p}%} and {_var} to 20 loop 20 times: {antiLogOut::%{_p}%} is not set: stop {antiLogOut::%{_p}%} > {_var}: stop send action bar "&8» &7Rozpoczales &cwalke&7! &7Bedziesz w niej jeszcze przez &c%{antiLogOut::%{_p}%}% &7sekund!" to {_p} remove 1 from {antiLogOut::%{_p}%} and {_var} wait 1 second clear {antiLogOut::%{_p}%} send action bar "&8» &7Zakonczyles &aWalke&7! Mozesz sie spokojnie &awylogowac&7!" to {_p} on damage of player: attacker is set startAntiLogOut(victim) startAntiLogOut(attacker) on quit: {antiLogOut::%player%} is set broadcast "&8» &c%player% &7wylogowal sie podczas &cwalki&7!" kill player on command: command is not "helpop" or "zglos" or "msg" {antiLogOut::%player%} is set cancel event send "&8» &cUzywanie tej komendy podczas walki jest zabronione!" to player