Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- variables:
- {macro.%player%} = 0
- on join:
- set {speddhack.%player%} to true
- on leftclick:
- add 1 to {click.%player%}
- if {click.%player%} >= 21:
- if {macro.%player%} != 2:
- loop all players:
- if loop-player is op:
- send message "&4SERVER&f » Kill Aura / Auto Clicker Detected : &4%shooter% !" to loop-player
- kick the player due to "&SERVER&8 » &cAutoclick/KillAura"
- add 1 to {macro.%player%}
- stop
- else:
- kick the player due to "&4SERVER&8 » &cAutoclick/KillAura"
- ban the player due to "&4SERVER&8 » &cAutoclick/KillAura"
- set {macro.%player%} to 0
- every 3 seconds:
- loop all players:
- clear {click.%loop-player%}
- on chat:
- if player is sneaking:
- kick the player due to "&4SERVER&8 » &cAutoSneak"
- on inventory open:
- if player is sneaking:
- kick the player due to "&4SERVER&8 » &cAutoSneak"
- on sign change:
- if player is sneaking:
- kick the player due to "&4SERVER&8 » &cAutoSneak"
- # // FastBow //
- on shoot:
- if projectile is an arrow:
- if difference between {bow.%shooter%} and now is less than 2 ticks:
- loop all players:
- if loop-player is op:
- send message "&4SERVER&8 » Fast Bow detected : &4%shooter% !" to loop-player
- add 1 to {fastbow.%shooter%}
- if {fastbow.%shooter%} > 3:
- ban the shooter due to "&4SERVER&8 » &ccFastBow"
- else:
- kick the shooter due to "&4SERVER&8 » &cFastBow"
- set {bow.%shooter%} to now
- # // REACH/FF //
- on damage:
- if attacker is a player:
- if attacker's gamemode is not creative:
- if distance between attacker and victim is greater than 5:
- cancel event
- add 1 to {reach.%attacker%}
- if {reach.%attacker%} > 3:
- ban the attacker due to "&4SERVER&8 » &cReach/FF"
- else:
- kick the attacker due to "&4SERVER&8 » &cReach/FF"
- stop
- # // AntiSpeedHack
- on any move:
- if {speddhack.%player%} is true:
- if player's gamemode is not creative:
- set {_posjoueur} to location of player
- set {_ping} to player's ping
- wait 2 second
- if distance between {_posjoueur} and player is bigger than 30:
- if {_ping} is less than 270:
- loop all players:
- if loop-player is op:
- send message "&4SERVER&8 » Speed Hack Detected : &4%shooter% !" to loop-player
- kick the player due to "&4SERVER&8 » &cAntiSpeedHack"
- else:
- stop
- else:
- stop
- else:
- stop
- on projectile hit:
- if projectile is ender pearl:
- if {speddhack.%shooter%} is true:
- set {speddhack.%shooter%} to false
- wait 1 seconds
- set {speddhack.%shooter%} to true
- # // AntiKnockBack
- on damage of player:
- if damage cause is fall:
- stop
- else:
- if attacker is a player:
- if block at victim is not cobweb:
- if victim's gamemode is not creative:
- set {_ping} to victim's ping
- set {_loc} to location of victim
- wait 0.5 seconds
- if distance between {_loc} and victim = 0:
- if {_ping} is less than 270:
- loop all players:
- if loop-player is op:
- send message "&4SERVER&8 » AntiKB Detected : &4%shooter% !" to loop-player
- kick the victim due to "&4SERVER&8 » &cAntiKB"
- # // NoFall
- on any move:
- {time.%player%} is not set
- player's gamemode is Adventure or Survival
- player is on ground
- block at player is air
- block under player is air
- set {_nofallcount} to 0
- loop all blocks in radius 3 around player:
- if loop-block is stairs:
- stop
- if loop-block is slab:
- stop
- loop all blocks in radius 2 around player:
- if loop-block is not air:
- add 1 to {_nofallcount}
- if {_nofallcount} < 1:
- loop all players:
- loop-player is op:
- send "&4SERVER&8 » NoFall Detected : &4%shooter% !"
- kick the player due to "&SERVER&8 » &cNoFall"
- stop
- if {_nofallcount} > 0:
- stop
- every 1 second:
- loop all players:
- loop-player's gamemode is Adventure or Survival
- loop-player is on ground
- block under loop-player is air
- set {_y} to loop-player's y-location
- wait 0.5 second
- loop-player is on ground
- set {_y2} to loop-player's y-location
- set {_yresult} to {_y} - {_y2}
- if {_yresult} > 1:
- loop all players:
- loop-player-2 is op:
- send "&4SERVER&8 » NoFall Detected : &4%shooter% !" to loop-player-2
- kick the player due to "&SERVER&8 » &cNoFall"
- on walk on slab:
- if {time.%player%} is not set:
- set {time.%player%} to true
- wait 2 seconds
- clear {time.%player%}
- on walk on stairs:
- if {time.%player%} is not set:
- set {time.%player%} to true
- wait 2 seconds
- clear {time.%player%}
- on break:
- if {time.%player%} is not set:
- set {time.%player%} to true
- wait 0.5 seconds
- clear {time.%player%}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement