HugoZvPlayZ

ChatZ

Oct 27th, 2013
2,555
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 11.84 KB | None | 0 0
  1. #========================================================================================================#
  2. # LICENCJA #
  3. #========================================================================================================#
  4. # ZAKAZ: #
  5. # * Modyfikowania treści skryptu #
  6. # * Przywłaszczania sobie autorstwa skryptu #
  7. # * Zarabiania na skrypcie #
  8. # * Udostepniania skryptu w swoich paczkach serwerowych #
  9. # * Usuwania tresci zawierajacych informacje o autorze #
  10. # * Podszywania sie pod autora #
  11. # * Udostepniania skryptu w paczkach plikow serwerowch itp #
  12. # * Usuwania tresci zawierajacych autora #
  13. # * Dopisywania wszelkich dodatków typu strona www #
  14. #========================================================================================================#
  15. # POZWOLENIA: #
  16. # * Modyfikowanie wiadomości skryptu na wlasne potrzeby #
  17. # * Dopisywanie fragmentow na wlasne potrzeby #
  18. #========================================================================================================#
  19. # Mylnie odczytana licencja nie zwalnia z przestrzegania jej. #
  20. #========================================================================================================#
  21.  
  22. #========================================================================================================#
  23. # Skrypt stworzony przez HugoZvPlayZ #
  24. # Nazwa: ChatZ #
  25. # Wersja: 1.0 #
  26. # Skript: 2.0.2 #
  27. #========================================================================================================#
  28.  
  29. #--------------------------------------------------------------------------------------------------------#
  30. # WYMAGANIA #
  31. #--------------------------------------------------------------------------------------------------------#
  32. # Pluginy:
  33. # ● Skript
  34.  
  35. #--------------------------------------------------------------------------------------------------------#
  36. # USTAWIENIA #
  37. #--------------------------------------------------------------------------------------------------------#
  38. options:
  39. # Tag Skryptu
  40. tag: &4&lChat&0&lZ
  41.  
  42. # Co ile sekund mozna wysyłać wiadomości na chacie
  43. ChatZ.spam: 5
  44.  
  45. # Info | Chat jest wylaczony
  46. ChatZ.msg.chat.off: &9Chat jest wylaczony
  47.  
  48. # Info | Chat zostal wlacozny
  49. ChatZ.msg.on: &9Chat zostal wlaczony przez &a%player%
  50.  
  51. # Info | Chat jest juz wlaczony
  52. ChatZ.msg.on.on: &9Chat jest juz wlaczony
  53.  
  54. # Info | Chat zostal wylaczony
  55. ChatZ.msg.off: &9Chat zostal wylaczony przez &a%player%
  56.  
  57. # Info | Chat jest juz wylaczony
  58. ChatZ.msg.off.off: &9Chat jest juz wylaczony
  59.  
  60. # Info | Chat zostal wyczyszczony
  61. ChatZ.msg.clear: &9Chat zostal wyczyszczony przez &a%player%
  62.  
  63. # Info | Wiadomosc mozesz pisac co {@ChatZ.spam} sekund
  64. ChatZ.msg.spam: &9Wiadomosc mozesz pisac co &c{@ChatZ.spam} &9sekund
  65.  
  66. # Info | Brak uprawnien
  67. ChatZ.permission: &4Nie masz uprawnien
  68.  
  69. # Info | Reload skryptu
  70. ChatZ.reload: &aSkrypt przeladowany pomyslnie
  71.  
  72. #--------------------------------------------------------------------------------------------------------#
  73. # UPRAWNIEIA #
  74. #--------------------------------------------------------------------------------------------------------#
  75. # /ChatZ pomoc ● Pomoc ● brak #
  76. # /ChatZ <on|off> ● Wlacza|Wylacza chat ● ChatZ.admin #
  77. # /ChatZ clear ● Czysci chat ● ChatZ.admin #
  78. # /ChatZ reload ● Reload skryptu ● ChatZ.admin #
  79. # /ChatZ info ● Info o Skrypcie ● brak #
  80. # brak ● Mozliwosc pisania na wylaczonym chatcie ● ChatZ.unlimited #
  81. # [] - opcjonalnie | <> - wymagane #
  82. #--------------------------------------------------------------------------------------------------------#
  83.  
  84. #--------------------------------------------------------------------------------------------------------#
  85. # KOD #
  86. #--------------------------------------------------------------------------------------------------------#
  87. variables:
  88. {ChatZ.on} = true
  89. {ChatZ.spam.%player%} = true
  90.  
  91. on chat:
  92. if {ChatZ.on} is false:
  93. if player doesn't have permission "ChatZ.unlimited":
  94. cancel event
  95. message "{@tag} &d&l| {@ChatZ.msg.chat.off}"
  96. if {ChatZ.on} is true:
  97. if {ChatZ.spam.%player%} is true:
  98. if player doesn't have permission "ChatZ.unlimited":
  99. cancel event
  100. message "{@tag} &d&l| {@ChatZ.msg.spam}"
  101. set {ChatZ.spam.%player%} to true
  102. wait {@ChatZ.spam} seconds
  103. set {ChatZ.spam.%player%} to false
  104.  
  105. command /ChatZ [<text>]:
  106. trigger:
  107. if argument 1 is not set:
  108. execute player command "ChatZ pomoc"
  109. if argument 1 is "pomoc":
  110. if player has permission "ChatZ.gracz":
  111. message "&5&l<---------------{@tag}&5&l--------------->"
  112. message "&e&l* &3/ChatZ pomoc &f- &6Pomoc"
  113. message "&e&l* &3/ChatZ <on|off> &f- &6Ranking"
  114. message "&e&l* &3/ChatZ clear &f- &6Pomoc"
  115. message "&e&l* &3/ChatZ reload &f- &6Reload"
  116. message "&5&l<---------------{@tag}&5&l--------------->"
  117. else:
  118. message "{@tag} &d&l| {@ChatZ.permission}"
  119. if argument 1 is "on":
  120. if player has permission "ChatZ.admin":
  121. if {ChatZ.on} is true:
  122. message "{@tag} &d&l| {@ChatZ.msg.on.on}"
  123. if {ChatZ.on} is false:
  124. set {ChatZ.on} to true
  125. broadcast "{@tag} &d&l| {@ChatZ.msg.on}"
  126. else:
  127. message "{@tag} &d&l| {@ChatZ.permission}"
  128. if argument 1 is "off":
  129. if player has permission "ChatZ.admin":
  130. if {ChatZ.on} is false:
  131. message "{@tag} &d&l| {@ChatZ.msg.off.off}"
  132. if {ChatZ.on} is true:
  133. set {ChatZ.on} to false
  134. broadcast "{@tag} &d&l| {@ChatZ.msg.off}"
  135. else:
  136. message "{@tag} &d&l| {@ChatZ.permission}"
  137. if argument 1 is "clear":
  138. if player has permission "ChatZ.admin":
  139. loop 100 times:
  140. broadcast ""
  141. broadcast "{@tag} &d&l| {@ChatZ.msg.clear}"
  142. else:
  143. message "{@tag} &d&l| {@ChatZ.permission}"
  144. if argument 1 is "reload":
  145. if player has permission "ChatZ.admin":
  146. execute console command "skript reload ChatZ"
  147. message "{@tag} &d&l| {@ChatZ.reload}"
  148. set {ChatZ.on} to true
  149. else:
  150. message "{@tag} &d&l| {@ChatZ.permission}"
  151. if argument 1 is "info":
  152. message "&5&l<---------------{@tag}&5&l--------------->"
  153. message "&e&l* &3Skrypt: &4&lChat&0&lZ"
  154. message "&e&l* &3Wersja: &a1.0"
  155. message "&e&l* &3Autor: &aHugoZvPlayZ"
  156. message "&5&l<---------------{@tag}&5&l--------------->"
  157.  
  158. #-------------------------------------------- Koniec skryptu --------------------------------------------#
  159. #------------------------------- © by HugoZvPlayZ - Strona: www.HvZ.ugu.pl ------------------------------#
Advertisement
Add Comment
Please, Sign In to add comment