Advertisement
Cool_Colton

Untitled

Jul 27th, 2020
39
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.92 KB | None | 0 0
  1. every 3 seconds in world "ul_SkyEscape":
  2. loop all players:
  3. if {%loop-player%.bypass} is not set:
  4. if loop-player is not flying:
  5. set {_player} to loop-player
  6. #Z movement
  7. set {_%loop-player%.z2} to loop-player's z-coord
  8. set {%loop-player%.z.move} to ({_%loop-player%.z2} - {%loop-player%.z})
  9. set {%loop-player%.z} to loop-player's z-coord
  10.  
  11. #X movement
  12. set {_%loop-player%.x2} to loop-player's x-coord
  13. set {%loop-player%.x.move} to ({_%loop-player%.x2} - {%loop-player%.x})
  14. set {%loop-player%.x} to loop-player's x-coord
  15.  
  16. #Combine
  17. if {%loop-player%.z.move} is more than 0:
  18. if {%loop-player%.x.move} is more than 0:
  19. set {%loop-player%.move} to {%loop-player%.z.move} + {%loop-player%.x.move}
  20. if {%loop-player%.x.move} is less than 0:
  21. set {%loop-player%.move} to {%loop-player%.z.move} - {%loop-player%.x.move}
  22. if {%loop-player%.z.move} is less than 0:
  23. if {%loop-player%.x.move} is more than 0:
  24. set {%loop-player%.move} to {%loop-player%.x.move} - {%loop-player%.z.move}
  25. if {%loop-player%.x.move} is less than 0:
  26. set {%loop-player%.z.move} to {%loop-player%.z.move} * -1
  27. set {%loop-player%.move} to {%loop-player%.z.move} - {%loop-player%.x.move}
  28. if {%loop-player%.move.2} is the same as {%loop-player%.move}:
  29. set {%loop-player%.move} to 0
  30. set {%loop-player%.move.2} to {%loop-player%.move}
  31. if loop-player is swimming:
  32. else:
  33. if loop-player has speed:
  34. else:
  35.  
  36. #Cheat check
  37. if {%loop-player%.x.move} is less than 6:
  38. if {%loop-player%.x.move} is more than 0:
  39. if {%loop-player%.move} is more than 27:
  40. set {_player} to loop-player
  41. add 1 to {%loop-player%.illegal.move}
  42. if {%loop-player%.illegal.move} is more than 1:
  43. loop all players:
  44. if {%loop-player-2%.anticheat.message} is true:
  45. send "&eSpeed (by ztimhirsch)&7- %{_player}% &clikely has speed! &3Moved %{%loop-player-1%.move}% blocks in 1 second" to loop-player-2
  46. if {%loop-player%.illegal.move} is more than 4:
  47. execute console command "/tempban %loop-player% 30 -s DoggoCheat: You have been caught using speed hacks"
  48. set {%loop-player%.illegal.move} to 0
  49. set {%loop-player%.move} to 0
  50. wait 20 seconds
  51. remove 1 from {%loop-player%.illegal.move}
  52.  
  53.  
  54. if {%loop-player%.move} is less than -27:
  55. set {_player} to loop-player
  56. add 1 to {%loop-player%.illegal.move}
  57. if {%loop-player%.illegal.move} is more than 1:
  58. loop all players:
  59. if {%loop-player-2%.anticheat.message} is true:
  60. send "&eSpeed (by ztimhirsch)&7- %{_player}% &clikely has speed! &3Moved %{%loop-player-1%.move}% blocks in 3 seconds" to loop-player-2
  61. if {%loop-player%.illegal.move} is more than 4:
  62. execute console command "/tempban %loop-player% 30 -s DoggoCheat: You have been caught using speed hacks"
  63. wait 20 seconds
  64. remove 1 from {%loop-player%.illegal.move}
  65.  
  66. if {%loop-player%.x.move} is more than -6:
  67. if {%loop-player%.x.move} is less than 0:
  68. if {%loop-player%.move} is more than 27:
  69. set {_player} to loop-player
  70. add 1 to {%loop-player%.illegal.move}
  71. if {%loop-player%.illegal.move} is more than 1:
  72. loop all players:
  73. if {%loop-player-2%.anticheat.message} is true:
  74. send "&eSpeed (by ztimhirsch)&7- %{_player}% &clikely has speed! &3Moved %{%loop-player-1%.move}% blocks in 3 seconds" to loop-player-2
  75. if {%loop-player%.illegal.move} is more than 4:
  76. execute console command "/tempban %loop-player% 30 -s DoggoCheat: You have been caught using speed hacks"
  77. wait 20 seconds
  78. remove 1 from {%loop-player%.illegal.move}
  79.  
  80. if {%loop-player%.move} is less than -27:
  81. set {_player} to loop-player
  82. add 1 to {%loop-player%.illegal.move}
  83. if {%loop-player%.illegal.move} is more than 1:
  84. loop all players:
  85. if {%loop-player-2%.anticheat.message} is true:
  86. send "&eSpeed (by ztimhirsch)&7- %{_player}% &clikely has speed! &3Moved %{%loop-player-1%.move}% blocks in 3 seconds" to loop-player-2
  87. if {%loop-player%.illegal.move} is more than 4:
  88. execute console command "/tempban %loop-player% 30 DoggoCheat: You have been caught using speed hacks"
  89. wait 20 seconds
  90. remove 1 from {%loop-player%.illegal.move}
  91.  
  92. #Secondary Cheat Check
  93. if {%loop-player%.move} is more than 32.1:
  94. set {_player} to loop-player
  95. add 1 to {%loop-player%.illegal.move}
  96. if {%loop-player%.illegal.move} is more than 1:
  97. loop all players:
  98. if {%loop-player-2%.anticheat.message} is true:
  99. send "&eSpeed (by ztimhirsch)&7- %{_player}% &clikely has speed! &3Moved %{%loop-player-1%.move}% blocks in 3 seconds" to loop-player-2
  100. if {%loop-player%.illegal.move} is more than 4:
  101. execute console command "/tempban %loop-player% 30 DoggoCheat: You have been caught using speed hacks"
  102. wait 20 seconds
  103. remove 1 from {%loop-player%.illegal.move}
  104.  
  105.  
  106. #Reach anticheat
  107.  
  108. on damage:
  109. attacker is a player
  110. victim is a player
  111. damage was caused by projectile:
  112. else:
  113. damage cause is block explosion:
  114. else:
  115. if attacker's ping is below 500:
  116. set {_attacker} to location of attacker
  117. set {_victim} to location of victim
  118. set {_distance} to the distance between {_victim} and {_attacker}
  119. if {_distance} is more than 4:
  120. add 1 to {%attacker%.illegal.reach}
  121. if {%attacker%.illegal.reach} is more than 8:
  122. execute console command "/tempban %attacker% 30 DoggoCheat: You have been caught using reach hacks"
  123. if {%attacker%.illegal.reach} is more than 3:
  124. loop all players:
  125. if {%loop-player%.anticheat.message} is true:
  126. send "&eReach (by ztimhirsch)&7- %attacker% &clikely has reach! &3Hit from %{_distance}% blocks away (Normal is 4 MAX)" to loop-player
  127. wait 20 seconds
  128. remove 1 from {%attacker%.illegal.reach}
  129.  
  130.  
  131. on left click:
  132. add 1 to {%player's uuid%::clicks}
  133. if {%player's uuid%::clicks} is more than 19:
  134. if {%player's uuid%::autoclicker} is not set:
  135. loop all players:
  136. if loop-player has permission "Click.Notify":
  137. send "&eAutoclicker (by ztimhirsch)&7- %player% &clikely has autoclicker! &3Clicked 20+ cps" to loop-player
  138. set {%player's uuid%::autoclicker} to true
  139. wait 20 ticks
  140. delete {%player's uuid%::autoclicker}
  141. add 1 to {%player's uuid%::illegalclicks}
  142. if {%player's uuid%::illegalclicks} is more than 3:
  143. execute console command "/tempban %player% 30 &aDoggoCheat&7: You have been banned for using a autoclicker!"
  144. wait 9 seconds
  145. remove 1 from {%player's uuid%::illegalclicks}
  146. wait 21 ticks
  147. subtract 1 from {%player's uuid%::clicks}
  148.  
  149. command /test:
  150. trigger:
  151. set {%player's uuid%::clicks} to 0
  152.  
  153.  
  154. #COMMANDSSSSS
  155.  
  156. on respawn:
  157. set {%player%.x} to 0
  158. set {%player%.x2} to 0
  159. set {%player%.z} to 0
  160. set {%player%.z2} to 0
  161.  
  162.  
  163. command /sendanticheat:
  164. permission: anticheat.messages
  165. trigger:
  166. if {%player%.anticheat.message} is not set:
  167. set {%player%.anticheat.message} to true
  168. send "Enabled anticheat messages"
  169. else if {%player%.anticheat.message} is false:
  170. set {%player%.anticheat.message} to true
  171. send "Enabled anticheat messages"
  172. else if {%player%.anticheat.message} is true:
  173. set {%player%.anticheat.message} to false
  174. send "Disabled anticheat messages"
  175.  
  176. command /bypass <player>:
  177. permission: bypass.anticheat
  178. trigger:
  179. if {hasrank.%player's uuid%} is true:
  180. send "hi"
  181. if {%arg 1%.bypass} is true:
  182. set {%arg 1%.bypass} to false
  183. send "I have removed %arg 1%'s bypass"
  184. else:
  185. set {%arg 1%.bypass} to true
  186. send "I have given %arg 1% bypass"
  187.  
  188. on join:
  189. if {%player%.bypass} is not set:
  190. set {%player%.bypass} to false
  191. set {%player%.send} to true
  192.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement