Guest User

AdvencedChat v.1.2

a guest
Oct 18th, 2014
568
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.91 KB | None | 0 0
  1. #=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=#
  2. # ---===| AdvancedChat |===--- #
  3. # v.1.2 #
  4. #=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=#
  5.  
  6. #===================================================#
  7. # ● Zarządzaj chatem na swoim serwerze ! ● #
  8. #===================================================#
  9.  
  10. #===================================================#
  11. #=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=#
  12. # ● Przez: MaNiAaAK ● #
  13. #=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=#
  14. #===================================================#
  15.  
  16. #=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=#
  17. # |●| LICENCJA |●| #
  18. #=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=#
  19. # NIE ZEZWALAM NA #
  20. #=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=#
  21. # ● Podszywanie sie pod autora. #
  22. # ● Przerabiania oraz publikowania kodu. #
  23. # ● Usuwanie oznaczonych treścią "LICENCJA" linijek.#
  24. #=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=#
  25. # #
  26. #=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=#
  27. #=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=#
  28. # ZEZWALAM NA #
  29. #=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=#
  30. # ● Dopisywanie kodu na własną potrzebe. #
  31. # ● Modyfikowanie wyglądu wiadomosci, po za tymi #
  32. # oznaczonymi treścią "LICENCJA". #
  33. #=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=#
  34.  
  35.  
  36. #=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=#
  37. # |●| PERMISJE |●| #
  38. #=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=#
  39. #● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ●#
  40. #=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=#
  41. # ● AC.chat | Pozwala zarządzać chatem. #
  42. # ● Achat.say | Pisanie na wylaczonym chacie. #
  43. # ● Achat.slow | Wylacza pisanie co 5 sek. #
  44. # ● Achat.op | Pozwala na uzywanie op chatu. #
  45. # ● Achat.wyczysc #
  46. #=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=#
  47. #● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ●#
  48. #=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=#
  49.  
  50.  
  51. #=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=#
  52. # ---===| KOD |===--- #
  53. #=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=#
  54.  
  55. options: #LICENCJA
  56. tag: &8[&3AdvancedChat&8] #LICENCJA
  57. perm: &cNie masz uprawnien do uzywania tej komendy
  58. time: 5
  59.  
  60. variables:
  61. {AC.chat} = true
  62. {Achat.%player%} = false
  63. {Achat.mute::%player%} = false
  64. {slowdown.%player%} = false
  65.  
  66. on script load: #LICENCJA
  67. broadcast "{@tag} &7Skrypt zostal zaladowany." #LICENCJA
  68. broadcast "{@tag} &7Autorem skryptu jest &3MaNiAaAK." #LICENCJA
  69.  
  70. command /chat [<text>] [<offline player>]:
  71. trigger:
  72.  
  73. arg 1 is "mutelist":
  74. player has permissions "SW.chat":
  75. send "&3Lista zmutowanych graczy: (%size of {mutelist::*}%):&7 %{mutelist::*}%"
  76. else:
  77. send "{@tag} {@perm}"
  78. arg 1 is not set:
  79. send "&8|=&3=&8=&3=&8=&3=&8=&3=&8=&3=&8=&3=&8=&3=&8=&3=&8=&3=&8=&3=&8=&3=&8=&3=&8=&3=&8=&3=&8=&3=&8=&3=&8=&3=&8=&3=&8=&3=&8=&3=&8=&3=&8=|"
  80. send "&8/&3chat wylacz/wlacz | wlaczasz/wylaczasz chat."
  81. send "&8/&3chat mute/unmute <gracz> | wyciszasz/odciszasz danego gracza."
  82. send "&8/&3chat wyczysc | czysci chat."
  83. send "&8/&3chat perm | pokazuje permisje."
  84. send "&8/&3chat mutelist | pokazuje liste wyciszonych osob."
  85. send "&8|=&3=&8=&3=&8=&3=&8=&3=&8=&3=&8=&3=&8=&3=&8=&3=&8=&3=&8=&3=&8=&3=&8=&3=&8=&3=&8=&3=&8=&3=&8=&3=&8=&3=&8=&3=&8=&3=&8=&3=&8=&3=&8=|"
  86. arg 1 is "perm":
  87. send "&8|=&3=&8=&3=&8=&3=&8=&3=&8=&3=&8=&3=&8=&3=&8=&3=&8=&3=&8=&3=&8=&3=&8=&3=&8=&3=&8=&3=&8=&3=&8=&3=&8=&3=&8=&3=&8=&3=&8=&3=&8=&3=&8=|"
  88. send "&8● &3AC.chat | Pozwala zarządzać chatem."
  89. send "&8● &3Achat.say | Pisanie na wylaczonym chacie."
  90. send "&8● &3Achat.slow | Wylacza pisanie co 5 sek."
  91. send "&8● &3Achat.op | Pozwala na uzywanie op chatu."
  92. send "&8● &3Achat.wyczysc | pozwala czyscic chat."
  93. send "&8|=&3=&8=&3=&8=&3=&8=&3=&8=&3=&8=&3=&8=&3=&8=&3=&8=&3=&8=&3=&8=&3=&8=&3=&8=&3=&8=&3=&8=&3=&8=&3=&8=&3=&8=&3=&8=&3=&8=&3=&8=&3=&8=|"
  94. arg 1 is "wlacz":
  95. player has permissions "AC.chat":
  96. set {AC.chat} to true
  97. broadcast "{@tag} &7Chat zostal wlaczony przez &e%player%"
  98. else:
  99. send "{@tag} {@perm}"
  100. arg 1 is "wylacz":
  101. player has permissions "AC.chat":
  102. set {AC.chat} to false
  103. broadcast "{@tag} &7Chat zostal wylaczony przez &e%player%"
  104. else:
  105. send "{@tag} {@perm}"
  106. arg 1 is "mute":
  107. arg 2 is set:
  108. player has permissions "AC.chat":
  109. set {Achat.mute::%name of arg 2%} to true
  110. broadcast "{@tag} &7Gracz &e%name of arg 2% &7zostal wyciszony!"
  111. add arg 2 to {mutelist::*}
  112. else:
  113. send "{@tag} {@perm}"
  114. arg 1 is "unmute":
  115. arg 2 is set:
  116. remove arg 2 from {mutelist::*}
  117. player has permissions "AC.chat":
  118. set {Achat.mute::%name of arg 2%} to false
  119. broadcast "{@tag} &7Gracz &e%name of arg 2% &7zostal odciszony!"
  120. else:
  121. send "{@tag} {@perm}"
  122. arg 1 is "wyczysc":
  123. if player has permission "AC.chat":
  124. loop 100 times:
  125. broadcast "&a"
  126. broadcast "&3●=●=●=●=●=●=| &eChat zostal wyczyszczony! &3|●=●=●=●=●=●="
  127. broadcast "&3●=●=●=●=●=●=●=●=| &eprzez %player% &3|=●=●=●=●=●=●=●=●=●"
  128. loop 5 times:
  129. broadcast "&a"
  130. stop
  131. else:
  132. send "{@tag} {@perm}"
  133. stop
  134.  
  135. #Admin chat
  136. command /achat [<text>]:
  137. trigger:
  138. arg 1 is set:
  139. if player has permissions "Achat.op":
  140. loop all players:
  141. loop-player has permission "Achat.op":
  142. send "&8[&c*&8] &a%name of player%: &c%arg 1%" to loop-player
  143. else:
  144. send "&cNie masz dostepu do tej komendy!"
  145.  
  146. on chat:
  147. if {AC.chat} = false:
  148. player doesn't have permissions "Achat.say":
  149. send "{@tag} Chat jest obecnie wylaczony!"
  150. cancel event
  151. stop
  152. if {Achat.mute::%player%} = true:
  153. send "{@tag} Zostales wyciszony!"
  154. cancel event
  155. else:
  156. stop
  157.  
  158.  
  159. #cenzor
  160. on chat:
  161. replace all "kur", "chuj" or "pizd" or "ciot" or "szmat" or "japier" or "suk" or "jeb" or "skurwys" or "pedal" or "debil" or "dup" with "****" in the message
  162.  
  163. #AntyAD
  164. on chat:
  165. player doesn't have permission "AC.chat":
  166. 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":
  167. cancel event
  168. send "{@tag} &cZakaz reklamowania serwerów!"
  169. else:
  170. stop
Advertisement
Add Comment
Please, Sign In to add comment