NelGossem_

Untitled

Jun 30th, 2015
289
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.24 KB | None | 0 0
  1. # __________.__ __ .__ __
  2. # \______ \__|/ |_ ____ | |__ ____ __ ___/ |_
  3. # | ___/ \ __\/ ___\| | \ / _ \| | \ __\
  4. # | | | || | \ \___| Y ( <_> ) | /| |
  5. # |____| |__||__| \___ >___| /\____/|____/ |__|
  6. # \/ \/
  7.  
  8. #=============================================#
  9. # Pitchout by NelGossem_ #
  10. #GoldenGames server : pvp.goldengames.fr:27470#
  11. #=============================================#
  12.  
  13. options:
  14. pitchout.minplayer: 3 #Nombre de joueurs requit pour débuter la partie !
  15. {lifes.%player%}: 3 #Nombre de vie par joueurs
  16.  
  17. variables: #NE PAS CHANGER
  18. {game.%player%.join} = false
  19. {game.start} = false
  20. {game.slots} = 0
  21.  
  22. #Commandes
  23. command /pitchoutadmin <text> [<text>]:
  24. permission: pitchoutadmin.perm
  25. trigger:
  26. if arg 1 is equal to "help":
  27. message "&6========= &4Pitchout by NelGossem_ &6========="
  28. message "&4> &r/pitchout help &f- Voir la liste des commandes joueurs"
  29. message "&4> &r/pitchoutadmin help &f- Voir la liste des commandes administrateurs"
  30. message "&4> &r/pitchoutadmin setlobbyspawn &f- Définir le point de spawn de la salle d attente"
  31. message "&4> &r/setlocation 1/2/3 à 10 &f- Rajouter un point de spawn dans la map"
  32. message "&4> &r/pitchoutadmin setfinspawn &f- Définir le point de spawn ou le joueur spawnera quand il aura perdue"
  33. message "&4> &r/pitchoutadmin setsign join/leave &f- Faire la pancarte pitchout"
  34. message "&6========= &4Pitchout by NelGossem_ &6========="
  35. if arg 1 doesn't exist:
  36. make player execute "pitchoutadmin help"
  37. stop
  38. if arg 1 is equal to "setlobbyspawn":
  39. set {game.wait} to location of player
  40. message "&6Pitchout &4&l> &7%location of player%"
  41. if arg 1 is equal to "setfinspawn":
  42. set {pitchout.finspawn} to location of player
  43. message "&6Pitchout &4&l> &7{pitchout.finspawn}"
  44. if arg 1 is equal to "setsign":
  45. arg 2 is "join":
  46. if {pitchout.configure_sign.leave} is true:
  47. send "&eVous configurez déjà le panneau de Leave"
  48. stop
  49. set {pitchout.configure_sign.join} to true
  50. send "&eFaites un clic droit sur le panneau de Join"
  51. arg 2 is "leave":
  52. if {pitchout.configure_sign.join} is true:
  53. send "&eVous configurez déjà le panneau de Join"
  54. stop
  55. set {pitchout.configure_sign.leave} to true
  56. send "&eFaites un clic droit sur le panneau de Leave"
  57.  
  58. command /pitchout [<text>] <text>:
  59. trigger:
  60. if arg 1 is equal to "help":
  61. message "&6========= &4Pitchout by NelGossem_ &6========="
  62. message "&4> &r/pitchout help &f- Voir la liste des commandes joueurs"
  63. message "&4> &r/pitchoutadmin help &f- Voir la liste des commandes administrateurs"
  64. message "&4> &r/pitchout join/enter/play &f- Rejoindre la partie"
  65. message "&4> &r/pitchout leave/quite/exite &f- Quitter la partie"
  66. message "&6========= &4Pitchout by NelGossem_ &6========="
  67. if arg 1 doesn't exist:
  68. make player execute "pitchout help"
  69. stop
  70. if arg 1 is equal to "join" or "enter" or "play":
  71. if {game.%player%.join} is true:
  72. send "&cVous êtes déja en jeu !"
  73. stop
  74. if {game.start} is true:
  75. send "&cLa partie a déja commencé !"
  76. stop
  77. if {game.slots} is 10:
  78. send "&cLa partie est complète"
  79. stop
  80. set {game.%player%.join} to true
  81. execute console command "clear %player%"
  82. message "&6Pitchout &4&l> &7Vous avez rejoint la partie"
  83. add 1 to {game.slots}
  84. teleport player to {game.wait}
  85. set {pitchout.invincible} to true
  86. give an bed named "&3Leave" with lore "Veux-tu quitter ?" to slot 8 of player's inventory
  87. if {game.slots} is greater than {pitchout.minplayer}:
  88. wait 5 seconds
  89. set {game.start} to true
  90. loop all players:
  91. if loop-player has permission "minetoda.info":
  92. message "&a5" to loop-player
  93. wait 1 second
  94. message "&a4" to loop-player
  95. wait 1 second
  96. message "&a3" to loop-player
  97. wait 1 second
  98. message "&a2" to loop-player
  99. wait 1 second
  100. message "&a1" to loop-player
  101. wait 1 second
  102. message "&aBonne chance !" to loop-player
  103. set {_random} to a random integer between 1 and 10
  104. wait 0.5 tick
  105. if {_random} is 1:
  106. teleport player to {location.1}
  107. if {_random} is 2:
  108. teleport player to {location.2}
  109. if {_random} is 3:
  110. teleport player to {location.3}
  111. if {_random} is 4:
  112. teleport player to {location.4}
  113. if {_random} is 5:
  114. teleport player to {location.5}
  115. if {_random} is 6:
  116. teleport player to {location.6}
  117. if {_random} is 7:
  118. teleport player to {location.7}
  119. if {_random} is 8:
  120. teleport player to {location.8}
  121. if {_random} is 9:
  122. teleport player to {location.9}
  123. if {_random} is 10:
  124. teleport player to {location.10}
  125. set {pitchout.invincible} to false
  126. set {pitchout.enjeu} to true
  127. give loop-player a wooden shovel of knockback 3 named "&bTest"
  128. give loop-player a bow of knockback 3 named "&bProjector"
  129. give loop-player an arrow named "&bLa fleche"
  130. if arg 1 is equal to "leave" or "quite" or "exite":
  131. if {game.%player%.join} is false:
  132. send "&cVous n'êtes pas en jeu !"
  133. stop
  134. set {game.%player%.join} to false
  135. teleport player to spawn
  136. remove 1 from {game.slots}
  137. set {pitchout.invincible} to false
  138. set {pitchout.enjeu} to false
  139. execute console command "clear %player%"
  140. if {game.slots} is 1:
  141. loop all players:
  142. if {game.%loop-player%.join} is true:
  143. broadcast "&4&lPitchout &6&l> &7%loop-player% a gagné la partie !"
  144. teleport loop-player to spawn
  145. set {game.start} to false
  146. set {game.%loop-player%.join} to false
  147. set {game.slots} to 0
  148.  
  149. command /setlocation <text>:
  150. trigger:
  151. player has permission "admin":
  152. set variable {location.%arg 1%} to location of player
  153. send "&aSpawn %arg 1% set en : &b%{location.%arg 1%}%"
  154.  
  155. #Vous n avez pas le droit de ... au lobby du jeu ou pendant les jeux :
  156. on break:
  157. if {pitchout.invincible} is true:
  158. cancel event
  159. if {pitchout.enjeu} is true:
  160. cancel event
  161. on place:
  162. if {pitchout.invincible} is true:
  163. cancel event
  164. if {pitchout.enjeu} is true:
  165. cancel event
  166. On Hunger Meter Change:
  167. if {pitchout.invincible} is true:
  168. cancel event
  169. set the player's food level to 10
  170. if {pitchout.enjeu} is true:
  171. cancel event
  172. set the player's food level to 10
  173. on exiting of region "LimitePitchout":
  174. if {pitchout.invincible} is true:
  175. teleport player to {game.wait}
  176. On damage:
  177. victim is a player
  178. attacker is a player
  179. if {pitchout.invincible} is true:
  180. cancel event
  181. if {pitchout.enjeu} is true:
  182. execute console command "heal %victim%"
  183.  
  184. On rightclick with bed:
  185. if {pitchout.invincible} is true:
  186. make player execute "pitchout leave"
  187. On join:
  188. if {pitchout.invincible} is true:
  189. teleport player to {pitchout.finspawn}
  190. set {pitchout.invincible} to false
  191. execute console command "clear %player%"
  192. if {pitchout.enjeu} is true:
  193. teleport player to {pitchout.finspawn}
  194. set {pitchout.enjeu} to false
  195. execute console command "clear %player%"
  196.  
  197. on drop:
  198. if {pitchout.invincible} is true:
  199. cancel event
  200. if {pitchout.enjeu} is true:
  201. cancel event
  202. on exiting of region "LimitePitchoutGame":
  203. if {pitchout.enjeu} is true:
  204. remove 1 to {lifes.%player%}
  205. if {lifes.%player%} < 1:
  206. make player execute "pitchout leave"
  207.  
  208. On right click on sign:
  209. player is op
  210. {pitchout.configure_sign.join} is true:
  211. set {pitchout.sign_location} to location of clicked block
  212. set first line of clicked block to "&a[&bPitchout&a]"
  213. set second line of clicked block to "&aRejoindre la partie"
  214. set {pitchout.configure_sign.join} to false
  215. {pitchout.configure_sign.leave} is true:
  216. set {pitchout.sign_location} to location of clicked block
  217. set first line of clicked block to "&a[&bPitchout&a]"
  218. set second line of clicked block to "&aQuitter la partie"
  219. set {pitchout.configure_sign.leave} to false
  220.  
  221. On right click on sign:
  222. if first line of clicked block is "&a[&bPitchout&a]":
  223. if second line of clicked block is "&aRejoindre la partie":
  224. make player execute command "/pitchout join"
  225. stop
  226. if first line of clicked block is "&a[&bPitchout&a]":
  227. if second line of clicked block is "&aQuitter la partie":
  228. make player execute command "/pitchout leave"
  229. stop
  230.  
  231. on script load:
  232. if text from "http://pastebin.com/raw.php?i=EBrqjtBb" is not "1.0":
  233. loop all players:
  234. if loop-player has permission "maj.info":
  235. message "&4Pitchout &6&l> &7&cMise à jour du script !" to loop-player
  236. download from "http://pastebin.com/raw.php?i=WfzicERV" to "plugins/Skript/scripts/pitchout.sk"
  237. wait 5 ticks
  238. execute console command "/skript reload pitchout"
  239. loop all players:
  240. if loop-player has permission "maj.info":
  241. message "&4Pitchout &6&l> &7Fin de la Mise à jour du script !" to loop-player
  242. if text from "http://pastebin.com/raw.php?i=EBrqjtBb" is "1.0":
  243. loop all players:
  244. if loop-player has permission "minetoda.info":
  245. message "&4Pitchout &6&l> &7Aucune mise à jour n est disponible pour le moment !" to loop-player
Advertisement
Add Comment
Please, Sign In to add comment