Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #===============================================#
- # RobAntiHack | Version 0.1 #
- #===============================================#
- # Change Log(s): #
- # - 3.1 Reach re-coded (Patched) #
- # - New autoclicker (Patched) #
- # - Specified X/Y/Z Flight/Speed (Patched) #
- # - NoFall re-coded (Patched) #
- #===============================================#
- # [LAST UPDATE | 1/18/18] #
- #===============================================#
- #-----------------------------------------#
- # NoReach #
- #-----------------------------------------#
- on damage:
- if attacker is a player:
- if victim is a player:
- attacker's gamemode is not creative
- set {_distance} to distance between attacker and victim
- if {_distance} > 3:
- set {_ping} to attacker's ping
- if damage cause is not a projectile:
- loop all players:
- loop-player has permission "Rob.notify":
- send "&a[RobAntiHack] &d%attacker% &5failed &dREACH &7(%{_distance}%)" to loop-player
- #---------------------------------------#
- # NoAutoClicker #
- #---------------------------------------#
- every 4 seconds:
- set {check} to true
- wait 1 second
- set {check} to false
- loop all players:
- delete {click.%loop-player%}
- on left click:
- {check} is true
- add 1 to {click.%player%}
- {click.%player%} > 16
- loop all players:
- if loop-player has permission "Rob.notify":
- send "&a[RobAntiHack] &d%player% &5failed &dAUTOCLICKER &7[%{click.%player%}% cps]"
- #-------------------------------#
- # Autoclicker clear-logs #
- #-------------------------------#
- on join:
- clear {click.%player%}
- #-------------------------------------#
- # NoSpeed / NoFlight #
- #-------------------------------------#
- every 3 seconds:
- loop all players:
- loop-player is not flying
- loop-player's gamemode is not creative
- set {y.%loop-player%} to the y location of loop-player
- wait 1 seconds
- set {y2.%loop-player%} to the y location of loop-player
- wait 1 ticks
- if difference between {y.%loop-player%} and {y2.%loop-player%} is greater than 4:
- loop all players:
- loop-player-2 has permission "Rob.notify":
- send "&a[RobAntiHack] &d%loop-player-1% &5failed &dFLIGHT &7[Y-Coord]" to loop-player-2
- every 3 seconds:
- loop all players:
- loop-player is not flying
- loop-player's gamemode is not creative
- set {z.%loop-player%} to the z location of loop-player
- wait 1 seconds
- set {z2.%loop-player%} to the z location of loop-player
- wait 1 ticks
- if difference between {z.%loop-player%} and {z2.%loop-player%} is greater than 8:
- loop all players:
- loop-player-2 has permission "Rob.notify":
- send "&a[RobAntiHack] &d%loop-player-1% &5failed &dSPEED &7[Z-Coord]" to loop-player-2
- every 3 seconds:
- loop all players:
- loop-player is not flying
- loop-player's gamemode is not creative
- set {x.%loop-player%} to the x location of loop-player
- wait 1 seconds
- set {x2.%loop-player%} to the x location of loop-player
- wait 1 ticks
- if difference between {x.%loop-player%} and {x2.%loop-player%} is greater than 8:
- loop all players:
- loop-player-2 has permission "Rob.notify":
- send "&a[RobAntiHack] &d%loop-player-1% &5failed &dSPEED &7[X-Coord]" to loop-player-2
- #--------------------------------------#
- # 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 has permission "Rob.notify":
- send "&a[RobAntiHack] &d%player% &5failed &dNOFALL"
- 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 has permission "Rob.notify":
- send "&a[RobAntiHack] &d%loop-player-1% &5failed &dNOFALL" to loop-player-2
- 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