Guest User

abc

a guest
Jan 20th, 2016
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.22 KB | None | 0 0
  1. variables:
  2. {chatoff} = false
  3. command /c [<text>] [<text>] [<text>] [<text>]:
  4. aliases: /chat
  5. permission: cchat.admin
  6. permission message: Nie masz uprawnien do uzycia tej komendy!
  7. trigger:
  8. if arg 1 is not set:
  9. send "&9/chat off &7- Wylacza chat"
  10. send "&9/chat on &7- Wlacza chat"
  11. send "&9/chat cc &7- Czysci chat"
  12. if arg 1 is "off":
  13. if {chatoff} is false:
  14. set {chatoff} to true
  15. broadcast "&8>> &9Chat zostal wylaczony przez: &c%player%"
  16. else:
  17. send "&c>> &6Chat jest juz wylaczony!"
  18. if arg 1 is "on":
  19. if {chatoff} is true:
  20. set {chatoff} to false
  21. broadcast "&8>> &9Chat zostal wlaczony przez: &c%player%"
  22. else:
  23. send "&c>> &6Chat jest juz wlaczony!"
  24. if arg 1 is "c" or "wyczysc" or "cc":
  25. loop 100 times:
  26. broadcast ""
  27. broadcast "&8>>Chat zostal wczyszczony przez&c %player%"
  28. on chat:
  29. if {chatoff} is true:
  30. player doesn't have permissions "chat.admin":
  31. cancel event
  32. send "&9>> &7Chat jest aktualnie wylaczony!"
  33.  
  34. on chat:
  35. set {_waited} to difference between {spam.%player%.lastused} and now
  36. if {_waited} is less than 3 seconds:
  37. message "&8>>&7Nastepna wiadomosc za &c3 sekundy"
  38. cancel event
  39. stop
  40. set {spam.%player%.lastused} to now
Advertisement
Add Comment
Please, Sign In to add comment