Guest User

Untitled

a guest
Mar 25th, 2016
339
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.38 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 "&2» &6Chat zostal &aWlaczony"
  36. broadcast ""
  37. stop
  38. else:
  39. send "&7Nie masz &auprawnienia&7 do tej komendy !"
  40. stop
  41. else:
  42. send "&6Chat jest juz &aWlaczony"
  43. stop
  44. if arg 1 is "off":
  45. if {chat} is true:
  46. if player has permission "chatg.off":
  47. set {chat} to false
  48. broadcast ""
  49. broadcast "&2» &6Chat zostal &aWylaczony"
  50. broadcast ""
  51. stop
  52. else:
  53. send "&7Nie masz &auprawnienia&7 do tej komendy !"
  54. stop
  55. else:
  56. send "&6Chat jest juz &aWylaczony"
  57. stop
  58. if arg 1 is "clear":
  59. if player has permission "chatg.clear":
  60. loop 100 times:
  61. message "" to all players
  62. send "&2» &6Chat został wyczyszczony przez &c %name of player%&a!" to all players
  63. stop
  64. else:
  65. send "&7Nie masz &auprawnienia&7 do tej komendy !"
  66. stop
  67. if arg 1 is "aon":
  68. if player has permission "chatg.auto":
  69. set {auto} to true
  70. send "&6Auto czyszczenie chatu uruchomione!"
  71. stop
  72. else:
  73. send "[ChatG]&aNie masz uprawnien aby to robic!"
  74. if arg 1 is "aoff":
  75. if player has permission "chatg.auto":
  76. set {auto} to false
  77. send "&2» &6Auto czyszczenie chatu wylaczone!"
  78. else:
  79. send "&cNie masz uprawnien aby to robic!"
  80. every {@time} minutes:
  81. if {auto} is true:
  82. loop 100 times:
  83. message "" to all players
  84. send "&2» &6Chat zostal wyczyszczony &cAutomatycznie&a!" to all players
  85.  
  86. on chat:
  87. if {chat} is false:
  88. if player has permission "chatg.write":
  89. stop
  90. else:
  91. cancel event
  92. send "&2» &6Chat jest aktualnie &aWylaczony!"
  93. stop
  94. else:
  95. if player has permission "chatg.write2":
  96. stop
  97. set {_waited} to difference between {chat.%player%.spam} and now
  98. if {_waited} is less than 3 real seconds seconds:
  99. send "&2» &6astepna&a wiadomosc&6 bedziesz mogl wyslac za &c3 sekundy"
  100. cancel event
  101. stop
  102. set {chat.%player%.spam} to now
  103. stop
  104. on chat:
  105. replace all "kurwa" with "***" in the message
  106. replace all "chuj" with "***" in the message
  107. replace all "pierdolony" with "***" in the message
  108. replace all "pedal" with "***" in the message
  109. replace all "gej" with "***" in the message
  110. replace all "suka" with "***" in the message
  111. replace all "cipa" with "***" in the message
  112. replace all "dupa" with "***" in the message
  113. replace all "pierdolona" with "***" in the message
  114. replace all "pojebalo" with "***" in the message
  115. replace all "zajebe cie" with "***" in the message
  116. replace all "debil" with "***" in the message
  117. on chat:
  118. if player is not op:
  119. replace all "A" with "a" in the message
  120. replace all "B" with "b" in the message
  121. replace all "C" with "c" in the message
  122. replace all "D" with "d" in the message
  123. replace all "E" with "e" in the message
  124. replace all "F" with "f" in the message
  125. replace all "G" with "g" in the message
  126. replace all "H" with "h" in the message
  127. replace all "I" with "i" in the message
  128. replace all "J" with "j" in the message
  129. replace all "K" with "k" in the message
  130. replace all "L" with "l" in the message
  131. replace all "M" with "m" in the message
  132. replace all "N" with "n" in the message
  133. replace all "O" with "o" in the message
  134. replace all "P" with "p" in the message
  135. replace all "R" with "r" in the message
  136. replace all "S" with "s" in the message
  137. replace all "T" with "t" in the message
  138. replace all "U" with "u" in the message
  139. replace all "W" with "w" in the message
  140. replace all "Y" with "y" in the message
  141. replace all "Z" with "z" in the message
Advertisement
Add Comment
Please, Sign In to add comment