Advertisement
Cool_Colton

Untitled

Jul 25th, 2020
40
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.90 KB | None | 0 0
  1. on damage:
  2. attacker is a player
  3. victim is a player
  4. damage was caused by projectile:
  5. else:
  6. damage cause is block explosion:
  7. else:
  8. if attacker's ping is below 500:
  9. set {_attacker} to location of attacker
  10. set {_victim} to location of victim
  11. set {_distance} to the distance between {_victim} and {_attacker}
  12. if {_distance} is more than 4:
  13. add 1 to {%attacker%.illegal.reach}
  14. if {%attacker%.illegal.reach} is more than 8:
  15. execute console command "/tempban %attacker% 30 DoggoCheat: You have been caught using reach hacks"
  16. if {%attacker%.illegal.reach} is more than 3:
  17. loop all players:
  18. if {%loop-player%.anticheat.message} is true:
  19. send "&eReach (by ztimhirsch)&7- %attacker% &clikely has reach! &3Hit from %{_distance}% blocks away (Normal is 4 MAX)" to loop-player
  20. wait 20 seconds
  21. remove 1 from {%attacker%.illegal.reach}
  22.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement