Advertisement
Guest User

Untitled

a guest
Oct 23rd, 2020
206
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.14 KB | None | 0 0
  1. # Hydra AntiCheat from the developers of WASP AntiCheat know as xXPureLifeXx#4033, _LkZ#9628
  2. # Detections: Killaura, Fly, Speed, Reach, Self Hurt (More Coming Soon)
  3. # Main Developer: _LkZ
  4. # Developer: xXPureLifeXx
  5.  
  6. options: # DO NOT CHANGE (COULD HURT ANTICHEAT)
  7. version: 1.0.1
  8. noPermission: &c&lHydra &8>> &4No Permissions
  9.  
  10. command /hydra [<text>] [<offline player>]:
  11. permission: hydra.command.command
  12. permission message: {@noPermission}
  13. trigger:
  14. if arg 1 is not set:
  15. send "&c&lHydra &8>> &c/hydra help"
  16. if arg 1 is "help":
  17. send "&c&lHydra AntiCheat. &fMade by _LkZ, and xXPureLifeXx"
  18. send "&c/hydra help"
  19. send "&c/hydra freeze <player>"
  20. send "&c/hydra alerts <player>"
  21. if arg 1 is "freeze":
  22. if arg 2 is set:
  23. if arg 2 is a player:
  24. if player has permission "hydra.command.freeze":
  25. if {freezed.%arg 1%} is false:
  26. set {freezed.%arg 1%} to true
  27. send "&c&lHydra &8>> &c%arg 1%&f is now frozen!"
  28. else:
  29. set {freezed.%arg 1%} to false
  30. send "&c&lHydra &8>> &c%arg 2% is no longer frozen!"
  31. else:
  32. send "{@noPermission}"
  33. else:
  34. send "&c&lHydra &8>> &cThat player does not exist!"
  35. if arg 1 is "alerts":
  36. if arg 2 is set:
  37. if arg 2 is a player:
  38. if player has permission "hydra.command.logs":
  39. send "&cAuto Clicker Logs: %{autoclickerlogs.%arg 2%}%"
  40. send "&cKillaura logs: %{killauralogs.%arg 2%}%"
  41. send "&cSpeed / Flight Logs: %{speedalerts.%arg 2%}%"
  42. send "&cReach Logs: %{reachalerts.%arg 2%}%"
  43. else:
  44. send "{@noPermission}"
  45. else:
  46. send "&c&lHydra &8>> &cThat person does not exist!"
  47. else:
  48. send "&c&lHydra &8>> &cPlease specify a player!"
  49.  
  50.  
  51. every 30 seconds:
  52. loop all players:
  53. delete {alerts.%loop-player%}
  54.  
  55.  
  56. on left click:
  57. add 1 to {killaura.%player%}
  58. if {killaura.%player%} >= 20:
  59. set {_ping} to player's ping
  60. loop all players:
  61. loop-player has permission "hydra.logs":
  62. send "&c&lHydra &8>> &c%player%&f has failed Auto Clicking (&c%{_ping}%&c MS&f) (%{killaura.%player%}%&c&l CPS" to loop-player
  63. add 1 to {autoclickerlogs.%player%}
  64. execute console command "auratest %player%"
  65. add 1 to {alerts.%player%}
  66. if {alerts.%player%} >= 10:
  67. execute console command "kick %player% &c&lHydra &8>> &cCheating"
  68.  
  69. on left click:
  70. add 1 to {clickauratest.%player%}
  71. if {clickauratest.%player%} >= 13:
  72. execute console command "auratest %player%"
  73.  
  74. every 1 second:
  75. loop all players:
  76. clear {clickauratest.%loop-player%}
  77.  
  78.  
  79. every 1 second:
  80. loop all players:
  81. clear {killaura.%loop-player%}
  82.  
  83.  
  84. command /ka [<text>]:
  85. trigger:
  86. if {invtget.%player%} is true:
  87. if arg 1 is "<none>":
  88. set {_ping} to player's ping
  89. loop all players:
  90. loop-player has permission "hydra.logs":
  91. send "&c&lHydra &8>> &c%player% has failed &cInvalid Target&f. (&c%{_ping}%&f)"
  92. add 1 to {killauralogs.%player%}
  93. add 1 to {alerts.%player%}
  94. if {alerts.%player%} >= 10:
  95. execute console command "kick %player% &c&lHydra &8>> &cCheating"
  96. execute console command "auratest %player%"
  97. else:
  98. stop
  99.  
  100. on damage:
  101. set {invtget.%attacker%} to true
  102. wait 2 ticks
  103. set {invtget.%attacker%} to false
  104.  
  105. on left click:
  106. if {invtget.%player%} is true:
  107. make player execute command "ka %targeted entity%"
  108.  
  109.  
  110. on damage:
  111. add 1 to {hits.%attacker%}
  112.  
  113. on left click:
  114. add 1 to {leftclicks.%player%}
  115.  
  116. on death:
  117. if {hits.%attacker%} = {leftclicks.%attacker%}:
  118. execute console command "auratest %attacker%"
  119.  
  120. command /auratest [<player>]:
  121. permission: hydra.command.auratest
  122. permission message: &c&lHydra >> No Permissions
  123. trigger:
  124. set {loc} to location behind arg 1
  125. set {attacker} to arg 1
  126. spawn a zombie at {loc}
  127. set {bot} to last spawned entity
  128. wait 5 ticks
  129. delete last spawned entity
  130.  
  131. on damage:
  132. if attacker is {attacker}:
  133. if victim is {bot}:
  134. delete {bot}
  135. loop all players:
  136. loop-player has permission "hydra.logs":
  137. set {_ping} to attacker's ping
  138. send "&c&lHydra &r&8>> &c%attacker%&f has failed KillAura. (&c%{_ping}%&c MS&f)" to loop-player
  139. add 1 to {killauralogs.%attacker%}
  140. add 1 to {alerts.%attacker%}
  141. if {alerts.%attacker%} >= 10:
  142. execute console command "kick %attacker% &c&lHydra &8>> &cCheating"
  143. else:
  144. if victim is {bot}:
  145. cancel event
  146.  
  147.  
  148. on any move:
  149. player is not flying
  150. player's gamemode is not creative
  151. block north below player is air
  152. block south below player is air
  153. block west below player is air
  154. block east below player is air
  155. block north east below player is air
  156. block south east below player is air
  157. block north west below player is air
  158. block south west below player is air
  159. the gliding state of player is true:
  160. player's chestplate is elytra:
  161. stop
  162. set {fly.%player%} to 0
  163. else:
  164. set {ylocation.%player%} to the y location of player
  165. set {flysetback.%player%} to location of the player
  166. wait 2 seconds
  167. set {ylocation2.%player%} to the y location of player
  168. wait 1 tick
  169. if difference between {ylocation.%player%} and {ylocation2.%player%} = 0:
  170. teleport player to {flysetback.%player%}
  171. set {_ping} to player's ping
  172. loop all players:
  173. loop-player has permission "hydra.logs":
  174. send "&c&lHydra &8>> &c%player%&f has failed Flight. (&c%{_ping}%&c MS&f)"
  175. add 1 to {speedalerts.%player%}
  176. add 1 to {alerts.%player%}
  177. if {alerts.%player%} >= 10:
  178. execute console command "kick %player% &c&lHydra &8>> &cCheating"
  179.  
  180. on any move:
  181. set {_loc.%player%} to the x location of player
  182. set {speedsetback.%player%} to location of the player
  183. wait 5 ticks
  184. set {_loc1.%player%} to the x location of player
  185. wait 1 tick
  186. if difference between {_loc.%player%} and {_loc1.%player%} >= 3.5:
  187. player's gamemode is not creative
  188. player is not flying
  189. add 1 to {speed.%player%}
  190. if {speed.%player%} >= 3:
  191. teleport player to {speedsetback.%player%}
  192. set {_ping} to player's ping
  193. send "&c&lHydra &8>> &c%player% &fhas failed Speed Hacks. (&c%{_ping}%&c MS&f)"
  194. add 1 to {speedalerts.%player%}
  195. add 1 to {alerts.%player%}
  196. if {alerts.%player%} >= 10:
  197. execute console command "kick %player% &c&lHydra &8>> &cCheating"
  198.  
  199. on any move:
  200. set {_locz.%player%} to the z location of player
  201. set {speedsetback.%player%} to location of the player
  202. wait 5 ticks
  203. set {_loc1z.%player%} to the z location of player
  204. wait 1 tick
  205. if difference between {_locz.%player%} and {_loc1z.%player%} >= 3.5:
  206. player's gamemode is not creative
  207. player is not flying
  208. add 1 to {speed.%player%}
  209. if {speed.%player%} >= 3:
  210. teleport player to {speedsetback.%player%}
  211. set {_ping} to player's ping
  212. send "&c&lHydra &8>> &c%player% &fhas failed Speed Hacks. (&c%{_ping}%&c MS&f)"
  213. add 1 to {speedalerts.%player%}
  214. add 1 to {alerts.%player%}
  215. if {alerts.%player%} >= 10:
  216. execute console command "kick %player% &c&lHydra &8>> &cCheating"
  217.  
  218. on damage:
  219. set {_reach} to distance between attacker and victim
  220. if {_reach} > 4:
  221. if damage cause is not a projectile:
  222. attacker's gamemode is not creative:
  223. cancel event
  224. set {_ping} to attacker's ping
  225. loop all players:
  226. loop-player has permission "hydra.logs":
  227. send "&c&lHydra &8>> &c%attacker% &fhas failed &cReach&f. (&c%{_ping}%&c MS&f)." to loop-player
  228. add 1 to {reachalerts.%attacker%}
  229.  
  230.  
  231. on damage:
  232. if attacker is victim:
  233. if damage cause is not a projectile:
  234. cancel event
  235. set {_ping} to attacker's ping
  236. loop all players:
  237. loop-player has permission "hydra.logs":
  238. send "&c&lHydra &8>> &c%attacker% &fhas failed Self Hurt. (&c%{_ping}%&c MS)" to loop-player
  239.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement