NelGossem_

Untitled

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