knugi

Untitled

Mar 4th, 2016
160
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.41 KB | None | 0 0
  1.  
  2.  
  3.  
  4. # Dostepne permissje do skryptu/komendy :
  5.  
  6. # chatg.on - komenda /chat on
  7. # chatg.off - komenda /chat off
  8. # chatg.clear - komenda /chat clear
  9. # chatg.auto - komenda /char aon/off
  10. # chatg.write - pozwala na pisanie przy wylaczonym czacie
  11. # chatg.write2 - pozwala na pisanie zawsze i ciągle
  12.  
  13.  
  14. options:
  15. time: 5 # Co ile minut ma byc czyszczony chat
  16.  
  17. variables:
  18. {chat} = true
  19. {auto} = true
  20. command /chat [<text>]:
  21. trigger:
  22. if arg 1 is not set:
  23. send "&8######## &1&lChatG &8######## "
  24. send "&3/chat on &7- wlacza chat"
  25. send "&3/chat off &7- wylacza chat"
  26. send "&3/chat clear &7- czysci chat"
  27. send "&3/chat aon &7- wlacza auto chat"
  28. send "&3/chat aoff &7 wylacza auto chat"
  29. send "&8######## &1&lChatG &8######## "
  30. if arg 1 is "on":
  31. if {chat} is false:
  32. if player has permission "chatg.on":
  33. set {chat} to true
  34. broadcast ""
  35. broadcast " [ChatG]"
  36. broadcast "&7Chat zostal &aWlaczony"
  37. broadcast ""
  38. stop
  39. else:
  40. send "&7Nie masz &auprawnienia&7 do tej komendy !"
  41. stop
  42. else:
  43. send "&7Chat jest juz &aWlaczony"
  44. stop
  45. if arg 1 is "off":
  46. if {chat} is true:
  47. if player has permission "chatg.off":
  48. set {chat} to false
  49. broadcast ""
  50. broadcast " [ChatG]"
  51. broadcast "&7Chat zostal &aWylaczony"
  52. broadcast ""
  53. stop
  54. else:
  55. send "&7Nie masz &auprawnienia&7 do tej komendy !"
  56. stop
  57. else:
  58. send "&7Chat jest juz &aWylaczony"
  59. stop
  60. if arg 1 is "clear":
  61. if player has permission "chatg.clear":
  62. loop 100 times:
  63. message "" to all players
  64. send "Chat został wyczyszczony przez &c %name of player%&a!" to all players
  65. stop
  66. else:
  67. send "&7Nie masz &auprawnienia&7 do tej komendy !"
  68. stop
  69. if arg 1 is "aon":
  70. if player has permission "chatg.auto":
  71. set {auto} to true
  72. send "[& Auto czyszczenie chatu uruchomione!"
  73. stop
  74. else:
  75. send "[ChatG]&aNie masz uprawnien aby to robic!"
  76. if arg 1 is "aoff":
  77. if player has permission "chatg.auto":
  78. set {auto} to false
  79. send "&aAuto czyszczenie chatu wylaczone!"
  80. else:
  81. send "[ChatG]&aNie masz uprawnien aby to robic!"
  82. every {@time} minutes:
  83. if {auto} is true:
  84. loop 100 times:
  85. message "" to all players
  86. send "[ChatG]&aChat zostal wyczyszczony &cAutomatycznie&a!" to all players
  87.  
  88. on chat:
  89. if {chat} is false:
  90. if player has permission "chatg.write":
  91. stop
  92. else:
  93. cancel event
  94. send "&7Chat jest aktualnie &aWylaczony!"
  95. stop
  96. else:
  97. if player has permission "chatg.write2":
  98. stop
  99. set {_waited} to difference between {chat.%player%.spam} and now
  100. if {_waited} is less than 3 real seconds seconds:
  101. send "&7Nastepna&a wiadomosc&7 bedziesz mogl wyslac za &c3 sekundy"
  102. cancel event
  103. stop
  104. set {chat.%player%.spam} to now
  105. stop
  106. on chat:
  107. replace all "kurwa" with "***" in the message
  108. replace all "chuj" with "***" in the message
  109. replace all "pierdolony" with "***" in the message
  110. replace all "pedal" with "***" in the message
  111. replace all "gej" with "***" in the message
  112. replace all "suka" with "***" in the message
  113. replace all "cipa" with "***" in the message
  114. replace all "dupa" with "***" in the message
  115. replace all "pierdolona" with "***" in the message
  116. replace all "pojebalo" with "***" in the message
  117. replace all "zajebe cie" with "***" in the message
  118. replace all "debil" with "***" in the message
  119. on chat:
  120. if player is not op:
  121. replace all "A" with "a" in the message
  122. replace all "B" with "b" in the message
  123. replace all "C" with "c" in the message
  124. replace all "D" with "d" in the message
  125. replace all "E" with "e" in the message
  126. replace all "F" with "f" in the message
  127. replace all "G" with "g" in the message
  128. replace all "H" with "h" in the message
  129. replace all "I" with "i" in the message
  130. replace all "J" with "j" in the message
  131. replace all "K" with "k" in the message
  132. replace all "L" with "l" in the message
  133. replace all "M" with "m" in the message
  134. replace all "N" with "n" in the message
  135. replace all "O" with "o" in the message
  136. replace all "P" with "p" in the message
  137. replace all "R" with "r" in the message
  138. replace all "S" with "s" in the message
  139. replace all "T" with "t" in the message
  140. replace all "U" with "u" in the message
  141. replace all "W" with "w" in the message
  142. replace all "Y" with "y" in the message
  143. replace all "Z" with "z" in the message
Advertisement
Add Comment
Please, Sign In to add comment