Guest User

SkriptChat by Blezur

a guest
Feb 22nd, 2014
52
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.04 KB | None | 0 0
  1. variables:
  2. {chat.global} = true
  3. {chat.vip} = true
  4. {chat.%player%} = true
  5. {ograniczenie} = true
  6. {chattime.%player%} = 0
  7. {chat.tryb} = "&ajest wlaczony"
  8. {chat.ograniczenie.vip} = "&c to 2 sekundy"
  9. {chat.ograniczenie.gracz} = "&c to 4 sekundy"
  10. {chat.ograniczenie} = "&ajest wlaczone"
  11. command /chat [<text>] [<text>]:
  12. trigger:
  13. if player has permissions "chat.admin":
  14. if arg 1 is set:
  15. if arg 1 is "global":
  16. if arg 2 is set:
  17. if arg 2 is "on" or "tak" or "wlacz":
  18. if {chat.global} is false:
  19. set {chat.vip} to true
  20. set {chat.global} to true
  21. set {chat.tryb} to "&ajest wlaczony"
  22. broadcast "&aChat zostal wlaczony przez administracje!"
  23. stop
  24. else:
  25. send "&cChat jest juz wlaczony!"
  26. if arg 2 is "off" or "nie" or "wylacz":
  27. if {chat.global} is true:
  28. set {chat.vip} to false
  29. set {chat.global} to false
  30. set {chat.tryb} to "&cjest wylaczony"
  31. broadcast "&cChat zostal wylaczony przez administracje!"
  32. stop
  33. if {chat.global} is false:
  34. send "&cChat jest juz wylaczony!"
  35. if arg 2 is not "on" or "tak" or "wlacz" or "off" or "nie" or "wylacz":
  36. send "&cPoprawne uzycie: &6/chat global &aon&6/&coff"
  37. if arg 2 is not set:
  38. send "&cPoprawne uzycie: &6/chat global &aon&6/&coff"
  39. if arg 1 is "vip":
  40. if arg 2 is set:
  41. if arg 2 is "on" or "tak" or "wlacz":
  42. if {chat.global} is false:
  43. if {chat.vip} is false:
  44. set {chat.vip} to true
  45. set {chat.tryb} to "&6jest dostepny tylko dla VIPów"
  46. send "&6Chat dla vip zostal wlaczony!"
  47. stop
  48. if {chat.vip} is true:
  49. send "&cChat dla vip jest juz &awlaczony!"
  50. if {chat.global} is true:
  51. send "&cChat aktualnie jest wlaczony!"
  52. if arg 2 is "off" or "nie" or "wylacz":
  53. if {chat.global} is false:
  54. if {chat.vip} is true:
  55. set {chat.vip} to false
  56. set {chat.tryb} to "&cjest wylaczony"
  57. send "&6Chat dla vip zostal &cwylaczony!"
  58. stop
  59. if {chat.vip} is false:
  60. send "&cChat dla vip jest juz wylaczony!"
  61. if {chat.global} is true:
  62. send "&cChat globalny aktualnie jest wlaczony!"
  63. if arg 2 is not "on" or "tak" or "wlacz" or "off" or "nie" or "wylacz":
  64. send "&cPoprawne uzycie: &6/chat global &aon&6/&coff"
  65. if arg 2 is not set:
  66. send "&cPoprawne uzycie: &6/chat global &aon&6/&coff"
  67. if arg 1 is "ograniczenie":
  68. if arg 2 is set:
  69. if arg 2 is "tak" or "on" or "wlacz":
  70. if {ograniczenie} is false:
  71. set {ograniczenie} to true
  72. set {chat.ograniczenie.vip} to "&cto 2 sekundy"
  73. set {chat.ograniczenie.gracz} to "&c to 4 sekundy"
  74. set {chat.ograniczenie} to "&ajest wlaczone"
  75. broadcast "&aOgraniczenie zostalo wlaczone!"
  76. stop
  77. if {ograniczenie} is true:
  78. send "&cOgraniczenie jest juz wlaczone!"
  79. if arg 2 is "nie" or "off" or "wylacz":
  80. if {ograniczenie} is true:
  81. set {ograniczenie} to false
  82. set {chat.ograniczenie.vip} to "&caktulanie wylaczone"
  83. set {chat.ograniczenie.gracz} to "&caktulanie wylaczone"
  84. set {chat.ograniczenie} to "&cjest wylaczone"
  85. broadcast "&cOgraniczenie zostalo wylaczone!"
  86. stop
  87. if {ograniczenie} is false:
  88. send "&cOgraniczenie jest wylaczone!"
  89. if arg 2 is not "tak" or "on" or "wlacz" or "nie" or "off" or "wylacz":
  90. send "&cPoprawne uzycie: &6/chat ograniczenie &aon&6/&coff"
  91. if arg 2 is not set:
  92. send "&cPoprawne uzycie: &6/chat ograniczenie &aon&6/&coff"
  93. if arg 1 is "cc" or "czysc" or "wyczysc":
  94. loop 100 times:
  95. broadcast "&k"
  96. broadcast "&cChat zostal wyczyszczony przez administracje."
  97. if arg 1 is "p" or "help" or "pomoc":
  98. send "&6/chat global &aon&6/&coff &7- &eWlaczanie/wylaczanie chatu calkowicie."
  99. send "&6/chat vip &aon&6/&coff &7- &eWlaczanie/wylaczanie chatu dla vip (musi byc wylaczony chat global."
  100. send "&6/chat ograniczenie &aon&6/&coff &7- &eWlaczanie/wylaczanie ograniczenia na chacie."
  101. send "&6/chat czysc &7- &eCzyszczenie chatu."
  102. send "&6/chat pomoc &7- &ePomoc skryptu."
  103. if arg 1 is not "ograniczenie" or "global" or "vip" or "cc" or "czysc" or "wyczysc" or "help" or "pomoc" or "p":
  104. send "&6/chat global &aon&6/&coff &7- &eWlaczanie/wylaczanie chatu calkowicie."
  105. send "&6/chat vip &aon&6/&coff &7- &eWlaczanie/wylaczanie chatu dla vip (musi byc wylaczony chat global."
  106. send "&6/chat ograniczenie &aon&6/&coff &7- &eWlaczanie/wylaczanie ograniczenia na chacie."
  107. send "&6/chat czysc &7- &eCzyszczenie chatu."
  108. send "&6/chat pomoc &7- &ePomoc skryptu."
  109. else:
  110. send "&8&m------------------"
  111. send "&cChat aktualnie %{chat.tryb}%"
  112. send "&cOgraniczenie aktualnie jest %{chat.ograniczenie}%"
  113. send "&cOgraniczenie dla VIP %{chat.ograniczenie.vip}%"
  114. send "&cOgraniczenie dla gracza %{chat.ograniczenie.gracz}%"
  115. send "&8&m------------------"
  116. else:
  117. send "&8&m------------------"
  118. send "&cChat aktualnie %{chat.tryb}%"
  119. send "&cOgraniczenie aktualnie jest %{chat.ograniczenie}%"
  120. send "&cOgraniczenie dla VIP %{chat.ograniczenie.vip}%"
  121. send "&cOgraniczenie dla gracza %{chat.ograniczenie.gracz}%"
  122. send "&8&m------------------"
  123. on chat:
  124. if player has permissions "chat.nolimit" or "chat.admin":
  125. stop
  126. else:
  127. if {chat.vip} is true:
  128. if player has permissions "chat.vip":
  129. if {ograniczenie} is true:
  130. if {chat.%player%} is true:
  131. set {chat.%player%} to false
  132. set {chattime.%player%} to 2
  133. wait 1 second
  134. remove 1 from {chattime.%player%}
  135. wait 1 second
  136. remove 1 from {chattime.%player%}
  137. set {chat.%player%} to true
  138. else:
  139. cancel event
  140. if {chattime.%player%} is 2:
  141. send "&cMozesz napisac za &6%{chattime.%player%}% &csekundy!"
  142. if {chattime.%player%} is 1:
  143. send "&cMozesz napisac za &6%{chattime.%player%}% &csekunde!"
  144. else:
  145. if {ograniczenie} is true:
  146. if {chat.global} is true:
  147. if {chat.%player%} is true:
  148. set {chat.%player%} to false
  149. set {chattime.%player%} to 5
  150. wait 1 second
  151. remove 1 from {chattime.%player%}
  152. wait 1 second
  153. remove 1 from {chattime.%player%}
  154. wait 1 second
  155. remove 1 from {chattime.%player%}
  156. wait 1 second
  157. remove 1 from {chattime.%player%}
  158. wait 1 second
  159. remove 1 from {chattime.%player%}
  160. set {chat.%player%} to true
  161. else:
  162. cancel event
  163. if {chattime.%player%} is 2 or 3 or 4:
  164. send "&cMozesz napisac za &6%{chattime.%player%}% &csekundy!"
  165. if {chattime.%player%} is 1:
  166. send "&cMozesz napisac za &6%{chattime.%player%}% &csekunde!"
  167. else:
  168. cancel event
  169. send "&cPisanie na chacie zostalo zablokowane dla graczy!"
  170. send "&aAktualnie pisac mogą rangi &6VIP&c!"
  171. else:
  172. cancel event
  173. send "&cPisanie na chacie zostalo wylaczone!"
Advertisement
Add Comment
Please, Sign In to add comment