Advertisement
Guest User

DarkCraft

a guest
Dec 10th, 2016
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 11.35 KB | None | 0 0
  1. #-----------------#
  2. # 2k-Chat #
  3. # Zelusiowy #
  4. #-----------------#
  5. # Zakaaz #
  6. # kopiowania #
  7. #-----------------#
  8. # v.1.2 #
  9. #-----------------#
  10.  
  11.  
  12.  
  13. # Dostepne permissje do skryptu/komendy :
  14.  
  15. # 2k-chat.on - komenda /chat on
  16. # 2k-chat.off - komenda /chat off
  17. # 2k-chat.clear - komenda /chat clear
  18. # 2k-chat.write - pozwala na pisanie przy wylaczonym czacie
  19. # 2k-chat.write2 - pozwala na pisanie zawsze i ciągle
  20.  
  21.  
  22. options:
  23. tag: &a&lLe&2&lCraft&f&l,&2&lPL # Nazwa Servera
  24. ilesekund: 5 # Co ile sekund bedzie mozna pisac
  25.  
  26. variables:
  27. {chat} = true
  28.  
  29. command /chat [<text>]:
  30. trigger:
  31. if arg 1 is not set:
  32. send "&8######## &72k-Chat &8######## "
  33. send "&6/chat on &7- wlacza chat"
  34. send "&6/chat off &7- wylacza chat"
  35. send "&6/chat clear &7- czysci chat"
  36. send " "
  37. send "&8----------------------------- "
  38. send " "
  39. send "&6Autor: &7marcell2k"
  40. send "&6E-mail: &7marcell2k@gmail.com"
  41. send "&6Skype: &7marcell2k"
  42. if arg 1 is "on":
  43. if {chat} is false:
  44. if player has permission "2k-chat.on":
  45. set {chat} to true
  46. broadcast ""
  47. broadcast " {@tag}"
  48. broadcast "&7Chat zostal &aWlaczony"
  49. broadcast ""
  50. stop
  51. else:
  52. send "&7Nie masz &auprawnienia&7 do tej komendy !"
  53. stop
  54. else:
  55. send "&7Chat jest juz &aWlaczony"
  56. stop
  57. if arg 1 is "off":
  58. if {chat} is true:
  59. if player has permission "2k-chat.off":
  60. set {chat} to false
  61. broadcast ""
  62. broadcast " {@tag}"
  63. broadcast "&7Chat zostal &aWylaczony"
  64. broadcast ""
  65. stop
  66. else:
  67. send "&7Nie masz &auprawnienia&7 do tej komendy !"
  68. stop
  69. else:
  70. send "&7Chat jest juz &aWylaczony"
  71. stop
  72. if arg 1 is "clear":
  73. if player has permission "2k-chat.clear":
  74. broadcast ""
  75. broadcast ""
  76. broadcast ""
  77. broadcast ""
  78. broadcast ""
  79. broadcast ""
  80. broadcast ""
  81. broadcast ""
  82. broadcast ""
  83. broadcast ""
  84. broadcast ""
  85. broadcast ""
  86. broadcast ""
  87. broadcast ""
  88. broadcast ""
  89. broadcast ""
  90. broadcast ""
  91. broadcast ""
  92. broadcast ""
  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 " {@tag}"
  182. broadcast "&7Chat zostal &aWyczyszczony"
  183. broadcast ""
  184. stop
  185. else:
  186. send "&7Nie masz &auprawnienia&7 do tej komendy !"
  187. stop
  188. on chat:
  189. if {chat} is false:
  190. if player has permission "2k-chat.write":
  191. stop
  192. else:
  193. cancel event
  194. send "&7Chat jest aktualnie &aWylaczony!"
  195. stop
  196. else:
  197. if player has permission "2k-chat.write2":
  198. stop
  199. set {_waited} to difference between {2k-chat.%player%.spam} and now
  200. if {_waited} is less than 3 real seconds seconds:
  201. send "&7Nastepna&a wiadomosc&7 bedziesz mogl wyslac za &c{@3} sekundy"
  202. cancel event
  203. stop
  204. set {2k-chat.%player%.spam} to now
  205. stop
  206. on chat:
  207. replace all "kurwa" with "k***a" in the message
  208. replace all "chuj" with "c**j" in the message
  209. replace all "pierdolony" with "p********y" in the message
  210. replace all "pedal" with "p***l" in the message
  211. replace all "gej" with "g*j" in the message
  212. replace all "suka" with "s**a" in the message
  213. replace all "cipa" with "c**a" in the message
  214. replace all "dupa" with "d**a" in the message
  215. replace all "pierdolona" with "pi*******a" in the message
  216. replace all "pojebalo" with "p*****lo" in the message
  217. replace all "zajebe cie" with "z****e cie" in the message
  218. replace all "debil" with "d***l" in the message
  219. on chat:
  220. if player is not op:
  221. replace all "A" with "a" in the message
  222. replace all "B" with "b" in the message
  223. replace all "C" with "c" in the message
  224. replace all "D" with "d" in the message
  225. replace all "E" with "e" in the message
  226. replace all "F" with "f" in the message
  227. replace all "G" with "g" in the message
  228. replace all "H" with "h" in the message
  229. replace all "I" with "i" in the message
  230. replace all "J" with "j" in the message
  231. replace all "K" with "k" in the message
  232. replace all "L" with "l" in the message
  233. replace all "M" with "m" in the message
  234. replace all "N" with "n" in the message
  235. replace all "O" with "o" in the message
  236. replace all "P" with "p" in the message
  237. replace all "R" with "r" in the message
  238. replace all "S" with "s" in the message
  239. replace all "T" with "t" in the message
  240. replace all "U" with "u" in the message
  241. replace all "W" with "w" in the message
  242. replace all "Y" with "y" in the message
  243. replace all "Z" with "z" in the message
  244. on chat:
  245. replace all "wbijac na moj server" with "mc.darkcraft.pl" in the message
  246. replace all "IP mojego servera" with "mc.darkcraft.pl" in the message
  247. replace all "zapraszam na moj server" with "mc.darkcraft.pl" in the message
  248. replace all "zapraszam na server mojego kolegi" with "mc.darkcraft.pl" in the message
  249. replace all "moj server IP:" with "mc.darkcraft.pl" in the message
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement