Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Hydra AntiCheat from the developers of WASP AntiCheat know as xXPureLifeXx#4033, _LkZ#9628
- # Detections: Killaura, Fly, Speed, Reach, Self Hurt (More Coming Soon)
- # Main Developer: _LkZ
- # Developer: xXPureLifeXx
- options: # DO NOT CHANGE (COULD HURT ANTICHEAT)
- version: 1.0
- noPermission: &c&lHydra &8>> &4No Permissions
- command /hydra [<text>] [<offline player>]:
- permission: hydra.command.command
- permission message: {@noPermission}
- trigger:
- if arg 1 is not set:
- send "&c&lHydra &8>> &c/hydra help"
- if arg 1 is "help":
- send "&c&lHydra AntiCheat. &fMade by _LkZ, and xXPureLifeXx"
- send "&c/hydra help"
- send "&c/hydra freeze <player>"
- send "&c/hydra alerts <player>"
- if arg 1 is "freeze":
- if arg 2 is set:
- if arg 2 is a player:
- if player has permission "hydra.command.freeze":
- if {freezed.%arg 1%} is false:
- set {freezed.%arg 1%} to true
- send "&c&lHydra &8>> &c%arg 1%&f is now frozen!"
- else:
- set {freezed.%arg 1%} to false
- send "&c&lHydra &8>> &c%arg 2% is no longer frozen!"
- else:
- send "{@noPermission}"
- else:
- send "&c&lHydra &8>> &cThat player does not exist!"
- if arg 1 is "alerts":
- if arg 2 is set:
- if arg 2 is a player:
- if player has permission "hydra.command.logs":
- send "&cAuto Clicker Logs: %{autoclickerlogs.%arg 2%}%"
- send "&cKillaura logs: %{killauralogs.%arg 2%}%"
- send "&cSpeed / Flight Logs: %{speedalerts.%arg 2%}%"
- send "&cReach Logs: %{reachalerts.%arg 2%}%"
- else:
- send "{@noPermission}"
- else:
- send "&c&lHydra &8>> &cThat person does not exist!"
- else:
- send "&c&lHydra &8>> &cPlease specify a player!"
- every 30 seconds:
- loop all players:
- clear {alerts.%loop-player%}
- on left click:
- add 1 to {killaura.%player%}
- if {killaura.%player%} >= 20:
- set {_ping} to player's ping
- loop all players:
- loop-player has permission "hydra.logs":
- send "&c&lHydra &8>> &c%player%&f has failed Auto Clicking (&c%{_ping}%&c MS&f) (%{killaura.%player%}%&c&l CPS" to loop-player
- add 1 to {autoclickerlogs.%player%}
- execute console command "auratest %player%"
- add 1 to {alerts.%player%}
- if {alerts.%player%} >= 10:
- execute console command "kick %player% &c&lHydra &8>> &cCheating"
- on left click:
- add 1 to {clickauratest.%player%}
- if {clickauratest.%player%} >= 13:
- execute console command "auratest %player%"
- every 1 second:
- loop all players:
- clear {clickauratest.%loop-player%}
- every 1 second:
- loop all players:
- clear {killaura.%loop-player%}
- command /ka [<player>]:
- trigger:
- if {invtget.%player%} is true:
- if arg 1 is "<none>":
- set {_ping} to player's ping
- loop all players:
- loop-player has permission "hydra.logs":
- send "&c&lHydra &8>> &c%player% has failed &cInvalid Target&f. (&c%{_ping}%&f)"
- add 1 to {killauralogs.%player%}
- add 1 to {alerts.%player%}
- if {alerts.%player%} >= 10:
- execute console command "kick %player% &c&lHydra &8>> &cCheating"
- execute console command "auratest %player%"
- else:
- stop
- on damage:
- set {invtget.%attacker%} to true
- wait 2 ticks
- set {invtget.%attacker%} to false
- on left click:
- if {invtget.%player%} is true:
- make player execute command "ka %targeted entity%"
- on damage:
- add 1 to {hits.%attacker%}
- on left click:
- add 1 to {leftclicks.%player%}
- on death:
- if {hits.%attacker%} = {leftclicks.%attacker%}:
- execute console command "auratest %attacker%"
- command /auratest [<player>]:
- permission: hydra.command.auratest
- permission message: &c&lHydra >> No Permissions
- trigger:
- set {loc} to location behind arg 1
- set {attacker} to arg 1
- spawn a zombie at {loc}
- set {bot} to last spawned entity
- wait 5 ticks
- delete last spawned entity
- on damage:
- if attacker is {attacker}:
- if victim is {bot}:
- delete {bot}
- loop all players:
- loop-player has permission "hydra.logs":
- set {_ping} to attacker's ping
- send "&c&lHydra &r&8>> &c%attacker%&f has failed KillAura. (&c%{_ping}%&c MS&f)" to loop-player
- add 1 to {killauralogs.%attacker%}
- add 1 to {alerts.%attacker%}
- if {alerts.%attacker%} >= 10:
- execute console command "kick %attacker% &c&lHydra &8>> &cCheating"
- else:
- if victim is {bot}:
- cancel event
- on any move:
- player is not flying
- player's gamemode is not creative
- block below player is not air:
- set {fly.%player%} to 0
- stop
- else:
- block north below player is air
- block south below player is air
- block west below player is air
- block east below player is air
- block north east below player is air
- block south east below player is air
- block north west below player is air
- block south west below player is air
- the gliding state of player is true:
- player's chestplate is elytra:
- stop
- set {fly.%player%} to 0
- else:
- set {ylocation.%player%} to the y location of player
- wait 2 seconds
- set {ylocation2.%player%} to the y location of player
- wait 1 tick
- if difference between {ylocation.%player%} and {ylocation2.%player%} = 0:
- teleport player to {ylocation.%player%}
- set {_ping} to player's ping
- loop all players:
- loop-player has permission "hydra.logs":
- send "&c&lHydra &8>> &c%player%&f has failed Flight. (&c%{_ping}%&c MS&f)"
- add 1 to {speedalerts.%player%}
- add 1 to {alerts.%player%}
- if {alerts.%player%} >= 10:
- execute console command "kick %player% &c&lHydra &8>> &cCheating"
- on any move:
- set {_loc.%player%} to the x location of player
- set {speedsetback.%player%} to location of the player
- wait 5 ticks
- set {_loc1.%player%} to the x location of player
- wait 1 tick
- if difference between {_loc.%player%} and {_loc1.%player%} >= 3.5:
- player's gamemode is not creative
- player is not flying
- add 1 to {speed.%player%}
- if {speed.%player%} >= 3:
- teleport player to {speedsetback.%player%}
- set {_ping} to player's ping
- send "&c&lHydra &8>> &c%player% &fhas failed Speed Hacks. (&c%{_ping}%&c MS&f)"
- add 1 to {speedalerts.%player%}
- add 1 to {alerts.%player%}
- if {alerts.%player%} >= 10:
- execute console command "kick %player% &c&lHydra &8>> &cCheating"
- on any move:
- set {_locz.%player%} to the z location of player
- set {speedsetback.%player%} to location of the player
- wait 5 ticks
- set {_loc1z.%player%} to the z location of player
- wait 1 tick
- if difference between {_locz.%player%} and {_loc1z.%player%} >= 3.5:
- player's gamemode is not creative
- player is not flying
- add 1 to {speed.%player%}
- if {speed.%player%} >= 3:
- teleport player to {speedsetback.%player%}
- set {_ping} to player's ping
- send "&c&lHydra &8>> &c%player% &fhas failed Speed Hacks. (&c%{_ping}%&c MS&f)"
- add 1 to {speedalerts.%player%}
- add 1 to {alerts.%player%}
- if {alerts.%player%} >= 10:
- execute console command "kick %player% &c&lHydra &8>> &cCheating"
- on damage:
- set {_reach} to distance between attacker and victim
- if {_reach} > 4:
- if damage cause is not a projectile:
- attacker's gamemode is not creative:
- cancel event
- set {_ping} to attacker's ping
- loop all players:
- loop-player has permission "hydra.logs":
- send "&c&lHydra &8>> &c%attacker% &fhas failed Reach. (&c%{_ping}%&c MS&f)"
- add 1 to {reachalerts.%attacker%}
- on damage:
- if attacker is victim:
- damage cause was not a projectile:
- cancel event
- set {_ping} to attacker's ping
- loop all players:
- loop-player has permission "hydra.logs":
- send "&c&lHydra &8>> &c%player% &fhas failed Self Hurt. (&c%{_ping}%&c MS)"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement