XziomekX

WarnPro 4.0 - Nie opbulikowany

Jan 31st, 2014
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.38 KB | None | 0 0
  1. #=======================# Licencja #=======================#
  2. #
  3. # [+] Możesz edytować skrypt
  4. # [+] Możesz wgrać go na swoj serwer
  5. # [-] Nie możesz usuwać informacji o autorze!
  6. # [-] Nie możesz publikować skryptu!
  7. # [-] Nie możesz podpisywać się jako autor skryptu!
  8. # [-] Nie możesz sprzedawać skryptu!
  9. # [-] Nie możesz kopiować kodu skryptu w celu swoich skryptów!
  10. #
  11. #===============================================================#
  12.  
  13. #=======================# Informacje o autorze #=======================#
  14. #
  15. # Autor: XziomekX
  16. # WWW: http://ziomeks.cba.pl/
  17. #
  18. #=======================================================================#
  19.  
  20. #=======================# Informacje o skrypcie #=======================#
  21. #
  22. # Wersja: 4.0
  23. # Nazwa: WarnPro
  24. # Autor: XziomekX
  25. #=======================================================================#
  26.  
  27. #=======================# Opcje #=======================#
  28.  
  29. options:
  30. prefix: &7[&e&lWarnPro&7]
  31. nopermission: &4Nie masz uprawnien do uzycia tej komendy!
  32.  
  33. variables:
  34. {warny} = 0
  35.  
  36. #=====================# Komendy #=====================#
  37.  
  38. command /warn [<text>] [<player>] [<text>]:
  39. description: Lista dostepnych komend skryptu
  40. trigger:
  41. if arg 1 is "help":
  42. message "&3&l=========== {@prefix} &3&l==========="
  43. message " "
  44. message "&a/warn help &8- &eLista komend"
  45. message "&a/warn add <nick> &8- &eDodaje ostrzezenie graczu"
  46. message "&a/warn del <nick> &8- &eUsuwa ostrzezenia graczu"
  47. message "&a/warn info &8- &eInformacje o ostrzezeniach na twoim koncie"
  48. message "&a/warn zglos <nick> <powod> &8- &eZglasza gracza"
  49. if arg 1 is not set:
  50. message "&3&l=========== {@prefix} &3&l==========="
  51. message " "
  52. message "&a/warn help &8- &eLista komend"
  53. message "&a/warn add <nick> &8- &eDodaje ostrzezenie graczu"
  54. message "&a/warn del <nick> &8- &eUsuwa ostrzezenia graczu"
  55. message "&a/warn info &8- &eInformacje o ostrzezeniach na twoim koncie"
  56. message "&a/warn zglos <nick> <powod> &8- &eZglasza gracza"
  57. if arg 1 is "add":
  58. has permission "warnpro.add":
  59. if arg 2 is set:
  60. message "{@prefix} &3&lGracz &e&l%arg 2% &3&ldostal ostrzezenie!"
  61. add 1 to {warny.%arg 2%}
  62. message "&3&lDostales ostrzezenie od admina &e&l%player%" to player
  63. if arg 2 is not set:
  64. message "{@prefix} &cNie podales nicku gracza"
  65. else:
  66. message "{@prefix} {@nopermission}"
  67. if arg 1 is "del":
  68. has permission "warnpro.del":
  69. if arg 2 is set:
  70. message "{@prefix} &3&lUsunoles ostrzezenia gracza &e&l%arg 2% &3&l!"
  71. set {warny.%arg 2%} to 0
  72. if arg 2 is not set:
  73. message "{@prefix} &cNie podales nicku gracza"
  74. else:
  75. message "{@prefix} {@nopermission}"
  76. if arg 1 is "info":
  77. has permission "warnpro.info":
  78. if arg 2 is set:
  79. message "{@prefix} &3&lGracz &e&l%arg 2% &3&lma &e&l%{warny.%arg 2%}% &3&lostrzezen!"
  80. if arg 2 is not set:
  81. message "{@prefix} &3&lNa swoim koncie masz &e&l%{warny.%player%}% &3&lze &e&l100"
  82. if arg 1 is "zglos":
  83. has permission "warnpro.zglos":
  84. if arg 2 is set:
  85. message " "
  86. if arg 2 is not set:
  87. message "{@prefix} &cNie podales nicku!"
  88. if arg 3 is not set:
  89. message "{@prefix} &cNie podales powodu!"
  90. if arg 3 is set:
  91. log "Gracz %player% zglasza gracza | %arg 2% | za | %arg 3%" to "Skargi_WarnPro"
  92. message "{@prefix} &e&lZglosiles gracza: &4&l%arg 2% &e&lza: &4&l%arg 3%"
  93.  
  94.  
  95. #=====================# To możesz włączyć usuwając '#' #=====================#
  96.  
  97. #command /?:
  98. # description: Blokuje sprawdzanie listy pluginów
  99. # aliases: /plugins, /pl, /?, /craftbukkit, /lagg, /version
  100. # trigger:
  101. # send "&c&lNie możesz tego zobaczyć!"
  102.  
  103. #=======================# Blokowanie przeklenstw #=======================#
  104.  
  105. on chat:
  106. message contains "kurwa":
  107. execute console command "warn add %player%"
  108. message "{@prefix} &3&lDostales ostrzezenie za przeklenstwo!"
  109. replace all "kurwa" with "****" in the message
  110. message contains "huj":
  111. execute console command "warn add %player%"
  112. message "{@prefix} &3&lDostales ostrzezenie za przeklenstwo!"
  113. replace all "huj" with "****" in the message
  114. message contains "chuj":
  115. execute console command "warn add %player%"
  116. message "{@prefix} &3&lDostales ostrzezenie za przeklenstwo!"
  117. replace all "chuj" with "****" in the message
  118. message contains "pizda":
  119. execute console command "warn add %player%"
  120. message "{@prefix} &3&lDostales ostrzezenie za przeklenstwo!"
  121. replace all "pizda" with "****" in the message
  122. message contains "cipa":
  123. execute console command "warn add %player%"
  124. message "{@prefix} &3&lDostales ostrzezenie za przeklenstwo!"
  125. replace all "cipa" with "****" in the message
  126. message contains "perdal":
  127. execute console command "warn add %player%"
  128. message "{@prefix} &3&lDostales ostrzezenie za przeklenstwo!"
  129. replace all "pedal" with "****" in the message
  130. message contains "debil":
  131. execute console command "warn add %player%"
  132. message "{@prefix} &3&lDostales ostrzezenie za przeklenstwo!"
  133. replace all "debil" with "****" in the message
  134. message contains "ciota":
  135. execute console command "warn add %player%"
  136. message "{@prefix} &3&lDostales ostrzezenie za przeklenstwo!"
  137. replace all "ciota" with "****" in the message
  138. message contains "spierdalaj":
  139. execute console command "warn add %player%"
  140. message "{@prefix} &3&lDostales ostrzezenie za przeklenstwo!"
  141. replace all "spierdalaj" with "****" in the message
  142. message contains "pierdol":
  143. execute console command "warn add %player%"
  144. message "{@prefix} &3&lDostales ostrzezenie za przeklenstwo!"
  145. replace all "pierdol" with "****" in the message
  146. message contains "kutas":
  147. execute console command "warn add %player%"
  148. message "{@prefix} &3&lDostales ostrzezenie za przeklenstwo!"
  149. replace all "kutas" with "****" in the message
  150. message contains "pierdolony":
  151. execute console command "warn add %player%"
  152. message "{@prefix} &3&lDostales ostrzezenie za przeklenstwo!"
  153. replace all "pierdolony" with "****" in the message
  154. message contains "murzyn":
  155. execute console command "warn add %player%"
  156. message "{@prefix} &3&lDostales ostrzezenie za przeklenstwo!"
  157. replace all "murzyn" with "****" in the message
  158. message contains "cygan":
  159. execute console command "warn add %player%"
  160. message "{@prefix} &3&lDostales ostrzezenie za przeklenstwo!"
  161. replace all "cygan" with "****" in the message
  162. message contains "gej":
  163. execute console command "warn add %player%"
  164. message "{@prefix} &3&lDostales ostrzezenie za przeklenstwo!"
  165. replace all "gej" with "****" in the message
  166. if {warny.%player%} is equal to 3 -1:
  167. execute console command "tempban %player% 30d {@prefix} &6&lZostales zbanowany na 30 dni za osiągnięcie maksymalnej ilości ostrzezen"
  168.  
  169. #=======================# Blokada reklam #=======================#
  170. message contains "csrv":
  171. execute console command "warn add %player%"
  172. message "{@prefix} &3&lDostales ostrzezenie za reklame serwwera!"
  173. replace all "csrv" with "****" in the message
  174. message contains "hostmc":
  175. execute console command "warn add %player%"
  176. message "{@prefix} &3&lDostales ostrzezenie za reklame serwwera!"
  177. replace all "hostmc" with "****" in the message
  178. message contains "fcraft":
  179. execute console command "warn add %player%"
  180. message "{@prefix} &3&lDostales ostrzezenie za reklame serwwera!"
  181. replace all "fcraft" with "****" in the message
  182. message contains "mc":
  183. execute console command "warn add %player%"
  184. message "{@prefix} &3&lDostales ostrzezenie za reklame serwwera!"
  185. replace all "mc" with "****" in the message
  186. message contains "s1":
  187. execute console command "warn add %player%"
  188. message "{@prefix} &3&lDostales ostrzezenie za reklame serwwera!"
  189. replace all "s1" with "****" in the message
  190. message contains "pl":
  191. execute console command "warn add %player%"
  192. message "{@prefix} &3&lDostales ostrzezenie za reklame strony!"
  193. replace all "pl" with "****" in the message
  194. message contains "net":
  195. execute console command "warn add %player%"
  196. message "{@prefix} &3&lDostales ostrzezenie za reklame strony!"
  197. replace all "net" with "****" in the message
  198. message contains "org":
  199. execute console command "warn add %player%"
  200. message "{@prefix} &3&lDostales ostrzezenie za reklame strony!"
  201. replace all "org" with "****" in the message
  202. message contains "us":
  203. execute console command "warn add %player%"
  204. message "{@prefix} &3&lDostales ostrzezenie za reklame strony!"
  205. replace all "us" with "****" in the message
  206. message contains "cba":
  207. execute console command "warn add %player%"
  208. message "{@prefix} &3&lDostales ostrzezenie za reklame strony!"
  209. replace all "cba" with "****" in the message
  210. message contains "ugu":
  211. execute console command "warn add %player%"
  212. message "{@prefix} &3&lDostales ostrzezenie za reklame strony!"
  213. replace all "ugu" with "****" in the message
  214. message contains "com":
  215. execute console command "warn add %player%"
  216. message "{@prefix} &3&lDostales ostrzezenie za reklame strony!"
  217. replace all "com" with "****" in the message
  218.  
  219. #=======================# Poprawa błędów #=======================#
  220. replace all "ktury" with "kt&4ó&fry" in the message
  221. replace all "muj" with "m&4ó&fj" in the message
  222. replace all "twuj" with "tw&4ó&fj" in the message
  223. replace all "hlep" with "&4ch&fle&4b&f" in the message
  224. # jak chcesz więcej to możesz sobie dodać :)
Advertisement
Add Comment
Please, Sign In to add comment