Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- command /pitchout [<text>] <text>:
- trigger:
- if arg 1 is equal to "help":
- message "&6========= &4Pitchout by NelGossem_ &6========="
- message "&4> &r/pitchout help &f- Voir la liste des commandes joueurs"
- message "&4> &r/pitchoutadmin help &f- Voir la liste des commandes administrateurs"
- message "&4> &r/pitchout join/enter/play &f- Rejoindre la partie"
- message "&4> &r/pitchout leave/quite/exite &f- Quitter la partie"
- message "&6========= &4Pitchout by NelGossem_ &6========="
- if arg 1 doesn't exist:
- make player execute "pitchout help"
- stop
- if arg 1 is equal to "join" or "enter" or "play":
- if {game.%player%.join} is true:
- send "&cVous êtes déja en jeu !"
- stop
- if {game.start} is true:
- send "&cLa partie a déja commencé !"
- stop
- if {game.slots} is 10:
- send "&cLa partie est complète"
- stop
- set {game.%player%.join} to true
- execute console command "clear %player%"
- message "&6Pitchout &4&l> &7Vous avez rejoint la partie"
- add 1 to {game.slots}
- teleport player to {game.wait}
- set {pitchout.invincible} to true
- give an bed named "&3Leave" with lore "Veux-tu quitter ?" to slot 8 of player's inventory
- if {game.slots} is greater than {pitchout.minplayer}:
- wait 5 seconds
- set {game.start} to true
- loop all players:
- if loop-player has permission "minetoda.info":
- message "&a5" to loop-player
- wait 1 second
- message "&a4" to loop-player
- wait 1 second
- message "&a3" to loop-player
- wait 1 second
- message "&a2" to loop-player
- wait 1 second
- message "&a1" to loop-player
- wait 1 second
- message "&aBonne chance !" to loop-player
- set {_random} to a random integer between 1 and 10
- wait 0.5 tick
- if {_random} is 1:
- teleport player to {location.1}
- if {_random} is 2:
- teleport player to {location.2}
- if {_random} is 3:
- teleport player to {location.3}
- if {_random} is 4:
- teleport player to {location.4}
- if {_random} is 5:
- teleport player to {location.5}
- if {_random} is 6:
- teleport player to {location.6}
- if {_random} is 7:
- teleport player to {location.7}
- if {_random} is 8:
- teleport player to {location.8}
- if {_random} is 9:
- teleport player to {location.9}
- if {_random} is 10:
- teleport player to {location.10}
- set {pitchout.invincible} to false
- set {pitchout.enjeu} to true
- give loop-player a wooden shovel of knockback 3 named "&bTest"
- give loop-player a bow of knockback 3 named "&bProjector"
- give loop-player an arrow named "&bLa fleche"
- if arg 1 is equal to "leave" or "quite" or "exite":
- if {game.%player%.join} is false:
- send "&cVous n'êtes pas en jeu !"
- stop
- set {game.%player%.join} to false
- teleport player to spawn
- remove 1 from {game.slots}
- set {pitchout.invincible} to false
- set {pitchout.enjeu} to false
- execute console command "clear %player%"
- if {game.slots} is 1:
- loop all players:
- if {game.%loop-player%.join} is true:
- broadcast "&4&lPitchout &6&l> &7%loop-player% a gagné la partie !"
- teleport loop-player to spawn
- set {game.start} to false
- set {game.%loop-player%.join} to false
- set {game.slots} to 0
Advertisement
Add Comment
Please, Sign In to add comment