MrFretko

Skrypr #1 chat

Jan 14th, 2015
210
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.17 KB | None | 0 0
  1. variables:
  2. chat = on
  3. options:
  4. tag: &4[CHAT] &7
  5. command /chat [<text>] [<text>] [<text>]:
  6. trigger:
  7. if player has permissions "chat":
  8. if arg 1 is not set:
  9. send "{@tag} /chat on/n" to player
  10. send "{@tag} /chat off/f" to player
  11. send "{@tag} /chat clear/c" to player
  12. if arg 1 is "on" or "n":
  13. if {chat} is on:
  14. send "{@tag} Chat jest aktualnie wlaczony!" to player
  15. else:
  16. set {chat} to on
  17. broadcast "{@tag} Chat zostal wlaczony przez &6%player%"
  18. if arg 1 is not "n" or "on" or "clear" or "c" or "off" or "f":
  19. send "{@tag} Nie poprwany argument! &6/chat" to player
  20. if arg 1 is "off" or "f":
  21. if {chat} is off:
  22. send "{@tag} Chat jest aktualnie wylaczony!" to player
  23. else:
  24. set {chat} to off
  25. loop 98 times:
  26. broadcast "" "
  27. broadcast "{@tag} Chat zostal wylaczony przez &6%player%"
  28. if arg 1 is "clear" or "c":
  29. loop 98 times:
  30. broadcast " "
  31. broadcaast "{@tag} Chat zostal wyczyszczony przez &6%player%"
  32. on chat:
  33. if player has permissions "chat.bypass":
  34. stop
  35. else:
  36. if {chat} is off:
  37. cancel event
  38. send "{@tag} Chat jest aktualnie wylaczony!" to player
Advertisement
Add Comment
Please, Sign In to add comment