Zaaxel

Chat.sk

Mar 3rd, 2016
158
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.95 KB | None | 0 0
  1. command /chat [<text>]:
  2. trigger:
  3. if player has permission "chat.admin":
  4. if arg 1 is "on":
  5. if {chat.status} is false:
  6. set {chat.status} to true
  7. broadcast "&8» &9Czat zostal &awlaczony &9przez &c%player%"
  8. else:
  9. send "&cCzat jest juz wlaczony!"
  10. if arg 1 is "off":
  11. if {chat.status} is false:
  12. send "&cCzat jest juz wylaczony!"
  13. else:
  14. set {chat.status} to false
  15. broadcast "&8» &9Czat zostal &awylaczony &9przez &c%player%"
  16. if arg 1 is "clear":
  17. loop 100 times:
  18. broadcast ""
  19. broadcast "&9Czat zostal &awyczyszczony &9przez &c%player%"
  20. else:
  21. send "&cPoprawne uzycie to: &6/chat <on/off/clear>"
  22. else:
  23. send "&4Nie masz uprawnien!"
Advertisement
Add Comment
Please, Sign In to add comment