every 0.1 seconds: loop all players: if {botkillanty::%loop-player%} is true: if {idss::%loop-player%} is not set: set {1d} to 1 or 2 or 3 or 4 or 5 or 6 or 7 or 8 or 9 set {2d} to 1 or 2 or 3 or 4 or 5 or 6 or 7 or 8 or 9 set {3d} to 1 or 2 or 3 or 4 or 5 or 6 or 7 or 8 or 9 set {4d} to 1 or 2 or 3 or 4 or 5 or 6 or 7 or 8 or 9 set {nr::ac} to "%{1d}%%{2d}%%{3d}%%{4d}%" create a citizen named "&4AC-%{nr::ac}%" at location of loop-player set {idss::%loop-player%} to last created citizen id set {loc::%loop-player%} to location 4 blocks behind loop-player teleport citizen {idss::%loop-player%} to {loc::%loop-player%} every 3 seconds: loop all players: set {antykill::%loop-player%} to 0 on damage: attacker is a player victim is a player if name of attacker is "&4&lANTYKILLAURA1" or "&4&lANTYKILLAURA2" or "&4&lANTYKILLAURA3" or "&4&lANTYKILLAURA4": cancel event if attacker is player: if victim is citizen: if citizen is {idss::%attacker%}: add 1 to {antykill::%attacker%} if {antykill::%attacker%} is more than 7: add 1 to {killaura::list::gracze} broadcast "&8[&4AntyCheat&8] &aGracz %attacker% zostal zbanowany za KILLAURE!" kick attacker due to "%{ban::message}%" ban attacker due to "%{ban::message}%" on citizen left click: if citizen is {idss::%player%}: add 1 to {antykill::%player%} if {antykill::%player%} is more than 7: add 1 to {killaura::list::gracze} broadcast "&8[&4AntyCheat&8] &aGracz %player% zostal zbanowany za KILLAURE!" kick player due to "%{ban::message}%" ban player due to "%{ban::message}%" on citizen right click: if citizen is {idss::%player%}: add 1 to {antykill::%player%} if {antykill::%player%} is more than 7: add 1 to {killaura::list::gracze} broadcast "&8[&4AntyCheat&8] &aGracz %player% zostal zbanowany za KILLAURE!" kick player due to "%{ban::message}%" ban player due to "%{ban::message}%" every 520 second: broadcast "&8&m-------------[&4AntyCheat&8&m]----------------" broadcast "" broadcast "&7AntyCheat zbanowal juz&8: &e%{killaura::list::gracze}% &7graczy" broadcast "&7Obserwuje cie" broadcast "" broadcast "&8&m-------------[&4AntyCheat&8&m]----------------" on disconnect: if {idss::%player%} is set: despawn citizen {idss::%player%} clear {idss::%player%} variables: {logout::%player%} = -1 command /antylogout []: trigger: if arg-1 is not set: if {logout::%player%} = -1 or 0: send "&aNie jestes podczas pvp!" else: send "&cJestes podczas pvp! &7(&c%{logout::%player%}%sek.&7)" on death of player: if {lastattacker::%victim%} is set: execute console command "eco %{lastattacker::%victim%}%" delete {lastattacker::%victim%} on damage: set {lastattacker::%victim%} to "%attacker%" on join: delete {lastattacker::%player%} on quit: delete {lastattacker::%player%} every second: loop all players: if {logout::%loop-player%} = 0: remove 1 from {logout::%loop-player%} #Odejmuje 1 zeby nic sie nie bugowalo. set action bar of loop-player to "&4&lANTYLOGOUT &7(&a0sek.&7)" send "&7Walka zostala zakonczona! &aMozesz sie wylogowac!" to loop-player set {botkillanty::%loop-player%} to false despawn citizen {idss::%loop-player%} clear {idss::%loop-player%} if {logout::%loop-player%} > 0: set action bar of loop-player to "&4&lANTYLOGOUT &7(&c%{logout::%loop-player%}%.&k00&csek&7)" remove 1 from {logout::%loop-player%} on damage: if attacker is victim: stop if attacker is player: if victim is player: set action bar of victim to "&4&lANTYLOGOUT &7(&c20.&k00&csek&7)" if {logout::%victim%} < 0: send "&7Walka zostala rozpoczeta! &cNie mozesz sie wylogowac!" to victim set {botkillanty::%attacker%} to true set {botkillanty::%victim%} to true loop all players: hide citizen {idss::%victim%} from loop-players reveal citizen {idss::%victim%} from victim set {logout::%victim%} to 20 if {logout::%attacker%} < 0: send "&7Walka zostala rozpoczeta! &cNie mozesz sie wylogowac!" to attacker set {botkillanty::%attacker%} to true set {botkillanty::%victim%} to true loop all players: hide citizen {idss::%attacker%} from loop-players reveal citizen {idss::%attacker%} from attacker set {logout::%attacker%} to 20 on death: set {logout::%player%} to -1 on quit: if {logout::%player%} > 0: kill player broadcast "&7Gracz &e%player% &7wylogowal sie podczas walki!" set {logout::%player%} to -1 else: stop on command: if {logout::%player%} > 0: if command is "spawn" or "lobby": cancel event send "&cBlad: &7Ta komenda jest zablokowana podczas pvp!" on join: set {logout::%player%} to -1