Advertisement
Guest User

Untitled

a guest
Oct 19th, 2019
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.36 KB | None | 0 0
  1. variables:
  2. {acflags::%player%} = 0
  3. {acbanned::%player%} = false
  4.  
  5.  
  6.  
  7. on damage:
  8. victim is a player:
  9. attacker is a player:
  10. if attacker's held item is bow:
  11. stop
  12. else:
  13. if distance between victim and attacker is more than 4.20:
  14. add 1 to {acflags::%attacker%}
  15. if {acflags::%attacker%} is more than 5:
  16. loop all players:
  17. if loop-player has permission "TAC.*" or "TAC.Alerts":
  18. send "&6&lTAC &7Reach vol%distance between victim and attacker% &7flag no.%{acflags::%attacker%}%" to loop-player
  19. send "&7Player has more than 5 flags. banning..." to loop-player
  20. send "&7%attacker%&7's Flags reset." to loop-player
  21. set {acflags::%attacker%} to 0
  22. broadcast ""
  23. broadcast "&6&l%arg% &fwas banned by &eTAC"
  24. broadcast "&fReason: Reach"
  25. broadcast ""
  26. set {acbanned::%arg%} to true
  27. kick arg due to "&fYou are banned from FlagClash."
  28. ban arg due to "&fYou are banned from FlagClash."
  29. stop
  30. loop all players:
  31. if loop-player has permission "TAC.*" or "TAC.Alerts":
  32. send "&6&lTAC &7Reach vol%distance between victim and attacker% &7flag no.%{acflags::%attacker%}%" to loop-player
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement