Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- variables:
- {ac.%player%} = false
- command /ac [<text>]:
- trigger:
- if player doesn't have permissions "AC.commands" or "AC.*":
- send "&cNie masz uprawnien!"
- else:
- if arg 1 is not "off" or "on":
- send "&aUzycie: &a&l/AC On/Off"
- if arg 1 is not set:
- send "&aUzycie: &a&l/AC On/Off"
- if arg 1 is "on":
- if {ac.%player%} is true:
- send "&cMasz juz wlaczony AdminChat!"
- else:
- send "&aAdminChat zostal wlaczony!"
- set {ac.%player%} to true
- if arg 1 is "off":
- if {ac.%player%} is false:
- send "&cNie masz wlaczonego AdminChat'u"
- else:
- send "&cAdminChat zostal wylaczony!"
- set {ac.%player%} to false
- on chat:
- if {ac.%player%} is true:
- cancel event
- loop all players:
- loop-player has permissions "AC.Odbierz" or "AC.*"
- send "&a[&9Admin Chat&a] &f(&6%player%&f) &f%message%" to loop-player
Advertisement
Add Comment
Please, Sign In to add comment