Advertisement
Guest User

Untitled

a guest
Oct 24th, 2014
149
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.16 KB | None | 0 0
  1. #-----------------#
  2. # 2k-Chat #
  3. # marcell2k #
  4. #-----------------#
  5. # Zakaaz #
  6. # kopiowania #
  7. #-----------------#
  8. # v.1.1 #
  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: &2Domin&6Craft # Nazwa Servera
  24. ilesekund: 10 # 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: &7marcolxp12"
  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.  
  73.  
  74. on chat:
  75. if {chat} is false:
  76. if player has permission "2k-chat.write":
  77. stop
  78. else:
  79. cancel event
  80. send "&7Chat jest aktualnie &aWylaczony!"
  81.  
  82. on chat:
  83. if player don't have permission "2k-chat":
  84. set {_waited} to difference between {2k-chat.%player%.spam} and now
  85. if {_waited} is less than 10 real seconds seconds:
  86. send "&eNastepna wiadomosc bedziesz mogl napisac za &c15 &esekund!"
  87. cancel event
  88. stop
  89. set {2k-chat.%player%.spam} to now
  90. else:
  91. stop
  92.  
  93.  
  94. command /cc:
  95. trigger:
  96. if player has permission "2k-chat.clear":
  97. loop 200 times:
  98. broadcast ""
  99. broadcast " {@tag}"
  100. broadcast "&7Chat zostal wyczyszczony!"
  101. else:
  102. send "&7Nie masz uprawnien!"
  103. options:
  104. czas_muta: 2
  105. variables:
  106. {mute.%player%} = false
  107. on chat:
  108. if {mute.%player%} is false:
  109. loop all {cenzura::slowa::*}
  110. if chat message contains "%loop-value%":
  111. cancel event
  112. send "&cZostales zmutowany za przeklinanie na czacie! &7(&b{@czas_muta} minut&7) &cprzez &4Serwer"
  113. loop all players:
  114. if loop-player is an op:
  115. send "&cZostales zmutowany za przeklinanie na czacie! &7(&b{@czas_muta} minut&7) &cprzez &4Serwer" to loop-player
  116. set {mute.%player%} to true
  117. wait {@czas_muta} minutes
  118. set {mute.%player%} to false
  119. else:
  120. stop
  121. else:
  122. cancel event
  123. send "&cJestes zmutowany na &7(&b{@czas_muta} minut&7)&cza przeklenstwa"
  124. command /cenzura [<text>] [<text>]:
  125. trigger:
  126. if player has permission "unmute.mute":
  127. if arg 1 is not set:
  128. send "&cBlad: &7Poprawne uzycie &6/cenzura dodaj/usun/lista [slowo]"
  129. if arg 1 is "dodaj":
  130. if arg 2 is set:
  131. add "%arg 2%" to {cenzura::slowa::*}
  132. else:
  133. send "&cBlad: &7Wpisz slowo ktore chcesz dodac!"
  134. if arg 1 is "usun":
  135. if arg 2 is set:
  136. remove "%arg 2%" from {cenzura::slowa::*}
  137. else:
  138. send "&cBlad: &7Wpisz slowo ktore chcesz dodac!"
  139. if arg 1 is "lista":
  140. send "&7Lista przeklenst:"
  141. send "&a%{cenzura::slowa::*}%"
  142. command /unmut [<text>]:
  143. trigger:
  144. if player has permission "unmute.mute":
  145. if arg is set:
  146. if {mute.%arg 1%} is true:
  147. send "&7Odmutowales &b%arg 1%"
  148. set {mute.%arg 1%} to false
  149. else:
  150. send "&7Ten gracz nie jest zmutowany"
  151. else:
  152. send "&7Uzycie /unmut &9nick"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement