Guest User

Skrypt na chat by MatiKk1337_

a guest
Jun 3rd, 2015
741
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.37 KB | None | 0 0
  1. variables:
  2. {chatoff} = false
  3. command /chat [<text>] [<text>] [<text>] [<text>]:
  4. aliases: /chat
  5. permission: fejmhc.chat
  6. permission message: "&cNie masz permissi &7(fejmhc.chat)"
  7. trigger:
  8. if arg 1 is not set:
  9. send "&6/chat off &7- &eWylacza chat"
  10. send "&6/chat on &7- &eWlacza chat"
  11. send "&6/chat clear &7- &eCzysci chat"
  12. send "&6/chat info &7- &eInformacje o autorze"
  13. if arg 1 is "info" or "autor":
  14. send "&6&lSkrypt na chat stworzony przez &cMatiKk1337_"
  15. send "&6&lWersja: &70.1"
  16. if arg 1 is "off":
  17. if {chatoff} is false:
  18. set {chatoff} to true
  19. broadcast "&6Chat zostal wylaczony przez &a%player%"
  20. else:
  21. send "&6Chat jest juz wylaczony!"
  22. if arg 1 is "on" or "wlacz":
  23. if {chatoff} is true:
  24. set {chatoff} to false
  25. broadcast "&6Chat zostal wlaczony przez &a%player%"
  26. else:
  27. send "&6Chat jest juz wlaczony!"
  28. if arg 1 is "clear" or "cc":
  29. loop 100 times:
  30. broadcast ""
  31. broadcast "&6Chat zostal wyczyszczony przez &a%player%"
  32. on chat:
  33. if {chatoff} is true:
  34. player doesn't have permissions "fejmhc.chat":
  35. cancel event
  36. send "&6Chat jest aktualnie wylaczony"
Advertisement
Add Comment
Please, Sign In to add comment