RekitHd

Rchat

Sep 7th, 2014
281
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.63 KB | None | 0 0
  1. variables:
  2. {Rchat.off} = false
  3. {Rchat.vip} = false
  4. {Rchat.eye.%player%} = false
  5. options:
  6. chat: &7%display name of player%&8: &7%message%
  7. tag: &8[&3Rchat&8]
  8. tag2: &8&l»&m &8&l[&3&lRchat&8&l]&m &8&l«
  9. command /Rchat [<text>] [<text>] [<text>]:
  10. aliases: chat, rc
  11. trigger:
  12. if arg 1 is not "on" or "off" or "clear" or "vip" or "eye" or "cenzura" or "info" or "reload":
  13. send "{@tag} &7Poprawne uzycie: &3/Rchat"
  14. stop
  15. if arg 2 is not "on" or "off" or "dodaj" or "usun" or "lista":
  16. send "{@tag} &7Poprawne uzycie: &3/Rchat"
  17. stop
  18. if player has permission "Rchat.admin.*":
  19. if arg 1 is not set:
  20. send "{@tag2}"
  21. send "&8&l» &3/Rchat on/off &8- &7Wlacza/Wylacza Chat"
  22. send "&8&l» &3/Rchat clear &8- &7Czysci Chat"
  23. send "&8&l» &3/Rchat vip on/off &8- &7Wlacza/Wylacza chat dla Vip"
  24. send "&8&l» &3/Rchat eye &8- &7Wlacza/Wylacza wszystko widzace oko"
  25. send "&8&l» &3&m/Rchat cenzura dodaj <slowo>&8 - &7&mDodaje slowo do listy cenzurowanych"
  26. send "&8&l» &3&m/Rchat cenzura usun <slowo>&8 - &7&mUsuwa slowo z listy cenzurowanych"
  27. send "&8&l» &3&m/Rchat cenzura lista &8- &7&mLista slow cenzurowanych"
  28. send "&8&l» &3/Rchat info &8- &7Informacje na temamt Skryptu/Autora"
  29. send "&8&l» &3/Rchat reload &8- &7Przeladowanie Skryptu"
  30. stop
  31. else:
  32. send "{@tag2}"
  33. send "&8&l» &7Autorem skryptu jest &3RekitHD"
  34. send "&8&l» &7Skype autora &3piter3419"
  35. send "&8&l» &7Wersja &30.9 [Beta]"
  36. stop
  37. if player has permission "Rchat.admin.on" or "Rchat.admin.*":
  38. if arg 1 is "on":
  39. if {Rchat.off} is true:
  40. set {Rchat.off} to false
  41. loop 100 times:
  42. broadcast " "
  43. broadcast " {@tag}"
  44. broadcast "&7Chat zostal &aWlaczony &7przez &3&n%player%"
  45. stop
  46. else:
  47. send "{@tag} &7Koles ale chat jest juz &aWlaczony&7!"
  48. stop
  49. if player has permission "Rchat.admin.off" or "Rchat.admin.*":
  50. if arg 1 is "off":
  51. if {Rchat.off} is false:
  52. set {Rchat.off} to true
  53. loop 100 times:
  54. broadcast " "
  55. broadcast " {@tag}"
  56. broadcast "&7Chat zostal &4Wylaczony &7przez &3&n%player%"
  57. else:
  58. send "{@tag} &7Koles ale chat jest juz &4Wylaczony&7!"
  59. stop
  60. if player has permission "Rchat.admin.clear" or "Rchat.admin.*":
  61. if arg 1 is "clear":
  62. loop 100 times:
  63. broadcast " "
  64. broadcast " {@tag}"
  65. broadcast "&7Chat zostal wyczyszczony przez &3&n%player%"
  66. stop
  67. if player has permission "Rchat.admin.vip" or "Rchat.admin.*":
  68. if arg 1 is "vip":
  69. if arg 2 is not set:
  70. send "{@tag} &7Poprawne uzycie: &3/Rchat vip on/off"
  71. stop
  72. if arg 2 is "on":
  73. if {Rchat.off} is false:
  74. if {Rchat.vip} is false:
  75. send "{@tag} &7Koles ale chat glowny jest &aWlaczony&7!"
  76. stop
  77. else:
  78. send "{@tag} &7Koles ale chat glowny jest &aWlaczony&7!"
  79. stop
  80. if {Rchat.off} is true:
  81. if {Rchat.vip} is false:
  82. set {Rchat.vip} to true
  83. broadcast "{@tag} &7Chat dla &eVIP &7zostal &aWlaczony &7przez &3&n%player%"
  84. stop
  85. else:
  86. send "{@tag} &7Koles ale chat dla &eVIP &7jest juz &aWlaczony&7!"
  87. stop
  88. if arg 2 is "off":
  89. if {Rchat.off} is true:
  90. if {Rchat.vip} is true:
  91. set {Rchat.vip} to false
  92. broadcast "{@tag} &7Chat dla &eVIP &7zostal &4Wylaczony &7przez &3&n%player%"
  93. stop
  94. else:
  95. send "{@tag} &7Koles ale chat dla &eVIP &7jest juz &4Wylaczony&7!"
  96. stop
  97. if {Rchat.off} is false:
  98. if {Rchat.vip} is true:
  99. set {Rchat.vip} to false
  100. broadcast "{@tag} &7Chat dla &eVIP &7zostal &4Wylaczony &7przez &3&n%player%"
  101. stop
  102. else:
  103. send "{@tag} &7Koles ale chat dla &eVIP &7jest juz &4Wylaczony&7!"
  104. stop
  105. if player has permission "Rchat.admin.eye" or "Rchat.admin.*":
  106. if arg 1 is "eye":
  107. if {Rchat.eye.%player%} is false:
  108. set {Rchat.eye.%player%} to true
  109. send "{@tag} &aWlaczyles &7wszystko widzace oko!"
  110. stop
  111. else:
  112. set {Rchat.eye.%player%} to false
  113. send "{@tag} &4Wylaczyles &7wszystko widzace oko!"
  114. stop
  115. if player has permission "Rchat.admin.cenzura" or "Rchat.admin.*":
  116. if arg 1 is "cenzura":
  117. if arg 2 is not set:
  118. send "{@tag} &7Poprawne uzycie: &3/Rchat cenzura dodaj/usun/lista"
  119. stop
  120. if arg 2 is "dodaj":
  121. send "{@tag} &7Cenzure wprowadze w kolejnym update"
  122. stop
  123. if arg 2 is "usun":
  124. send "{@tag} &7Cenzure wprowadze w kolejnym update"
  125. stop
  126. if arg 2 is "lista":
  127. send "{@tag} &7Cenzure wprowadze w kolejnym update"
  128. stop
  129. if player has permission "Rchat.admin.info" or "Rchat.admin.*":
  130. if arg 1 is "info":
  131. send "{@tag2}"
  132. send "&8&l» &7Autorem skryptu jest &3RekitHD"
  133. send "&8&l» &7Skype autora &3piter3419"
  134. send "&8&l» &7Wersja &30.9 [Beta]"
  135. stop
  136. if player has permission "Rchat.admin.reload" or "Rchat.admin.*":
  137. if arg 1 is "reload":
  138. send "{@tag} &7Przeladowywanie..."
  139. execute console command "/sk reload %script%"
  140. wait 1 second
  141. send "{@tag} &7Pomyslnie przeladowano!"
  142. stop
  143. on command:
  144. loop all players:
  145. if {Rchat.eye.%loop-player%} is true:
  146. loop-player has permission "Rchat.admin.eye" or "Rchat.admin.*":
  147. send "{@tag} &c%player% &7Wywolal komende: &c/%command% %arguments%" to loop-player
  148. on chat:
  149. if {Rchat.off} is false:
  150. if {Rchat.vip} is false:
  151. set {_chat} to "{@chat}"
  152. replace all "{DISPLAY}" with "%display name of player%" in {_chat}
  153. replace all "{MESSAGE}" with "%message%" in {_chat}
  154. send "%{_chat}%" to all players
  155. cancel event
  156. if {Rchat.vip} is true:
  157. if player has permission "Rchat.vip":
  158. set {_vip} to "{@chat}"
  159. replace all "{DISPLAY}" with "%display name of player%" in {_vip}
  160. replace all "{MESSAGE}" with "%message%" in {_vip}
  161. send "%{_vip}%" to all players
  162. cancel event
  163. if {Rchat.off} is true:
  164. if {Rchat.vip} is true:
  165. if player has permission "Rchat.vip":
  166. set {_vip} to "{@chat}"
  167. replace all "{DISPLAY}" with "%display name of player%" in {_vip}
  168. replace all "{MESSAGE}" with "%message%" in {_vip}
  169. send "%{_vip}%" to all players
  170. cancel event
  171. else:
  172. send "{@tag} &7Chat jest &4Wylaczony&7!"
  173. cancel event
  174. if {Rchat.vip} is false:
  175. if player has permission "Rchat.admin.*":
  176. set {_admin} to "{@chat}"
  177. replace all "{DISPLAY}" with "%display name of player%" in {_admin}
  178. replace all "{MESSAGE}" with "%message%" in {_admin}
  179. send "%{_admin}%" to all players
  180. cancel event
  181. else:
  182. cancel event
  183. send "{@tag} &7Chat jest &4Wylaczony&7!"
Advertisement
Add Comment
Please, Sign In to add comment