Advertisement
UsernameAlreadyTaken

Untitled

Jul 5th, 2017
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.57 KB | None | 0 0
  1. variables:
  2. {macro.%player%} = 0
  3.  
  4. on join:
  5. set {speddhack.%player%} to true
  6. on leftclick:
  7. add 1 to {click.%player%}
  8. if {click.%player%} >= 21:
  9. if {macro.%player%} != 2:
  10. loop all players:
  11. if loop-player is op:
  12. send message "&4SERVER&f » Kill Aura / Auto Clicker Detected : &4%shooter% !" to loop-player
  13. kick the player due to "&SERVER&8 » &cAutoclick/KillAura"
  14. add 1 to {macro.%player%}
  15. stop
  16. else:
  17. kick the player due to "&4SERVER&8 » &cAutoclick/KillAura"
  18. ban the player due to "&4SERVER&8 » &cAutoclick/KillAura"
  19. set {macro.%player%} to 0
  20.  
  21. every 3 seconds:
  22. loop all players:
  23. clear {click.%loop-player%}
  24.  
  25. on chat:
  26. if player is sneaking:
  27. kick the player due to "&4SERVER&8 » &cAutoSneak"
  28. on inventory open:
  29. if player is sneaking:
  30. kick the player due to "&4SERVER&8 » &cAutoSneak"
  31. on sign change:
  32. if player is sneaking:
  33. kick the player due to "&4SERVER&8 » &cAutoSneak"
  34.  
  35.  
  36. # // FastBow //
  37. on shoot:
  38. if projectile is an arrow:
  39. if difference between {bow.%shooter%} and now is less than 2 ticks:
  40. loop all players:
  41. if loop-player is op:
  42. send message "&4SERVER&8 » Fast Bow detected : &4%shooter% !" to loop-player
  43. add 1 to {fastbow.%shooter%}
  44. if {fastbow.%shooter%} > 3:
  45. ban the shooter due to "&4SERVER&8 » &ccFastBow"
  46. else:
  47. kick the shooter due to "&4SERVER&8 » &cFastBow"
  48. set {bow.%shooter%} to now
  49.  
  50.  
  51.  
  52. # // REACH/FF //
  53. on damage:
  54. if attacker is a player:
  55. if attacker's gamemode is not creative:
  56. if distance between attacker and victim is greater than 5:
  57. cancel event
  58. add 1 to {reach.%attacker%}
  59. if {reach.%attacker%} > 3:
  60. ban the attacker due to "&4SERVER&8 » &cReach/FF"
  61. else:
  62. kick the attacker due to "&4SERVER&8 » &cReach/FF"
  63. stop
  64.  
  65. # // AntiSpeedHack
  66.  
  67. on any move:
  68. if {speddhack.%player%} is true:
  69. if player's gamemode is not creative:
  70. set {_posjoueur} to location of player
  71. set {_ping} to player's ping
  72. wait 2 second
  73. if distance between {_posjoueur} and player is bigger than 30:
  74. if {_ping} is less than 270:
  75. loop all players:
  76. if loop-player is op:
  77. send message "&4SERVER&8 » Speed Hack Detected : &4%shooter% !" to loop-player
  78. kick the player due to "&4SERVER&8 » &cAntiSpeedHack"
  79. else:
  80. stop
  81. else:
  82. stop
  83. else:
  84. stop
  85.  
  86. on projectile hit:
  87. if projectile is ender pearl:
  88. if {speddhack.%shooter%} is true:
  89. set {speddhack.%shooter%} to false
  90. wait 1 seconds
  91. set {speddhack.%shooter%} to true
  92. # // AntiKnockBack
  93. on damage of player:
  94. if damage cause is fall:
  95. stop
  96. else:
  97. if attacker is a player:
  98. if block at victim is not cobweb:
  99. if victim's gamemode is not creative:
  100. set {_ping} to victim's ping
  101. set {_loc} to location of victim
  102. wait 0.5 seconds
  103. if distance between {_loc} and victim = 0:
  104. if {_ping} is less than 270:
  105. loop all players:
  106. if loop-player is op:
  107. send message "&4SERVER&8 » AntiKB Detected : &4%shooter% !" to loop-player
  108. kick the victim due to "&4SERVER&8 » &cAntiKB"
  109. # // NoFall
  110. on any move:
  111. {time.%player%} is not set
  112. player's gamemode is Adventure or Survival
  113. player is on ground
  114. block at player is air
  115. block under player is air
  116. set {_nofallcount} to 0
  117. loop all blocks in radius 3 around player:
  118. if loop-block is stairs:
  119. stop
  120. if loop-block is slab:
  121. stop
  122. loop all blocks in radius 2 around player:
  123. if loop-block is not air:
  124. add 1 to {_nofallcount}
  125. if {_nofallcount} < 1:
  126. loop all players:
  127. loop-player is op:
  128. send "&4SERVER&8 » NoFall Detected : &4%shooter% !"
  129. kick the player due to "&SERVER&8 » &cNoFall"
  130. stop
  131. if {_nofallcount} > 0:
  132. stop
  133.  
  134. every 1 second:
  135. loop all players:
  136. loop-player's gamemode is Adventure or Survival
  137. loop-player is on ground
  138. block under loop-player is air
  139. set {_y} to loop-player's y-location
  140. wait 0.5 second
  141. loop-player is on ground
  142. set {_y2} to loop-player's y-location
  143. set {_yresult} to {_y} - {_y2}
  144. if {_yresult} > 1:
  145. loop all players:
  146. loop-player-2 is op:
  147. send "&4SERVER&8 » NoFall Detected : &4%shooter% !" to loop-player-2
  148. kick the player due to "&SERVER&8 » &cNoFall"
  149.  
  150. on walk on slab:
  151. if {time.%player%} is not set:
  152. set {time.%player%} to true
  153. wait 2 seconds
  154. clear {time.%player%}
  155. on walk on stairs:
  156. if {time.%player%} is not set:
  157. set {time.%player%} to true
  158. wait 2 seconds
  159. clear {time.%player%}
  160. on break:
  161. if {time.%player%} is not set:
  162. set {time.%player%} to true
  163. wait 0.5 seconds
  164. clear {time.%player%}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement