Advertisement
Guest User

Untitled

a guest
Jan 18th, 2018
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.56 KB | None | 0 0
  1. #===============================================#
  2. # RobAntiHack | Version 0.1 #
  3. #===============================================#
  4. # Change Log(s): #
  5. # - 3.1 Reach re-coded (Patched) #
  6. # - New autoclicker (Patched) #
  7. # - Specified X/Y/Z Flight/Speed (Patched) #
  8. # - NoFall re-coded (Patched) #
  9. #===============================================#
  10. # [LAST UPDATE | 1/18/18] #
  11. #===============================================#
  12.  
  13. #-----------------------------------------#
  14. # NoReach #
  15. #-----------------------------------------#
  16.  
  17. on damage:
  18. if attacker is a player:
  19. if victim is a player:
  20. attacker's gamemode is not creative
  21. set {_distance} to distance between attacker and victim
  22. if {_distance} > 3:
  23. set {_ping} to attacker's ping
  24. if damage cause is not a projectile:
  25. loop all players:
  26. loop-player has permission "Rob.notify":
  27. send "&a[RobAntiHack] &d%attacker% &5failed &dREACH &7(%{_distance}%)" to loop-player
  28.  
  29. #---------------------------------------#
  30. # NoAutoClicker #
  31. #---------------------------------------#
  32. every 4 seconds:
  33. set {check} to true
  34. wait 1 second
  35. set {check} to false
  36. loop all players:
  37. delete {click.%loop-player%}
  38. on left click:
  39. {check} is true
  40. add 1 to {click.%player%}
  41. {click.%player%} > 16
  42. loop all players:
  43. if loop-player has permission "Rob.notify":
  44. send "&a[RobAntiHack] &d%player% &5failed &dAUTOCLICKER &7[%{click.%player%}% cps]"
  45.  
  46. #-------------------------------#
  47. # Autoclicker clear-logs #
  48. #-------------------------------#
  49.  
  50. on join:
  51. clear {click.%player%}
  52.  
  53. #-------------------------------------#
  54. # NoSpeed / NoFlight #
  55. #-------------------------------------#
  56.  
  57. every 3 seconds:
  58. loop all players:
  59. loop-player is not flying
  60. loop-player's gamemode is not creative
  61. set {y.%loop-player%} to the y location of loop-player
  62. wait 1 seconds
  63. set {y2.%loop-player%} to the y location of loop-player
  64. wait 1 ticks
  65. if difference between {y.%loop-player%} and {y2.%loop-player%} is greater than 4:
  66. loop all players:
  67. loop-player-2 has permission "Rob.notify":
  68. send "&a[RobAntiHack] &d%loop-player-1% &5failed &dFLIGHT &7[Y-Coord]" to loop-player-2
  69. every 3 seconds:
  70. loop all players:
  71. loop-player is not flying
  72. loop-player's gamemode is not creative
  73. set {z.%loop-player%} to the z location of loop-player
  74. wait 1 seconds
  75. set {z2.%loop-player%} to the z location of loop-player
  76. wait 1 ticks
  77. if difference between {z.%loop-player%} and {z2.%loop-player%} is greater than 8:
  78. loop all players:
  79. loop-player-2 has permission "Rob.notify":
  80. send "&a[RobAntiHack] &d%loop-player-1% &5failed &dSPEED &7[Z-Coord]" to loop-player-2
  81. every 3 seconds:
  82. loop all players:
  83. loop-player is not flying
  84. loop-player's gamemode is not creative
  85. set {x.%loop-player%} to the x location of loop-player
  86. wait 1 seconds
  87. set {x2.%loop-player%} to the x location of loop-player
  88. wait 1 ticks
  89. if difference between {x.%loop-player%} and {x2.%loop-player%} is greater than 8:
  90. loop all players:
  91. loop-player-2 has permission "Rob.notify":
  92. send "&a[RobAntiHack] &d%loop-player-1% &5failed &dSPEED &7[X-Coord]" to loop-player-2
  93.  
  94. #--------------------------------------#
  95. # NoFall #
  96. #--------------------------------------#
  97.  
  98. on any move:
  99. {time.%player%} is not set
  100. player's gamemode is Adventure or Survival
  101. player is on ground
  102. block at player is air
  103. block under player is air
  104. set {_nofallcount} to 0
  105. loop all blocks in radius 3 around player:
  106. if loop-block is stairs:
  107. stop
  108. if loop-block is slab:
  109. stop
  110. loop all blocks in radius 2 around player:
  111. if loop-block is not air:
  112. add 1 to {_nofallcount}
  113. if {_nofallcount} < 1:
  114. loop all players:
  115. loop-player has permission "Rob.notify":
  116. send "&a[RobAntiHack] &d%player% &5failed &dNOFALL"
  117. stop
  118. if {_nofallcount} > 0:
  119. stop
  120.  
  121. every 1 second:
  122. loop all players:
  123. loop-player's gamemode is Adventure or Survival
  124. loop-player is on ground
  125. block under loop-player is air
  126. set {_y} to loop-player's y-location
  127. wait 0.5 second
  128. loop-player is on ground
  129. set {_y2} to loop-player's y-location
  130. set {_yresult} to {_y} - {_y2}
  131. if {_yresult} > 1:
  132. loop all players:
  133. loop-player-2 has permission "Rob.notify":
  134. send "&a[RobAntiHack] &d%loop-player-1% &5failed &dNOFALL" to loop-player-2
  135.  
  136. on walk on slab:
  137. if {time.%player%} is not set:
  138. set {time.%player%} to true
  139. wait 2 seconds
  140. clear {time.%player%}
  141. on walk on stairs:
  142. if {time.%player%} is not set:
  143. set {time.%player%} to true
  144. wait 2 seconds
  145. clear {time.%player%}
  146. on break:
  147. if {time.%player%} is not set:
  148. set {time.%player%} to true
  149. wait 0.5 seconds
  150. clear {time.%player%}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement