GamePL7

gChat

Sep 12th, 2016
1,238
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.66 KB | None | 0 0
  1. variables:
  2. {cooldown.%player%} = false
  3. options:
  4. xxperm: chat.admin
  5. logoclear: &7[&aNazwa_twojego_serwera&7]
  6. xperm: chat.vip
  7.  
  8. command /chat [<text>]:
  9. trigger:
  10. if player has permission "{@xxperm}":
  11. if arg 1 is "on" or "wlacz":
  12. set {chat} to true
  13. broadcast " &8 {@logoclear}&8 "
  14. broadcast " &9&lChat zostal:&7&l wlaczony&7!"
  15. broadcast " &8 {@logoclear}&8 "
  16. if arg 1 is "off" or "wylacz":
  17. set {chat} to false
  18. broadcast " &8 {@logoclear}&8 "
  19. broadcast " &9&lChat zostal:&7&l wylaczony&7!"
  20. broadcast " &8 {@logoclear}&8 "
  21. if arg 1 is "cc" or "clear" or "wyczysc":
  22. wait 1 tick
  23. loop 99 times:
  24. broadcast "&r"
  25. wait 1 tick
  26. loop 1 times:
  27. broadcast " &8 {@logoclear}&8 "
  28. broadcast " &9&lChat zostal:&7&l wyczyszczony&7!"
  29. broadcast " &8 {@logoclear}&8 "
  30. if arg 1 is not set:
  31. wait 1 tick
  32. send "&r"
  33. send "&a/chat off &7- &awylacza chat (tzw. chat dla VIP'ow)"
  34. send "&a/chat cc &7- &aCzysci chat (dla wszystkich)"
  35. send "&a/chat on &7- &aWlacza chat (dla wszystkich)"
  36. send "&r"
  37. on chat:
  38. if {chat} is false:
  39. if player doesn't have permission "{@xperm}":
  40. cancel event
  41. send "{@logoclear} &aChat jest wylaczony!" to player
  42. else:
  43. stop
  44. else if {chat} is true:
  45. stop
  46. on chat:
  47. if {cooldown.%player%} is false:
  48. set {cooldown.%player%} to true
  49. wait 3 seconds
  50. set {cooldown.%player%} to false
  51. if {cooldown.%player%} is true:
  52. cancel event
  53. send "&aMusisz poczekać&c 3&a sekundy przed kolejną wiadomością"
Advertisement
Add Comment
Please, Sign In to add comment