Guest User

Skrypt MCHAT/MasChat

a guest
May 17th, 2015
563
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 11.77 KB | None | 0 0
  1.  
  2. |---===| MCHAT |===----|
  3. v.0.1
  4. #=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=#
  5.  
  6. #===================================================#
  7. # Zaawansowany autorski skrypt do chatu! #
  8. #===================================================#
  9.  
  10. #===================================================#
  11. #=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=#
  12. # AUTOR: Turbax72/Masi0_ #
  13. #=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=#
  14. #===================================================#
  15.  
  16. #=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=#
  17. # MCHAT - LICENSE #
  18. #=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=#
  19. # NIE ZEZWALAM NA #
  20. #=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=#
  21. # ● Podrabianie mnie - autora. #
  22. # ● Przerabiania oraz publikowania kodu. #
  23. #=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=#
  24. # #
  25. #=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=#
  26. #=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=#
  27. # ZEZWALAM NA #
  28. #=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=#
  29. # - Dopisywanie kodu na własną potrzebe. #
  30. #=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=#
  31.  
  32.  
  33.  
  34. | Dostepne permissje do skryptu/komendy :
  35.  
  36. | mchat.on - Do komendy /chat on
  37. | mchat.off - Do komendy /chat off
  38. | mchat.clear - Do komendy /chat clear
  39. | mchat.pisz - Pozwala na pisanie przy wylaczonym czacie
  40. | mchat.piszzawsze - Pozwala na pisanie zawsze nawet z reklamami/bluzgami
  41.  
  42.  
  43. #Opcje
  44. options:
  45. tag: &8[&6NazwaSerwera&8]# Nazwa Serwera
  46. ilesekund: 5 # Co ile sekund bedzie mozna pisac
  47.  
  48. variables:
  49. {chat} = true
  50.  
  51. command /chat [<text>]:
  52. trigger:
  53. if arg 1 is not set:
  54. send "&8[&6@tag&8] - &cMasChat"
  55. send ""
  56. send "&6/chat on &7- &cwlaczanie chatu"
  57. send "&6/chat off &7- &cwylaczanie chatu"
  58. send "&6/chat clear &7- &cczysczenie chatu"
  59. send ""
  60. send "&8==============================="
  61. if arg 1 is "on":
  62. if {chat} is false:
  63. if player has permission "mchat.on":
  64. set {chat} to true
  65. broadcast ""
  66. broadcast " &8[&6@tag&8]"
  67. broadcast "&cCzat zostal Wlaczony!"
  68. broadcast ""
  69. stop
  70. else:
  71. send "&6Nie masz &apermisji &cdo tej komendy!"
  72. stop
  73. else:
  74. send "&8[&6@tag&8] &cChat jest juz Wlaczony"
  75. stop
  76. if arg 1 is "off":
  77. if {chat} is true:
  78. if player has permission "mchat.off":
  79. set {chat} to false
  80. broadcast ""
  81. broadcast " &8[&6@tag&8]"
  82. broadcast "&cCzat zostal Wylaczony!"
  83. broadcast ""
  84. stop
  85. else:
  86. send "&6Nie masz &apermisji &cdo tej komendy !"
  87. stop
  88. else:
  89. send "&8[&6@tag&8] &cChat jest juz Wylaczony"
  90. stop
  91. if arg 1 is "clear":
  92. if player has permission "mchat.clear":
  93. broadcast ""
  94. broadcast ""
  95. broadcast ""
  96. broadcast ""
  97. broadcast ""
  98. broadcast ""
  99. broadcast ""
  100. broadcast ""
  101. broadcast ""
  102. broadcast ""
  103. broadcast ""
  104. broadcast ""
  105. broadcast ""
  106. broadcast ""
  107. broadcast ""
  108. broadcast ""
  109. broadcast ""
  110. broadcast ""
  111. broadcast ""
  112. broadcast ""
  113. broadcast ""
  114. broadcast ""
  115. broadcast ""
  116. broadcast ""
  117. broadcast ""
  118. broadcast ""
  119. broadcast ""
  120. broadcast ""
  121. broadcast ""
  122. broadcast ""
  123. broadcast ""
  124. broadcast ""
  125. broadcast ""
  126. broadcast ""
  127. broadcast ""
  128. broadcast ""
  129. broadcast ""
  130. broadcast ""
  131. broadcast ""
  132. broadcast ""
  133. broadcast ""
  134. broadcast ""
  135. broadcast ""
  136. broadcast ""
  137. broadcast ""
  138. broadcast ""
  139. broadcast ""
  140. broadcast ""
  141. broadcast ""
  142. broadcast ""
  143. broadcast ""
  144. broadcast ""
  145. broadcast ""
  146. broadcast ""
  147. broadcast ""
  148. broadcast ""
  149. broadcast ""
  150. broadcast ""
  151. broadcast ""
  152. broadcast ""
  153. broadcast ""
  154. broadcast ""
  155. broadcast ""
  156. broadcast ""
  157. broadcast ""
  158. broadcast ""
  159. broadcast ""
  160. broadcast ""
  161. broadcast ""
  162. broadcast ""
  163. broadcast ""
  164. broadcast ""
  165. broadcast ""
  166. broadcast ""
  167. broadcast ""
  168. broadcast ""
  169. broadcast ""
  170. broadcast ""
  171. broadcast ""
  172. broadcast ""
  173. broadcast ""
  174. broadcast ""
  175. broadcast ""
  176. broadcast ""
  177. broadcast ""
  178. broadcast ""
  179. broadcast ""
  180. broadcast ""
  181. broadcast ""
  182. broadcast ""
  183. broadcast ""
  184. broadcast ""
  185. broadcast ""
  186. broadcast ""
  187. broadcast ""
  188. broadcast ""
  189. broadcast ""
  190. broadcast ""
  191. broadcast ""
  192. broadcast ""
  193. broadcast ""
  194. broadcast ""
  195. broadcast ""
  196. broadcast ""
  197. broadcast ""
  198. broadcast ""
  199. broadcast ""
  200. broadcast " &8[&6@tag&8]"
  201. broadcast "&cChat zostal wyczyszczony"
  202. broadcast ""
  203. stop
  204. else:
  205. send "&6Nie masz &apermisji &cdo tej komendy !"
  206. stop
  207. on chat:
  208. if {chat} is false:
  209. if player has permission "mchat.write":
  210. stop
  211. else:
  212. cancel event
  213. send "&8[&6@tag&8] &cChat jest aktualnie Wlaczony"
  214. stop
  215. else:
  216. if player has permission "mchat.write2":
  217. stop
  218. set {_waited} to difference between {mchat.%player%.spam} and now
  219. if {_waited} is less than 3 real seconds seconds:
  220. send "&7Twoja nastepna&a wiadomosc &7bedziesz mogl wyslac za &c{@3} sekundy"
  221. cancel event
  222. stop
  223. set {mchat.%player%.spam} to now
  224. stop
  225. #Cenzura + Anty Reklama
  226. on chat:
  227. message contains "fhmc" or "csrv" or "ip" or "pl" or "net" or "com" or "tk" or "eu" or "ownserver" or "gomc" or "cubehost" or "fiberhost" or "p.l" or ",p" or "serwerhost" or "host" or "kur" or "chuj" or "pizd" or "ciot" or "szmat" or "japier" or "suk" or "jeb" or "skurwys" or "pedal" or "debil" or "dup":
  228. cancel event
  229. send "{@tag} &cTwoja wypowiedz zawiera niepoprawne tresci"
  230. #Brodacast pod komenda /global
  231. #Brak uprawnien do komendy
  232. nonperm.mchat.bc: &cNie masz permisji do tej komendy!
  233.  
  234. #Wpisz tekst
  235. typetext.mchat.bc: &cMusisz wpisac tekst/wiadomosc!
  236. command /global [<text>]:
  237. aliases: *** #W miejsce *** wpisz dodatkowe komendy ktore moga byc uzywane.
  238. trigger:
  239. if arg 1 is set:
  240. if player has permission "mchat-global" or "mchat-global.*":
  241. broadcast "{@tag} %coloured arg%"
  242. stop
  243. else:
  244. send "{@tag} {@nonperm.mchat.bc}"
  245. stop
  246. else:
  247. send "{@tag} {@typetext.mchat.bc}"
  248. stop
  249. #Admin chat
  250. command /ac [<text>]:
  251. trigger:
  252. arg 1 is set:
  253. if player has permissions "ac.mchat":
  254. loop all players:
  255. loop-player has permission "ac.mchat":
  256. send "&8[&4@&8] &a%name of player%: &c%arg 1%" to loop-player
  257. else:
  258. send "&cDo tej komendy ma dostep tylko osoba z permisja (ac.mchat)!"
Advertisement
Add Comment
Please, Sign In to add comment