NelGossem_

Untitled

Jul 2nd, 2015
252
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.33 KB | None | 0 0
  1. command /pitchout [<text>] <text>:
  2. trigger:
  3. if arg 1 is equal to "help":
  4. message "&6========= &4Pitchout by NelGossem_ &6========="
  5. message "&4> &r/pitchout help &f- Voir la liste des commandes joueurs"
  6. message "&4> &r/pitchoutadmin help &f- Voir la liste des commandes administrateurs"
  7. message "&4> &r/pitchout join/enter/play &f- Rejoindre la partie"
  8. message "&4> &r/pitchout leave/quite/exite &f- Quitter la partie"
  9. message "&6========= &4Pitchout by NelGossem_ &6========="
  10. if arg 1 doesn't exist:
  11. make player execute "pitchout help"
  12. stop
  13. if arg 1 is equal to "join" or "enter" or "play":
  14. if {game.%player%.join} is true:
  15. send "&cVous êtes déja en jeu !"
  16. stop
  17. if {game.start} is true:
  18. send "&cLa partie a déja commencé !"
  19. stop
  20. if {game.slots} is 10:
  21. send "&cLa partie est complète"
  22. stop
  23. set {game.%player%.join} to true
  24. execute console command "clear %player%"
  25. message "&6Pitchout &4&l> &7Vous avez rejoint la partie"
  26. add 1 to {game.slots}
  27. teleport player to {game.wait}
  28. set {pitchout.invincible} to true
  29. give an bed named "&3Leave" with lore "Veux-tu quitter ?" to slot 8 of player's inventory
  30. if {game.slots} is greater than {pitchout.minplayer}:
  31. wait 5 seconds
  32. set {game.start} to true
  33. loop all players:
  34. if loop-player has permission "minetoda.info":
  35. message "&a5" to loop-player
  36. wait 1 second
  37. message "&a4" to loop-player
  38. wait 1 second
  39. message "&a3" to loop-player
  40. wait 1 second
  41. message "&a2" to loop-player
  42. wait 1 second
  43. message "&a1" to loop-player
  44. wait 1 second
  45. message "&aBonne chance !" to loop-player
  46. set {_random} to a random integer between 1 and 10
  47. wait 0.5 tick
  48. if {_random} is 1:
  49. teleport player to {location.1}
  50. if {_random} is 2:
  51. teleport player to {location.2}
  52. if {_random} is 3:
  53. teleport player to {location.3}
  54. if {_random} is 4:
  55. teleport player to {location.4}
  56. if {_random} is 5:
  57. teleport player to {location.5}
  58. if {_random} is 6:
  59. teleport player to {location.6}
  60. if {_random} is 7:
  61. teleport player to {location.7}
  62. if {_random} is 8:
  63. teleport player to {location.8}
  64. if {_random} is 9:
  65. teleport player to {location.9}
  66. if {_random} is 10:
  67. teleport player to {location.10}
  68. set {pitchout.invincible} to false
  69. set {pitchout.enjeu} to true
  70. give loop-player a wooden shovel of knockback 3 named "&bTest"
  71. give loop-player a bow of knockback 3 named "&bProjector"
  72. give loop-player an arrow named "&bLa fleche"
  73. if arg 1 is equal to "leave" or "quite" or "exite":
  74. if {game.%player%.join} is false:
  75. send "&cVous n'êtes pas en jeu !"
  76. stop
  77. set {game.%player%.join} to false
  78. teleport player to spawn
  79. remove 1 from {game.slots}
  80. set {pitchout.invincible} to false
  81. set {pitchout.enjeu} to false
  82. execute console command "clear %player%"
  83. if {game.slots} is 1:
  84. loop all players:
  85. if {game.%loop-player%.join} is true:
  86. broadcast "&4&lPitchout &6&l> &7%loop-player% a gagné la partie !"
  87. teleport loop-player to spawn
  88. set {game.start} to false
  89. set {game.%loop-player%.join} to false
  90. set {game.slots} to 0
Advertisement
Add Comment
Please, Sign In to add comment