mimikolaj

holopomaga4.sk

Dec 30th, 2014
219
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.88 KB | None | 0 0
  1. on join:
  2. if {ingame.%player%} is not set:
  3. set {ingame.%player%} to false
  4. command /lobby:
  5. trigger:
  6. if player is op:
  7. set {lobby} to location of player
  8. command /arenar:
  9. trigger:
  10. if player is op:
  11. set {arenar} to location of player
  12. command /arenab:
  13. trigger:
  14. if player is op:
  15. set {arenab} to location of player
  16. command /arenapvpr:
  17. trigger:
  18. if player is op:
  19. set {arenapvpr} to location of player
  20. command /arenapvpb:
  21. trigger:
  22. if player is op:
  23. set {arenapvpb} to location of player
  24. command /add:
  25. trigger:
  26. if player is op:
  27. add 1 to {players}
  28. command /remove:
  29. trigger:
  30. if player is op:
  31. add -1 to {players}
  32. command /join:
  33. trigger:
  34. if {ingame.%player%} is false:
  35. if {stage} is smaller than 6:
  36. if {players} is smaller than 7:
  37. clear player's inventory
  38. set {ingame.%player%} to true
  39. broadcast "&7+ %player% (%{players}%)"
  40. add -1 to {players}
  41. set {teams.%player%} to not set
  42. teleport player to {lobby}
  43. command /leave:
  44. trigger:
  45. if {ingame.%player%} is true:
  46. clear player's inventory
  47. set {ingame.%player%} to false
  48. broadcast "&7- %player% (%{players}%)"
  49. add 1 to {players}
  50. set {pt.%player%} to 0
  51. set {teams.%player} to not set
  52. on quit:
  53. make player execute command "/leave"
  54. set {teams.%player%} to not set
  55. every 1 second:
  56. if {stage} is 7:
  57. if {teamblue} is smaller than 1:
  58. broadcast "Red wygrali!"
  59. set {teamred} to 0
  60. set {teamblue} to 0
  61. set {stage} to 0
  62. set {czas} to 10
  63. set {czasgejm} to 300
  64. loop all players:
  65. set {teams.%loop-player%} to not set
  66. loop {teamredp::*}:
  67. add {pt.%loop-value%} to {pkt.%loop-value%}
  68. make loop-value execute command "/leave"
  69. clear {teamredp::*}
  70. clear {teambluep::*}
  71. else if {teamred} is smaller than 1:
  72. broadcast "Blue wygrali!"
  73. set {teamred} to 0
  74. set {teamblue} to 0
  75. set {stage} to 0
  76. set {czas} to 10
  77. set {czasgejm} to 300
  78. loop all players:
  79. set {teams.%loop-player%} to not set
  80. loop {teambluep::*}:
  81. add {pt.%loop-value%} to {pkt.%loop-value%}
  82. make loop-value execute command "/leave"
  83. clear {teamredp::*}
  84. clear {teambluep::*}
  85. if {players} is smaller than 5:
  86. set {stage} to 0
  87. set {czas} to 10
  88. set {czasgejm} to 300
  89. else if {players} is bigger than 5:
  90. if {stage} is 0:
  91. set {stage} to 1
  92. loop 5 times:
  93. add -1 to {czas}
  94. wait 1 second
  95. if {czas} is smaller than 6:
  96. if {stage} is 1:
  97. set {stage} to 2
  98. loop 2 times:
  99. add -1 to {czas}
  100. wait 1 second
  101. if {czas} is smaller than 4:
  102. if {stage} is 2:
  103. set {stage} to 3
  104. add -1 to {czas}
  105. wait 1 second
  106. if {czas} is smaller than 3:
  107. if {stage} is 3:
  108. set {stage} to 4
  109. add -1 to {czas}
  110. wait 1 second
  111. if {czas} is smaller than 2:
  112. if {stage} is 4:
  113. set {stage} to 5
  114. add -1 to {czas}
  115. wait 1 second
  116. if {czas} is smaller than 1:
  117. if {stage} is 5:
  118. set {playerscheck} to 0
  119. loop all players:
  120. if {teams.%loop-player%} is set:
  121. add 1 to {playerscheck}
  122. wait 5 ticks
  123. if {playerscheck} is {players}:
  124. set {stage} to 6
  125. loop all players:
  126. if {ingame.%loop-player%} is true:
  127. if {teams.%loop-player%} is 2:
  128. teleport loop-player to {arenar}
  129. if {teams.%loop-player%} is 1:
  130. teleport loop-player to {arenab}
  131. loop 300 times:
  132. add -1 to {czasgejm}
  133. loop all players:
  134. if {ingame.%loop-player%} is true:
  135. display "&lPozostaly czas: %{czasgejm}%" on bossbar with 100 percent by 1 seconds for loop-player
  136. wait 1 second
  137. if {czasgejm} is smaller than 1:
  138. if {stage} is 6:
  139. clear {serki::*}
  140. set {stage} to 7
  141. make server execute command "/saver regen arena1"
  142. loop all players:
  143. if {ingame.%loop-player%} is true:
  144. if {teams.%loop-player%} is 2:
  145. teleport loop-player to {arenapvpr}
  146. if {teams.%loop-player%} is 1:
  147. teleport loop-player to {arenapvpb}
  148. add loop-player to {serki::*}
  149. if {playerscheck} is smaller than {players}:
  150. broadcast "Odliczanie zrestartowane - ktos z graczy nie wybral team'u"
  151. set {stage} to 0
  152. on death of player:
  153. if {ingame.%player%} is true:
  154. remove player from {serki::*}
  155. set {ingame.%player%} to false
  156. add -1 to {players}
  157. set {pt.%player%} to 0
  158. set {teams.%player%} to not set
  159. on rightclick:
  160. if {ingame.%player%} is true:
  161. if block is red wool:
  162. if {teamred} is smaller than 4:
  163. if {teams.%player%} is 1:
  164. set {teams.%player%} to 2
  165. add player to {teamredp::*}
  166. remove player from {teambluep::*}
  167. add 1 to {teamred}
  168. add -1 to {teamblue}
  169. else {teams.%player%} is not set:
  170. set {teams.%player%} to 2
  171. add player to {teamredp::*}
  172. remove player from {teambluep::*}
  173. add 1 to {teamred}
  174. else if block is blue wool:
  175. if {teamblue} is smaller than 4:
  176. if {teams.%player%} is 2:
  177. set {teams.%player%} to 1
  178. add player to {teambluep::*}
  179. remove player from {teamredp::*}
  180. add 1 to {teamblue}
  181. add -1 to {teamred}
  182. else {teams.%player%} is not set:
  183. set {teams.%player%} to 1
  184. add player to {teambluep::*}
  185. remove player from {teamredp::*}
  186. add 1 to {teamblue}
  187. on damage:
  188. if {teams.%victim%} is 1:
  189. if {teams.%attacker%} is 1:
  190. cancel event
  191. if {teams.%victim%} is 2:
  192. if {teams.%attacker%} is 2:
  193. cancel event
Advertisement
Add Comment
Please, Sign In to add comment