Advertisement
Guest User

KChat - Masz problem ? to już go nie masz

a guest
Feb 6th, 2016
52
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 21.93 KB | None | 0 0
  1. variables:
  2. {ChatEx.%player%.chatMessageOff} = false
  3. {ChatEx.jezykPolski} = true
  4. {ChatEx.langEnglish} = false
  5. {ChatEx.%player%.chatMessagePlayerOn} = true
  6.  
  7. options:
  8. chatLangPL: &cAdministrator wylaczyl mozliwosc pisania na chacie/czacie
  9. chatLangEN: &cAdministrator has disabled the ability to write in chat
  10. permissionLangPL: &cNie posiadasz uprawnien do tej komendy
  11. permissionLangEN: &cYou dont have permission to this command
  12. niemozeszpisacnaChatcieLangPL: &cZostales zmutowany przez admina. Pisz do niego na /helpop
  13. niemozeszpisacnaChatcieLangEN: &cZostales zmutowany przez admina. Pisz do niego na /helpop
  14. niemozeszpisacnaChatcieLangPLown: &cAdministrator serwera wylaczyl chat. Pisz na /helpop
  15. niemozeszpisacnaChatcieLangENown: &cThe server administrator has got stuck writing the opportunity to chat
  16. SkriptName: chat2
  17.  
  18. #/>---<=><Skript-Code><=>---<\
  19.  
  20. command /chat [<text>] [<text>]:
  21. aliases: lc, c
  22. trigger:
  23. if arg 1 is not set:
  24. if {ChatEx.jezykPolski} is true:
  25. message "&7 Komendy KChat "
  26. message "<gold>/chat wylacz - Wylacza czat"
  27. message "<gold>/chat wlacz - Wlacza czat"
  28. message "<gold>/chat zablokuj Nick - Wylacza czat dla danego gracza"
  29. message "<gold>/chat odblokuj Nick - Wlacza czat dla danego gracza"
  30. message "<gold>/chat wyczysc - Wyczyszczenie czata"
  31. message "<gold>/chat przeladuj - Przeladowanie skryptu"
  32. stop
  33. if {ChatEx.langEnglish} is true:
  34. message "&7 Commands KChat "
  35. message "<gold>/chat off - Off chat"
  36. message "<gold>/chat on - On chat"
  37. message "<gold>/chat lock Nick - Disable chat for a player"
  38. message "<gold>/chat unlock Nick - Enable chat for a player"
  39. message "<gold>/chat clear - Clear chat"
  40. message "<gold>/chat polish/english - Change language"
  41. message "<gold>/chat reload - Reload skript"
  42. stop
  43. if arg 1 is "wylacz" or "off":
  44. player has permission "KChat.*":
  45. if {ChatEx.jezykPolski} is true:
  46. set {ChatEx.%all players%.chatMessageOff} to true
  47. broadcast "&4Chat zostal zablokowany przez admina %player%"
  48. stop
  49. if {ChatEx.langEnglish} is true:
  50. set {ChatEx.%all players%.chatMessageOff} to true
  51. broadcast "&4Chat zostal zablokowany przez admina %player%"
  52. stop
  53. else:
  54. if {ChatEx.jezykPolski} is true:
  55. message "{@permissionLangPL}"
  56. stop
  57. if {ChatEx.langEnglish} is true:
  58. message "{@permissionLangEN}"
  59. stop
  60. if arg 1 is "wlacz" or "on":
  61. player has permission "KChat.*":
  62. if {ChatEx.jezykPolski} is true:
  63. set {ChatEx.%all players%.chatMessageOff} to false
  64. broadcast "&aChat zostal odblokowany przez admina %player%"
  65. stop
  66. if {ChatEx.langEnglish} is true:
  67. set {ChatEx.%all players%.chatMessageOff} to false
  68. broadcast "&aChat zostal odblokowany przez admina %player%"
  69. stop
  70. else:
  71. if {ChatEx.jezykPolski} is true:
  72. message "{@permissionLangPL}"
  73. stop
  74. if {ChatEx.langEnglish} is true:
  75. message "{@permissionLangEN}"
  76. stop
  77. if arg 1 is "wyczysc" or "clear":
  78. player has permission "KChat.*":
  79. if {ChatEx.jezykPolski} is true:
  80. message " " to all players
  81. message " " to all players
  82. message " " to all players
  83. message " " to all players
  84. message " " to all players
  85. message " " to all players
  86. message " " to all players
  87. message " " to all players
  88. message " " to all players
  89. message " " to all players
  90. message " " to all players
  91. message " " to all players
  92. message " " to all players
  93. message " " to all players
  94. message " " to all players
  95. message " " to all players
  96. message " " to all players
  97. message " " to all players
  98. message " " to all players
  99. message " " to all players
  100. message " " to all players
  101. message " " to all players
  102. message " " to all players
  103. message " " to all players
  104. message " " to all players
  105. message " " to all players
  106. message " " to all players
  107. message " " to all players
  108. message " " to all players
  109. message " " to all players
  110. message " " to all players
  111. message " " to all players
  112. message " " to all players
  113. message " " to all players
  114. message " " to all players
  115. message " " to all players
  116. message " " to all players
  117. message " " to all players
  118. message " " to all players
  119. message " " to all players
  120. message " " to all players
  121. message " " to all players
  122. message " " to all players
  123. message " " to all players
  124. message " " to all players
  125. message " " to all players
  126. message " " to all players
  127. message " " to all players
  128. message " " to all players
  129. message " " to all players
  130. message " " to all players
  131. message " " to all players
  132. message " " to all players
  133. message " " to all players
  134. message " " to all players
  135. message " " to all players
  136. message " " to all players
  137. message " " to all players
  138. message " " to all players
  139. message " " to all players
  140. message " " to all players
  141. message " " to all players
  142. message " " to all players
  143. message " " to all players
  144. message " " to all players
  145. message " " to all players
  146. message " " to all players
  147. message " " to all players
  148. message " " to all players
  149. message " " to all players
  150. message " " to all players
  151. message " " to all players
  152. message " " to all players
  153. message " " to all players
  154. message " " to all players
  155. broadcast "&6Chat zostal wyczyszczony %player%"
  156. stop
  157. if {ChatEx.langEnglish} is true:
  158. message " " to all players
  159. message " " to all players
  160. message " " to all players
  161. message " " to all players
  162. message " " to all players
  163. message " " to all players
  164. message " " to all players
  165. message " " to all players
  166. message " " to all players
  167. message " " to all players
  168. message " " to all players
  169. message " " to all players
  170. message " " to all players
  171. message " " to all players
  172. message " " to all players
  173. message " " to all players
  174. message " " to all players
  175. message " " to all players
  176. message " " to all players
  177. message " " to all players
  178. message " " to all players
  179. message " " to all players
  180. message " " to all players
  181. message " " to all players
  182. message " " to all players
  183. message " " to all players
  184. message " " to all players
  185. message " " to all players
  186. message " " to all players
  187. message " " to all players
  188. message " " to all players
  189. message " " to all players
  190. message " " to all players
  191. message " " to all players
  192. message " " to all players
  193. message " " to all players
  194. message " " to all players
  195. message " " to all players
  196. message " " to all players
  197. message " " to all players
  198. message " " to all players
  199. message " " to all players
  200. message " " to all players
  201. message " " to all players
  202. message " " to all players
  203. message " " to all players
  204. message " " to all players
  205. message " " to all players
  206. message " " to all players
  207. message " " to all players
  208. message " " to all players
  209. message " " to all players
  210. message " " to all players
  211. message " " to all players
  212. message " " to all players
  213. message " " to all players
  214. message " " to all players
  215. message " " to all players
  216. message " " to all players
  217. message " " to all players
  218. message " " to all players
  219. message " " to all players
  220. message " " to all players
  221. message " " to all players
  222. message " " to all players
  223. message " " to all players
  224. message " " to all players
  225. message " " to all players
  226. message " " to all players
  227. message " " to all players
  228. message " " to all players
  229. message " " to all players
  230. message " " to all players
  231. message " " to all players
  232. message " " to all players
  233. broadcast "&6Chat zostal wyczyszczony %player%"
  234. stop
  235. else:
  236. if {ChatEx.jezykPolski} is true:
  237. message "{@permissionLangPL}"
  238. stop
  239. if {ChatEx.langEnglish} is true:
  240. message "{@permissionLangEN}"
  241. stop
  242. if arg 1 is "zablokuj" or "lock":
  243. player has permission "KChat.*":
  244. if {ChatEx.jezykPolski} is true:
  245. set {ChatEx.%arg 2%.chatMessagePlayerOn} to false
  246. message "&cZablokowales mozliwosc pisania na czacie graczowi <gold>%arg 2%"
  247. stop
  248. if {ChatEx.langEnglish} is true:
  249. set {ChatEx.%arg 2%.chatMessagePlayerOn} to false
  250. message "&cYou have blocked the possibility of writing in the chat player <gold>%arg 2%"
  251. stop
  252. else:
  253. if {ChatEx.jezykPolski} is true:
  254. message "{@permissionLangPL}"
  255. stop
  256. if {ChatEx.langEnglish} is true:
  257. message "{@permissionLangPL}"
  258. stop
  259. if arg 1 is "odblokuj" or "unlock":
  260. player has permission "Kchat.*":
  261. if {ChatEx.jezykPolski} is true:
  262. set {ChatEx.%arg 2%.chatMessagePlayerOn} to true
  263. message "&aOdblokowales mozliwosc pisania na czacie graczowi <gold>%arg 2%"
  264. stop
  265. if {ChatEx.langEnglish} is true:
  266. set {ChatEx.%arg 2%.chatMessagePlayerOn} to true
  267. message "&aYou hane enable the possiblity of writing on the chat player <gold>%arg 2%"
  268. stop
  269. else:
  270. if {ChatEx.jezykPolski} is true:
  271. message "{@permissionLangPL}"
  272. stop
  273. if {ChatEx.langEnglish} is true:
  274. message "{@permissionLangEN}"
  275. stop
  276. if arg 1 is "polski" or "polish":
  277. player has permission "KChat.*":
  278. if {ChatEx.jezykPolski} is true:
  279. set {ChatEx.jezykPolski} to true
  280. set {ChatEx.langEnglish} to false
  281. message "&aZmieniles jezyk na &4Pol&fski"
  282. stop
  283. if {ChatEx.langEnglish} is true:
  284. set {ChatEx.jezykPolski} to true
  285. set {ChatEx.langEnglish} to false
  286. message "&aYou have change language to &4Polish"
  287. stop
  288. else:
  289. if {ChatEx.jezykPolski} is true:
  290. message "{@permissionLangPL}"
  291. stop
  292. if {ChatEx.langEnglish} is true:
  293. message "{@permissionLangEN}"
  294. stop
  295. if arg 1 is "english":
  296. player has permission "KChat.*":
  297. if {ChatEx.jezykPolski} is true:
  298. set {ChatEx.jezykPolski} to false
  299. set {ChatEx.langEnglish} to true
  300. message "&aZmieniles jezyk na &4Angielski"
  301. stop
  302. if {ChatEx.langEnglish} is true:
  303. set {ChatEx.jezykPolski} to false
  304. set {ChatEx.langEnglish} to true
  305. message "&aYou have change language to &4English"
  306. stop
  307. if arg 1 is "reload" or "przeladuj":
  308. player has permission "chatex.admin":
  309. if {ChatEx.jezykPolski} is true:
  310. execute console command "/sk reload {@SkriptName}"
  311. message "&aPrzeladowywanie skryptu"
  312. wait 2 second
  313. message "&aPrzeladowano skrypt"
  314. stop
  315. if {ChatEx.langEnglish} is true:
  316. execute console command "/sk reload {@SkriptName}"
  317. message "&aReloading skript"
  318. wait 2 second
  319. message "&aSkript has been reload"
  320. stop
  321. else:
  322. if {ChatEx.jezykPolski} is true:
  323. message "{@permissionLangPL}"
  324. stop
  325. if {ChatEx.langEnglisg} is true:
  326. message "{@permissionLangEN}"
  327. stop
  328.  
  329. on chat:
  330. if {ChatEx.%all players%.chatMessageOff} is true:
  331. if {ChatEx.jezykPolski} is true:
  332. cancel event
  333. message "{@niemozeszpisacnaChatcieLangPLown}"
  334. stop
  335. if {ChatEx.langEnglisg} is true:
  336. cancel event
  337. message "{@niemozeszpisacnaChatcieLangENown}"
  338. stop
  339. if {ChatEx.%player%.chatMessagePlayerOn} is false:
  340. if {ChatEx.jezykPolski} is true:
  341. cancel event
  342. message "{@niemozeszpisacnaChatcieLangPL}"
  343. stop
  344. if {ChatEx.langEnglisg} is true:
  345. cancel event
  346. message "{@niemozeszpisacnaChatcieLangEN}"
  347. stop
  348.  
  349.  
  350. #-------------------------[][][]{Skript-Code-End}[][][]-------------------------------#
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement