szymonmichur

Skrypt na czat on/off

Jan 24th, 2018
156
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # Skrypt: czat on/off
  2. # By: michur55
  3.  
  4. command /chat [<text>]:
  5.         aliases: czat
  6.         trigger:
  7.                 if arg 1 is "off":
  8.                         if player has permission "chat.off" or "chat.admin":
  9.                                 set {chat.status} to false
  10.                                 broadcast "&aCzat zostal wylaczony przez %player%"
  11.                 if arg 1 is "on":
  12.                         if player has permission "chat.on" or "chat.admin":
  13.                                 set {chat.status} to true
  14.                                 broadcast "&aCzat zostal wlaczony przez %player%"
  15. on chat:
  16.         if {chat.status} is false:
  17.                 cancel event
  18.                 send "&cCzat jest wylaczony!"
Advertisement
Add Comment
Please, Sign In to add comment