Advertisement
Guest User

Untitled

a guest
Oct 19th, 2019
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.25 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 distance between victim and attacker is more than 4.20:
  11. add 1 to {acflags::%attacker%}
  12. if {acflags::%attacker%} is more than 5:
  13. loop all players:
  14. if loop-player has permission "TAC.*" or "TAC.Alerts":
  15. send "&6&lTAC &7Reach vol%distance between victim and attacker% &7flag no.%{acflags::%attacker%}%" to loop-player
  16. send "&7Player has more than 5 flags. banning..." to loop-player
  17. send "&7%attacker%&7's Flags reset." to loop-player
  18. set {acflags::%attacker%} to 0
  19. set {acbanned::%arg%} to true
  20. kick arg due to "&fYou are banned from FlagClash."
  21. ban arg due to "&fYou are banned from FlagClash."
  22. stop
  23. loop all players:
  24. if loop-player has permission "TAC.*" or "TAC.Alerts":
  25. send "&6&lTAC &7Reach vol%distance between victim and attacker% &7flag no.%{acflags::%attacker%}%" to loop-player
  26. broadcast "%distance between victim and attacker% reach for %attacker%"
  27.  
  28. command /tacban [<text>]:
  29.  
  30. # bans a kid for reach #
  31.  
  32. trigger:
  33. if player doesn't have permission "TAC.*" or "TAC.bans":
  34. send "&eNo permission buddy."
  35. stop
  36. else:
  37. send "&7Banning %arg%"
  38. broadcast ""
  39. broadcast "&6&l%arg% &fwas banned by &e%player%"
  40. broadcast "&fReason: Reach"
  41. broadcast ""
  42. set {acbanned::%arg%} to true
  43. kick arg due to "&fYou are banned from FlagClash."
  44. ban arg due to "&fYou are banned from FlagClash."
  45.  
  46.  
  47. command /tacbana [<text>]:
  48.  
  49. # bans a kid for reach but anonymous #
  50.  
  51. trigger:
  52. if player doesn't have permission "TAC.*" or "TAC.bans":
  53. send "&eNo permission buddy."
  54. stop
  55. else:
  56. send "&7Banning %arg%"
  57. broadcast ""
  58. broadcast "&6&l%arg% &fwas banned by &eTAC
  59. broadcast ""
  60. set {acbanned::%arg%} to true
  61. kick arg due to "&fYou are banned from FlagClash."
  62. ban arg due to "&fYou are banned from FlagClash."
  63.  
  64. command /tacunban [<text>]:
  65.  
  66. # unbans a kid#
  67.  
  68. trigger:
  69. if player doesn't have permission "TAC.*" or "TAC.bans":
  70. send "&eNo permission buddy."
  71. stop
  72. else:
  73. send "&7unbanning %arg%"
  74. broadcast ""
  75. broadcast "&6&l%arg% &fwas unbanned by &e%player%"
  76. broadcast ""
  77. set {acbanned::%arg%} to false
  78.  
  79. command /tacunbana [<text>]:
  80.  
  81. # unbans a kid but annon#
  82.  
  83. trigger:
  84. if player doesn't have permission "TAC.*" or "TAC.bans":
  85. send "&eNo permission buddy."
  86. stop
  87. else:
  88. send "&7unbanning %arg%"
  89. broadcast ""
  90. broadcast "&6&l%arg% &fwas unbanned by &eTAC."
  91. broadcast ""
  92. set {acbanned::%arg%} to false
  93.  
  94. command /tacunbans [<text>]:
  95.  
  96. # unbans a kid but silent#
  97.  
  98. trigger:
  99. if player doesn't have permission "TAC.*" or "TAC.bans":
  100. send "&eNo permission buddy."
  101. stop
  102. else:
  103. send "&7unbanning %arg%"
  104. set {acbanned::%arg%} to false
  105.  
  106.  
  107. on command "/checkpermissiontac":
  108. cancel event
  109. if player doesn't have permission "TAC.*":
  110. send "no"
  111. else:
  112. send "yes"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement