Guest User

Untitled

a guest
Jan 20th, 2015
757
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.77 KB | None | 0 0
  1.  
  2. #Autor:ProMati14
  3. #Wersja: 1.0
  4. #Info: Skrypt jest do waszego uzytku!
  5. #mozecie zrobic z nim co chcecie
  6. #jestem dobrym czlowiekiem :D
  7. #jedyne o co prosze to nie handlowanie nim
  8. #reszta kod i wszystko jest dla waszego
  9. #mozecie zmieniac autora itd...
  10. #jedynie prosze o dzielenie sie skryptem
  11. #z innymi osobami mowiac o autorze
  12. #jako o mnie ;)
  13. #Wielkie dzieki Milej Zabawy
  14.  
  15.  
  16.  
  17.  
  18. #Opcje do gry Glownie prefixy rang oraz tagu
  19. options:
  20. tag: &8[&9ProEx&8]
  21. Grupa1: Pomocnik
  22. Grupa2: MegaPomocnik
  23. Grupa3: KidMod
  24. Grupa4: Mod
  25. Grupa5: Admin
  26. Grupa6: HeadAdmin
  27. Grupa7: Wlasciciel
  28. Grupa8: Gracz
  29.  
  30. #Linijka ktora po 1 dolaczeniu do gry daje graczowi Range Gracz
  31. on first join:
  32. set {grupa.{@Grupa8}.%player%} to true
  33.  
  34. #Komendy nadająca rangi
  35. command /nadaj [<player>] [<text>]:
  36. trigger:
  37. if {grupa.{@Grupa7}.%player%} is true:
  38. if arg 2 is "{@Grupa1}":
  39. set {grupa.{@Grupa1}.%arg 1%} to true
  40. send "{@tag} &4Nadales Graczowi &c%arg 1% &4uprawnienia &9{@Grupa1}" to player
  41. if arg 2 is "{@Grupa2}":
  42. set {grupa.{@Grupa2}.%arg 1%} to true
  43. send "{@tag} &4Nadales Graczowi &c%arg 1% &4uprawnienia &9{@Grupa2}" to player
  44. if arg 2 is "{@Grupa3}":
  45. set {grupa.{@Grupa3}.%arg 1%} to true
  46. send "{@tag} &4Nadales Graczowi &c%arg 1% &4uprawnienia &9{@Grupa3}" to player
  47. if arg 2 is "{@Grupa4}":
  48. set {grupa.{@Grupa4}.%arg 1%} to true
  49. send "{@tag} &4Nadales Graczowi &c%arg 1% &4uprawnienia &9{@Grupa4}" to player
  50. if arg 2 is "{@Grupa5}":
  51. set {grupa.{@Grupa5}.%arg 1%} to true
  52. send "{@tag} &4Nadales Graczowi &c%arg 1% &4uprawnienia &9{@Grupa5}" to player
  53. if arg 2 is "{@Grupa6}":
  54. set {grupa.{@Grupa6}.%arg 1%} to true
  55. send "{@tag} &4Nadales Graczowi &c%arg 1% &4uprawnienia &9{@Grupa6}" to player
  56. if arg 2 is "{@Grupa7}":
  57. set {grupa.{@Grupa7}.%arg 1%} to true
  58. send "{@tag} &4Nadales Graczowi &c%arg 1% &4uprawnienia &9{@Grupa7}" to player
  59.  
  60.  
  61.  
  62. #komenda automatycznie wyszukujaca range i degradujaca z niej <mozliwosci uzycia jako wlasciciel>
  63. command /degrad [<player>]:
  64. trigger:
  65. if {grupa.{@Grupa7}.%player%} is true:
  66. if {grupa.{@Grupa7}.%arg 1%} is true:
  67. set {grupa.{@Grupa7}.%arg 1%} to false
  68. send "{@tag} &4Zdegradowales &c%arg 1% &4z &9{@Grupa7}" to player
  69. stop
  70. if {grupa.{@Grupa7}.%player%} is true:
  71. if {grupa.{@Grupa6}.%arg 1%} is true:
  72. set {grupa.{@Grupa6}.%arg 1%} to false
  73. send "{@tag} &4Zdegradowales &c%arg 1% &4z &9{@Grupa6}" to player
  74. stop
  75. if {grupa.{@Grupa7}.%player%} is true:
  76. if {grupa.{@Grupa5}.%arg 1%} is true:
  77. set {grupa.{@Grupa5}.%arg 1%} to false
  78. send "{@tag} &4Zdegradowales &c%arg 1% &4z &9{@Grupa5}" to player
  79. stop
  80. if {grupa.{@Grupa7}.%player%} is true:
  81. if {grupa.{@Grupa4}.%arg 1%} is true:
  82. set {grupa.{@Grupa4}.%arg 1%} to false
  83. send "{@tag} &4Zdegradowales &c%arg 1% &4z &9{@Grupa4}" to player
  84. stop
  85. if {grupa.{@Grupa3}.%player%} is true:
  86. if {grupa.{@Grupa3}.%arg 1%} is true:
  87. set {grupa.{@Grupa3}.%arg 1%} to false
  88. send "{@tag} &4Zdegradowales &c%arg 1% &4z &9{@Grupa3}" to player
  89. stop
  90. if {grupa.{@Grupa7}.%player%} is true:
  91. if {grupa.{@Grupa2}.%arg 1%} is true:
  92. set {grupa.{@Grupa2}.%arg 1%} to false
  93. send "{@tag} &4Zdegradowales &c%arg 1% &4z &9{@Grupa2}" to player
  94. stop
  95. if {grupa.{@Grupa7}.%player%} is true:
  96. if {grupa.{@Grupa1}.%arg 1%} is true:
  97. set {grupa.{@Grupa1}.%arg 1%} to false
  98. send "{@tag} &4Zdegradowales &c%arg 1% &4z &9{@Grupa1}" to player
  99. stop
  100. else:
  101. send "{@tag} &4Gracz &c%arg 1% &4Nie posiada tej rangi!"
  102. stop
  103. else:
  104. send "{@tag} &4Nie masz do tego uprawnien!"
  105. stop
  106.  
  107.  
  108. #Kod odpowiadajacy za prefixy na chacie
  109. on chat:
  110. if {grupa.{@Grupa8}.%player%} is true:
  111. cancel event
  112. broadcast "&8[&7{@Grupa8}&8] &7%player% &8>> &7%message%"
  113. if {grupa.{@Grupa7}.%player%} is true:
  114. cancel event
  115. broadcast "&8[&4{@Grupa7}&8] &7%player% &8>> &4%message%"
  116. if {grupa.{@Grupa6}.%player%} is true:
  117. cancel event
  118. broadcast "&8[&4{@Grupa6}&8] &7%player% &8>> &4%message%"
  119. if {grupa.{@Grupa5}.%player%} is true:
  120. cancel event
  121. broadcast "&8[&9{@Grupa5}&8] &7%player% &8>> &9%message%"
  122. if {grupa.{@Grupa4}.%player%} is true:
  123. cancel event
  124. broadcast "&8[&2{@Grupa4}&8] &7%player% &8>> &2%message%"
  125. if {grupa.{@Grupa3}.%player%} is true:
  126. cancel event
  127. broadcast "&8[&2{@Grupa3}&8] &7%player% &8>> &2%message%"
  128. if {grupa.{@Grupa2}.%player%} is true:
  129. cancel event
  130. broadcast "&8[&2{@Grupa2}&8] &7%player% &8>> &2%message%"
  131. if {grupa.{@Grupa1}.%player%} is true:
  132. cancel event
  133. broadcast "&8[&2{@Grupa1}&8] &7%player% &8>> &2%message%"
  134.  
  135.  
  136. #Reload Grupy 7 <Grupa 8 jest Neutralna>
  137. every 10 seconds:
  138. loop all players:
  139. if {grupa.{@Grupa7}.%loop-player%} is true:
  140. set {grupa.{@Grupa6}.%loop-player%} to false
  141. set {grupa.{@Grupa5}.%loop-player%} to false
  142. set {grupa.{@Grupa4}.%loop-player%} to false
  143. set {grupa.{@Grupa3}.%loop-player%} to false
  144. set {grupa.{@Grupa2}.%loop-player%} to false
  145. set {grupa.{@Grupa1}.%loop-player%} to false
  146. set {grupa.{@Grupa8}.%loop-player%} to false
  147. #Reload Grupy 6
  148. every 10 seconds:
  149. loop all players:
  150. if {grupa.{@Grupa6}.%loop-player%} is true:
  151. set {grupa.{@Grupa5}.%loop-player%} to false
  152. set {grupa.{@Grupa4}.%loop-player%} to false
  153. set {grupa.{@Grupa3}.%loop-player%} to false
  154. set {grupa.{@Grupa2}.%loop-player%} to false
  155. set {grupa.{@Grupa1}.%loop-player%} to false
  156. set {grupa.{@Grupa8}.%loop-player%} to false
  157. #Reload Grupy 5
  158. every 10 seconds:
  159. loop all players:
  160. if {grupa.{@Grupa5}.%loop-player%} is true:
  161. set {grupa.{@Grupa4}.%loop-player%} to false
  162. set {grupa.{@Grupa3}.%loop-player%} to false
  163. set {grupa.{@Grupa2}.%loop-player%} to false
  164. set {grupa.{@Grupa1}.%loop-player%} to false
  165. set {grupa.{@Grupa8}.%loop-player%} to false
  166. #Reload Grupy 4
  167. every 10 seconds:
  168. loop all players:
  169. if {grupa.{@Grupa4}.%loop-player%} is true:
  170. set {grupa.{@Grupa3}.%loop-player%} to false
  171. set {grupa.{@Grupa2}.%loop-player%} to false
  172. set {grupa.{@Grupa1}.%loop-player%} to false
  173. set {grupa.{@Grupa8}.%loop-player%} to false
  174. #Reload Grupy 3
  175. every 10 seconds:
  176. loop all players:
  177. if {grupa.{@Grupa3}.%loop-player%} is true:
  178. set {grupa.{@Grupa2}.%loop-player%} to false
  179. set {grupa.{@Grupa1}.%loop-player%} to false
  180. set {grupa.{@Grupa8}.%loop-player%} to false
  181. #Reload Grupy 2
  182. every 10 seconds:
  183. loop all players:
  184. if {grupa.{@Grupa2}.%loop-player%} is true:
  185. set {grupa.{@Grupa1}.%loop-player%} to false
  186. set {grupa.{@Grupa8}.%loop-player%} to false
  187. #Reload Grupy 1
  188. every 10 seconds:
  189. loop all players:
  190. if {grupa.{@Grupa1}.%loop-player%} is true:
  191. set {grupa.{@Grupa8}.%loop-player%} to false
  192. set {grupa.{@Grupa8}.%loop-player%} to false
  193.  
  194.  
  195.  
  196.  
  197.  
  198.  
  199.  
  200. #Podstawowe CMD <BONUS>
  201.  
  202.  
  203. command /oglos [<text>]:
  204. trigger:
  205. if {grupa.{@Grupa5}.%player%} is true:
  206. broadcast "%colored arg%"
  207. stop
  208. if {grupa.{@Grupa6}.%player%} is true:
  209. broadcast "%colored arg%"
  210. stop
  211. if {grupa.{@Grupa7}.%player%} is true:
  212. broadcast "%colored arg%"
  213. stop
  214. else:
  215. send "&4Nie masz do tego uprawnien!"
  216.  
  217.  
  218. command /w [<player>] [<text>]:
  219. trigger:
  220. send "%colored arg 2%" to arg 1
  221. send "&5Twoja wiadomosc zostala wyslana..." to player
  222.  
  223.  
  224. command /tp [<player>]:
  225. trigger:
  226. if {grupa.{@Grupa7}.%player%} is true:
  227. set {_tp} to location of arg 1
  228. teleport player to {_tp}
  229. if {grupa.{@Grupa6}.%player%} is true:
  230. set {_tp} to location of arg 1
  231. teleport player to {_tp}
  232. if {grupa.{@Grupa5}.%player%} is true:
  233. set {_tp} to location of arg 1
  234. teleport player to {_tp}
  235. if {grupa.{@Grupa4}.%player%} is true:
  236. set {_tp} to location of arg 1
  237. teleport player to {_tp}
Advertisement
Add Comment
Please, Sign In to add comment