Advertisement
zGhol

Untitled

Feb 28th, 2017
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.86 KB | None | 0 0
  1. # ──────────────────────────────────────── #
  2. # ● zGEventos ● #
  3. # - Skript De Eventos Parkour e Corrida #
  4. # By » zGнσl™ #
  5. # Crédito: Ghost #
  6. # #
  7. # ──────────────────────────────────────── #
  8.  
  9. command /setlobby:
  10. trigger:
  11. if player has permission "evento.admin":
  12. send "&6&lEvento &8&l>> &fVocê setou o local de espera do evento."
  13. set {Evento.lobby} to location of player
  14. stop
  15.  
  16. command /setinicio:
  17. trigger:
  18. if player has permission "evento.admin":
  19. send "&6&lEvento &8&l>> &fVocê setou o local de inicio do evento"
  20. set {Evento.inicio} to location of player
  21. stop
  22.  
  23. command /setsaida:
  24. trigger:
  25. if player has permission "evento.admin":
  26. set {Evento.saida} to location of player
  27. send "&6&lEvento &8&l>> &fVocê setou o local de saida do evento."
  28. stop
  29.  
  30. command /parkour:
  31. trigger:
  32. if {EventoParkour.Iniciou} is true:
  33. if {Evento.lobby} is set:
  34. teleport player to {Evento.lobby}
  35. send "&6&lEvento &8&l>> &fVocê Entrou No Evento Parkour!"
  36. add player to {JogadoresParkour::*}
  37. set the player's gamemode to survival
  38. add 1 to {JogadoresM::*}
  39. stop
  40. else:
  41. send "&6&lEvento &8&l>> &fAs warps não estão setadas!"
  42. else:
  43. send "&6&lEvento &8&l>> &fO Evento parkour não está aberto!"
  44.  
  45. command /corrida:
  46. trigger:
  47. if {EventoCorrida.Iniciou} is true:
  48. if {Evento.lobby} is set:
  49. teleport player to {Evento.lobby}
  50. send "&6&lEvento &8&l>> &fVocê Entrou No Evento Corrida!"
  51. add player to {JogadoresCorrida::*}
  52. set the player's gamemode to survival
  53. add 1 to {JogadoresM2::*}
  54. stop
  55. else:
  56. send "&6&lEvento &8&l>> &fAs warps não estão setadas!"
  57. else:
  58. send "&6&lEvento &8&l>> &fO Evento parkour não está aberto!"
  59.  
  60. command /iniciar [<text>]:
  61. permission: evento.admin
  62. trigger:
  63. if arg 1 is not set:
  64. send "&6&lEvento &8&l>> &fUse /iniciar corrida/parkour."
  65. stop
  66. if arg 1 is "corrida":
  67. if {Evento.lobby} is set:
  68. if {Evento.inicio} is set:
  69. if {Evento.saida} is set:
  70. set {EventoCorrida.Iniciou} to true
  71. set {Placa.Evento} to true
  72. set {EventoCorrida.Tp} to true
  73. broadcast " "
  74. broadcast "&6&lEvento &8&l>> &fO Evento Corrida Foi Iniciado!"
  75. broadcast "&6&lEvento &8&l>> &fPara Participar use /corrida"
  76. broadcast " "
  77. wait 20 seconds
  78. broadcast " "
  79. broadcast "&6&lEvento &8&l>> &fO Evento Corrida Foi Fechado!"
  80. broadcast " "
  81. set {EventoCorrida.Iniciou} to false
  82. wait 10 seconds
  83. broadcast " "
  84. broadcast "&6&lEvento &8&l>> &fO Evento Corrida Vai Iniciar em 20 segundos!!"
  85. broadcast " "
  86. wait 20 seconds
  87. if {EventoCorrida.Tp} is true:
  88. if {JogadoresM2::*} = 5:
  89. loop {JogadoresCorrida::*}:
  90. teleport loop-value to {Evento.inicio}
  91. stop
  92. else:
  93. send "&6&lEvento &8&l>> &fAs warps não estão setadas!"
  94. stop
  95. else:
  96. send "&6&lEvento &8&l>> &fAs warps não estão setadas!"
  97. stop
  98. else:
  99. send "&6&lEvento &8&l>> &fAs warps não estão setadas!"
  100. stop
  101. if arg 1 is "parkour":
  102. if {Evento.lobby} is set:
  103. if {Evento.inicio} is set:
  104. if {Evento.saida} is set:
  105. set {EventoParkour.Iniciou} to true
  106. set {Placa.Evento} to true
  107. set {EventoParkour.Tp} to true
  108. broadcast " "
  109. broadcast "&6&lEvento &8&l>> &fO Evento Parkour Foi Iniciado!"
  110. broadcast "&6&lEvento &8&l>> &fPara Participar use /parkour"
  111. broadcast " "
  112. wait 20 seconds
  113. broadcast " "
  114. broadcast "&6&lEvento &8&l>> &fO Evento Parkour Foi Fechado!"
  115. broadcast " "
  116. set {EventoParkour.Iniciou} to false
  117. wait 10 seconds
  118. broadcast " "
  119. broadcast "&6&lEvento &8&l>> &fO Evento Parkour Vai Iniciar em 20 segundos!!"
  120. broadcast " "
  121. wait 20 seconds
  122. if {EventoParkour.Tp} is true:
  123. if {JogadoresM::*} = 5:
  124. loop {JogadoresParkour::*}:
  125. teleport loop-value to {Evento.inicio}
  126. else:
  127. send "&6&lEvento &8&l>> &fAs warps não estão setadas!"
  128. stop
  129. else:
  130. send "&6&lEvento &8&l>> &fAs warps não estão setadas!"
  131. stop
  132. else:
  133. send "&6&lEvento &8&l>> &fAs warps não estão setadas!"
  134. stop
  135.  
  136. on right click on sign:
  137. if line 1 is "&6&lParkour":
  138. if line 2 is "&aVocê Ganhou!":
  139. if line 3 is "&aCLICKE AQUI!":
  140. if {Placa.Evento} is true:
  141. if {Evento.saida} is set:
  142. broadcast " "
  143. broadcast "&6&lEvento &8&l>> &fO Player &6%player% &fvenceu o evento Parkour!"
  144. broadscat " "
  145. set {Placa.Evento} to false
  146. stop
  147. else:
  148. send "&6&lEvento &8&l>> &fAs warps não estão setadas!"
  149. stop
  150. else:
  151. send "&6&lEvento &8&l>> &fJá tivemos um ganhador!"
  152. stop
  153.  
  154. on right click on sign:
  155. if line 1 is "&6&lCorrida":
  156. if line 2 is "&aVocê Ganhou!":
  157. if line 3 is "&aCLICKE AQUI!":
  158. if {Placa.Evento} is true:
  159. if {Evento.saida} is set:
  160. broadcast " "
  161. broadcast "&6&lEvento &8&l>> &fO Player &6%player% &fvenceu o evento Corrida!"
  162. broadscat " "
  163. set {Placa.Evento} to false
  164. stop
  165. else:
  166. send "&6&lEvento &8&l>> &fAs warps não estão setadas!"
  167. stop
  168. else:
  169. send "&6&lEvento &8&l>> &fJá tivemos um ganhador!"
  170. stop
  171.  
  172. on sign change:
  173. if line 1 is "Corrida":
  174. if player has permission "evento.admin":
  175. set the line 2 to "&aVocê Venceu!"
  176. set the line 3 to "&aCLICKE AQUI!"
  177. stop
  178.  
  179. on sign change:
  180. if line 1 is "Parkour":
  181. if player has permission "evento.admin":
  182. set the line 2 to "&aVocê Venceu!"
  183. set the line 3 to "&aCLICKE AQUI!"
  184. stop
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement