MrFretko

Skrypt #1 chat v.2.0

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