Michma1707

Chat.sk

Mar 17th, 2016
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.31 KB | None | 0 0
  1. variables:
  2. {mchat.off} = false
  3. command /chat [<text>] [<text>]:
  4. description: Komendy chatu
  5. permission: michma.chat
  6. permission message: &cBrak uprawnien! (&7michma.chat&c)
  7. trigger:
  8. if arg 1 is not set:
  9. send "&c[Chat] &6» &7&6m&7Chat - prosty chat na serwer by &6 xMichma1707x"
  10. send "&c[Chat] &6» &7chat on/off [powod] - wlacza lub wylacza z powodem chat"
  11. send "&c[Chat] &6» &7chat reload - przleadowuje skrypt"
  12. send "&c[Chat] &6» &7chat powod - sprawdzasz powod wylaczenia chatu"
  13. send "&c[Chat] &6» &7chat send [tresc] - wysyla wiadomosc bez prefixu"
  14. send "&c[Chat] &6» &7chat clear - czysci chat"
  15. send "&c[Chat] &6» &7Uprawnienia do wszystkiego: &6michma.chat"
  16. send "&c[Chat] &6» &7Uprawnienia do pisania jak chat jest off: &6michma.chat.pisz"
  17. if arg 1 is "reload":
  18. send "&c&l** &7Przeladowywanie..."
  19. execute console command "/sk reload %script%"
  20. wait 1 second
  21. send "&c&l** &7Pomyslnie przeladowano!"
  22. stop
  23. if arg 1 is "clearX":
  24. loop 300 times:
  25. broadcast ""
  26. wait 1 tick
  27. broadcast "&c[Chat] &6» &7Chat zostal: &6WYCZYSZCZONY&7, przez &6CONSOLE"
  28. stop
  29. if arg 1 is "send":
  30. broadcast "%colored arg 2%"
  31. if arg 1 is "on":
  32. if {chat} is false:
  33. set {chat} to true
  34. broadcast "&c[Chat] &6» &7Chat zostal: &aWLACZONY"
  35. set {r} to arg 1
  36. else:
  37. send "&c[Chat] &6» &7Chat jest juz: &aWLACZONY"
  38. if arg 1 is "off":
  39. if {chat} is true:
  40. if arg 2 is set:
  41. set {chat} to false
  42. broadcast "&c[Chat] &6» &7Chat zostal: &cWYLACZONY"
  43. broadcast "&c[Chat] &6» &7Powód: &6%arg 2%"
  44. set {r} to arg 2
  45. else:
  46. set {chat} to false
  47. broadcast "&c[Chat] &6» &7Chat zostal: &cWYLACZONY"
  48. set {r} to arg 1
  49. else:
  50. send "&c[Chat] &6» &7Chat jest juz: &cWYLACZONY"
  51. set {chat} to false
  52. if arg 1 is "clear":
  53. loop 100 times:
  54. send "" to all players
  55. broadcast "&c[Chat] &6» &7Chat zostal: &6WYCZYSZCZONY&7, przez &6%player%"
  56. if arg 1 is "powod":
  57. send "&c[Chat] &6» &7Powod: &6%{R}%"
  58. command /console [<text>]:
  59. permission: rtnt.*
  60. trigger:
  61. execute console command "%arg 1%"
  62. on chat:
  63. if {chat} is false:
  64. if player doesn't have permission "michma.chat" or "michma.chat.pisz":
  65. cancel event
  66. send "&c[Chat] &6» &7Chat jest: &cWYLACZONY &8(Powod: %{r}%)"
Advertisement
Add Comment
Please, Sign In to add comment