Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- variables:
- {acflags::%player%} = 0
- {acbanned::%player%} = false
- on damage:
- victim is a player:
- attacker is a player:
- if attacker's held item is bow:
- stop
- else:
- if distance between victim and attacker is more than 4.20:
- add 1 to {acflags::%attacker%}
- if {acflags::%attacker%} is more than 5:
- loop all players:
- if loop-player has permission "TAC.*" or "TAC.Alerts":
- send "&6&lTAC &7Reach vol%distance between victim and attacker% &7flag no.%{acflags::%attacker%}%" to loop-player
- send "&7Player has more than 5 flags. banning..." to loop-player
- send "&7%attacker%&7's Flags reset." to loop-player
- set {acflags::%attacker%} to 0
- broadcast ""
- broadcast "&6&l%arg% &fwas banned by &eTAC"
- broadcast "&fReason: Reach"
- broadcast ""
- set {acbanned::%arg%} to true
- kick arg due to "&fYou are banned from FlagClash."
- ban arg due to "&fYou are banned from FlagClash."
- stop
- loop all players:
- if loop-player has permission "TAC.*" or "TAC.Alerts":
- 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