options: nameSERV: &a&lSkript.pl world: world on damage of player: if attacker is a player: if {al::%victim%} is not set: set {al::%victim%} to false if {al::%attacker%} is not set: set {al::%attacker%} to false if {al::%attacker%} is false: if {al::%victim%} is false: set {al::%attacker%} to true set {al::%victim%} to true set {al.c::%attacker%} to 0 set {al.c::%victim%} to 0 set {czas::%victim%} to 20 set {czas::%attacker%} to 20 send "&cWalczysz z &6%attacker%! &cNie mozesz sie wylogowac przez 20 sekund!" to victim send "&cWalczysz z &6%victim%! &cNie mozesz sie wylogowac przez 20 sekund!" to attacker else: set {al.c::%victim%} to 0 set {al.c::%attacker%} to 0 send "&cWalczysz z &6%victim%! &cNie mozesz sie wylogowac przez 20 sekund!" to attacker set {al::%attacker%} to true else: set {al.c::%attacker%} to 0 set {al.c::%victim%} to 0 if {al::%victim%} is false: send "&cWalczysz z &6%attacker%! &cNie mozesz sie wylogowac przez 20 sekund!" to victim set {al::%victim%} to true every 1 second: loop all players: if {al::%loop-player%} is true: add 1 to {al.c::%loop-player%} if {al.c::%loop-player%} is more than 20 or 20: set {al::%loop-player%} to false send "&2Zakonczyles walke. Mozesz sie wylogowac!" to loop-player if {al::%loop-player%} is true: add -1 to {czas::%loop-player%} on rightclick on ender chest or chest or furnace or anvil or crafting table: if {al::%player%} is true: cancel event send "&4Blad: &cNie mozesz tego uzywac podczas walki!" on quit: if {al::%player%} is true: kill player set {al.%player%} to false send "&cGracz &6%player% &cwylogowal sie podczas walki!" to all players on death: if {al::%player%} is true: set {al::%player%} to false on join: if {al::%player%} is true: set {al::%player%} to false on command: if command is not "antylogout" or "al" or "helpop" or "msg" or "m" or "r" or "ac": if {al::%player%} is true: if player has permission "al.Admin": stop else: cancel event send "&cNie mozesz uzywac komend podczas walki!" command /antylogout: trigger: if {czas::%player%} is not 0: send "&cNie mozesz sie wylogowac! Przez: &f%{czas::%player%}%" else: send "&aMozesz sie wylogowac"