Guest User

Untitled

a guest
Apr 15th, 2014
795
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.86 KB | None | 0 0
  1. variables:
  2.     {ac.%player%} = false
  3. command /ac [<text>]:
  4.     trigger:
  5.         if player doesn't have permissions "AC.commands" or "AC.*":
  6.             send "&cNie masz uprawnien!"
  7.         else:
  8.             if arg 1 is not "off" or "on":
  9.                 send "&aUzycie: &a&l/AC On/Off"
  10.             if arg 1 is not set:
  11.                 send "&aUzycie: &a&l/AC On/Off"
  12.             if arg 1 is "on":
  13.                 if {ac.%player%} is true:
  14.                     send "&cMasz juz wlaczony AdminChat!"
  15.                 else:
  16.                     send "&aAdminChat zostal wlaczony!"
  17.                     set {ac.%player%} to true
  18.             if arg 1 is "off":
  19.                 if {ac.%player%} is false:
  20.                     send "&cNie masz wlaczonego AdminChat'u"
  21.                 else:
  22.                     send "&cAdminChat zostal wylaczony!"
  23.                     set {ac.%player%} to false
  24. on chat:
  25.     if {ac.%player%} is true:
  26.         cancel event
  27.         loop all players:
  28.             loop-player has permissions "AC.Odbierz" or "AC.*"
  29.             send "&a[&9Admin Chat&a] &f(&6%player%&f) &f%message%" to loop-player
Advertisement
Add Comment
Please, Sign In to add comment