Advertisement
Guest User

Untitled

a guest
Jun 23rd, 2017
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.97 KB | None | 0 0
  1. #-------------------------------------------------#
  2. # #
  3. # Autor: Happy.GFX #
  4. # Wersja: 1.0 #
  5. # #
  6. #-------------------------------------------------#
  7.  
  8.  
  9. #-----------#
  10. # OPCJE #
  11. #-----------#
  12.  
  13. options:
  14.  
  15. prefix: &8[&9Happy&f&lChat&8]
  16.  
  17. ip: TWOJEIP.PL
  18.  
  19. ts: TS.TWOJEIP.PL
  20.  
  21. www: WWW.TWOJEIP.PL
  22.  
  23. k1: &8
  24.  
  25. k2: &7
  26.  
  27. k3: &9
  28.  
  29.  
  30. #----------#
  31. # MOTD #
  32. #----------#
  33.  
  34. on join:
  35. loop 100 times:
  36. send " "
  37. loop 1 times:
  38. send "{@k2}*{@k2}&m-----&r{@k2}*{@k1} Witaj na {@k3}{@ip}! {@k2}*{@k2}&m-----&r{@k2}*"
  39. send ""
  40. send ""
  41. send "{@k1}» &fNasz ts to: {@k3}{@ts}!."
  42. send "{@k1}» &fNasza strona: {@k3}{@www}!."
  43. send ""
  44. send ""
  45. send "{@k2}*{@k2}&m-----&r{@k2}* {@k2}*{@k2}&m-----&r{@k2}* {@k2}*{@k2}&m-----&r{@k2}* {@k2}*{@k2}&m-----&r{@k2}*"
  46.  
  47. command /c [<text>] [<text>]:
  48. trigger:
  49.  
  50. #---------------#
  51. # CHAT CLEAR #
  52. #---------------#
  53.  
  54. if arg 1 is "czysc" or "cc" or "clear":
  55. if arg 2 is set:
  56. loop 100 times:
  57. send " " to all players
  58. loop 1 times:
  59. send "{@prefix} &7Chat zostal wyczyszczony przez: {@k3}%player%" to all players
  60. send "{@k1}» {@k3}Powód: {@k2}%arg 2%" to all players
  61. send "" to all players
  62. else:
  63. loop 100 times:
  64. send " " to all players
  65. loop 1 times:
  66. send "{@prefix} {@k2}Chat zostal wyczyszczony przez: {@k3}%player%" to all players
  67. send " " to all players
  68.  
  69. #---------------#
  70. # CHAT OFF #
  71. #---------------#
  72.  
  73. if arg 1 is "off" or "wylacz":
  74. if {happychat} is false:
  75. send " " to all players
  76. send "{@prefix} {@k2}Chat jest juz &c&lwylaczony!" to all players
  77. send " " to all players
  78. else:
  79. set {happychat} to false
  80. loop 5 times:
  81. send " " to all players
  82. loop 1 times:
  83. send "{@prefix} {@k2}Chat zostal &c&lwylaczony {@k2}przez: {@k3}%player%" to all players
  84. loop 2 times:
  85. send " " to all players
  86.  
  87. #----------------#
  88. # CHAT ON #
  89. #----------------#
  90.  
  91. if arg 1 is "on" or "wlacz":
  92. if {happychat} is true:
  93. send " " to all players
  94. send "{@prefix} {@k2}Chat jest juz &a&lwlaczony!" to all players
  95. send " " to all players
  96. else:
  97. set {happychat} to true
  98. loop 5 times:
  99. send " " to all players
  100. loop 1 times:
  101. send "{@prefix} {@k2}Chat zostal &a&lwlaczony {@k2}przez: {@k3}%player%" to all players
  102. loop 2 times:
  103. send " " to all players
  104.  
  105. #--------------------#
  106. # CHAT RELOAD #
  107. #--------------------#
  108.  
  109. if argument 1 is "reload":
  110. if player has permission "HappyChat.Reload":
  111. execute console command "skript reload HappyChat"
  112. message "{@prefix} &7Skript &9HappyChat &apoprawnie uruchomiony!"
  113. else:
  114. message "&4BLAD: &cNie masz permisji: &8(&7HappyChat.Reload&8)"
  115.  
  116. #-------------------#
  117. # CHAT POMOC #
  118. #-------------------#
  119.  
  120. if arg 1 is "info" or "pomoc":
  121. if {happychat} is true:
  122. send "{@k2}*{@k2}&m-----&r{@k2}* {@prefix} {@k2}*{@k2}&m-----&r{@k2}*"
  123. send ""
  124. send "{@k1}» {@k3}/c on {@k1}- {@k2}Wlacza chat!"
  125. send "{@k1}» {@k3}/c off {@k1}- {@k2}Wylacza chat!"
  126. send "{@k1}» {@k3}/c cc {@k1}- {@k2}Czysci chat!"
  127. send "{@k1}» {@k3}/c reload {@k1}- {@k2}Przeladowywuje skrypt!"
  128. send "{@k1}» {@k3}/c info {@k1}- {@k2}Informacje o skrypcie!"
  129. send ""
  130. send "{@k2}*{@k2}&m-----&r{@k2}* {@prefix} {@k2}*{@k2}&m-----&r{@k2}*"
  131.  
  132. #-------------------#
  133. # CHAT MENU #
  134. #-------------------#
  135.  
  136. if arg 1 is not set:
  137. open chest with 1 rows named "&5&lCHAT &e&lMenu:" to player
  138. format slot 1 of player with 1 of blue wool named "&6» &eAUTOR SKRYPTU" to close then run [make player execute command "/chat autor"]
  139. format slot 2 of player with 2 of blue wool named "&6» &bWYCZYSC CZAT" to close then run [make player execute command "/chat clear"]
  140. format slot 6 of player with 3 of blue wool named "&6» &cWYLACZ CZAT" to close then run [make player execute command "/chat off"]
  141. format slot 7 of player with 4 of blue wool named "&6» &aWLACZ CHAT" to close then run [make player execute command "/chat on"]
  142. stop
  143.  
  144. #----------------#
  145. # ON LOAD #
  146. #----------------#
  147.  
  148. on load:
  149. send "" to console
  150. send "" to console
  151. send "" to console
  152. send "{@prefix} &7Skript &9HappyChat &apoprawnie uruchomiony!" to console
  153. send "{@prefix} &7Wykonany przez &9Happy.GFX&a!" to console
  154. send "" to console
  155. send "" to console
  156. send "" to console
  157.  
  158. #---------------#
  159. # CHAT OFF #
  160. #---------------#
  161.  
  162. on chat:
  163. if {happychat} is false:
  164. player don't have permissions "happychat.*" or "happychat.spam":
  165. cancel event
  166. send "{@prefix} {@k1}Chat jest &c&lwylaczony!"
  167.  
  168. #----------------#
  169. # CHAT LOGI #
  170. #----------------#
  171.  
  172. on chat:
  173. log "%player%: %message%" to "logi-chatu.log"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement