Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- on damage:
- attacker is a player
- victim is a player
- damage was caused by projectile:
- else:
- damage cause is block explosion:
- else:
- if attacker's ping is below 500:
- set {_attacker} to location of attacker
- set {_victim} to location of victim
- set {_distance} to the distance between {_victim} and {_attacker}
- if {_distance} is more than 4:
- add 1 to {%attacker%.illegal.reach}
- if {%attacker%.illegal.reach} is more than 8:
- execute console command "/tempban %attacker% 30 DoggoCheat: You have been caught using reach hacks"
- if {%attacker%.illegal.reach} is more than 3:
- loop all players:
- if {%loop-player%.anticheat.message} is true:
- send "&eReach (by ztimhirsch)&7- %attacker% &clikely has reach! &3Hit from %{_distance}% blocks away (Normal is 4 MAX)" to loop-player
- wait 20 seconds
- remove 1 from {%attacker%.illegal.reach}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement