Mroczny337

Chat

Dec 12th, 2014
260
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.16 KB | None | 0 0
  1. # Join Msg #
  2. #on join:
  3. # set join message to "&8[&a&l+&8] %display name of player%"
  4. #on quit:
  5. # set quit message to "&8[&c&l-&8] %display name of player%"
  6.  
  7. # Manager #
  8.  
  9. variables:
  10. {chat} = on
  11. on chat:
  12. if {chat} is off:
  13. if player doesn't have permission "admin.chat":
  14. cancel event
  15. send "&8» &7Czat w tej chwili jest wylaczony"
  16. else:
  17. set message to "%message%"
  18. command /chat [<text>]:
  19. trigger:
  20. if player has permission "admin.chat":
  21. if arg is "on":
  22. if {chat} is off:
  23. set {chat} to on
  24. broadcast "&c* &7Czat zostal wlaczony"
  25. else:
  26. send "&7Chat jest wlaczony wpisz &a/chat off&7, aby go wylaczyc"
  27. if arg is "off":
  28. if {chat} is on:
  29. set {chat} to off
  30. broadcast "&c* &7Czat zostal wylaczony"
  31. else:
  32. send "&7Chat jest wylaczony wpisz &a/chat on&7, aby go wlaczyc"
  33.  
  34. # Clear Chat #
  35. command /cc [<text>]:
  36. trigger:
  37. if player has permission "admin.chat":
  38. loop 100 times:
  39. broadcast ""
  40. broadcast " &c* &7Czat zostal wyczyszczony &c*"
  41. broadcast ""
  42. else:
  43. loop 100 times:
  44. send ""
  45. send "&8» &7Wyczysciles sobie czat !"
  46. send ""
Advertisement
Add Comment
Please, Sign In to add comment