kukubaczek

ProChat

Jun 1st, 2014
552
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.63 KB | None | 0 0
  1. options:
  2.     tag: &a&lChatManager&r &b>&f
  3.     log: true
  4.  
  5. variables:
  6.     {czat} = false
  7.     {wiadomosci} = 1   
  8.  
  9. command /chat [<text>]:
  10.     trigger:
  11.         player has permission "admin.chat" or "admin":
  12.             if arg 1 is not set:
  13.                 if {czat} is true:
  14.                     send "{@tag} &cChat jest wylaczony!"
  15.                     stop
  16.                 else:
  17.                     send "{@tag} &aChat jest wlaczony!"
  18.                     stop
  19.  
  20.             if arg 1 is "on":
  21.                 if {czat} is true:
  22.                     set {czat} to false
  23.                     send "{@tag} &aChat zostal wlaczony przez admina &2%player%&a!" to all players
  24.                     stop
  25.                 else:
  26.                     send "{@tag} &aChat aktualnie jest wlaczony!"
  27.                     stop
  28.  
  29.             if arg 1 is "off":
  30.                 if {czat} is false:
  31.                     set {czat} to true
  32.                     send "{@tag} &cChat zostal wylaczony przez admina &4%player%&c!" to all players
  33.                     stop
  34.                 else:
  35.                     send "{@tag} &cChat aktualnie jest wylaczony!"
  36.                     stop
  37.  
  38.             if arg 1 is "help":
  39.                 send "{@tag} Wpisz /chat on/off/clean :)"
  40.                 stop
  41.  
  42.             if arg 1 is "clean" or "czysc":
  43.                 loop 100 times:
  44.                     message " " to all players
  45.                 send "&aooOO &cCHAT ZOSTAL WYCZYSZCZONY! &aOOoo" to all players
  46.                 message " " to all players
  47.                 stop
  48.  
  49. command /uwaga [<text>]:
  50.     trigger:
  51.         player has permission "admin.uwaga" or "admin.chat" or "admin":
  52.             send "&4UWAGA: &c%arg 1%" to all players
  53.             stop
  54.         else:
  55.             send "{@tag} Musisz byc adminem!"
  56.  
  57. on chat:
  58.     if {czat} is true:
  59.         player has permission "admin.pisanie" or "admin":
  60.             stop
  61.         else:
  62.             log "%player% no send %message%" to "chat/chat-off.log"
  63.             cancel event
  64.             message "{@tag} &cChat zostal wylaczony!"
  65.             stop
  66.     else:
  67.         if {@log} is true:
  68.             log "%player% > %message%" to "chat/chat-on.log"
  69.             stop
Advertisement
Add Comment
Please, Sign In to add comment