LabaleineCP Posté(e) le 30 janvier 2016 Posté(e) le 30 janvier 2016 Bonjour, aujourd'hui j'ai cherché sur plusieurs site un skript qui quand on meurt, le joueur est en mode spectateur pendant 5 secondes, puis il est téléporté au spawn. Si quelqu'un trouve ou fait ce skript, merci d'avance.
Assaut53 Posté(e) le 30 janvier 2016 Posté(e) le 30 janvier 2016 on death of player: set {death_} to location of player wait 3 second make player execute command "/gamemode 3 %player%" teleport player at {death_} wait 5 seconds send "&c Vous allez être téléporter au hub !" to player #Msg pour avvant la tp Peux etre supprimer make player execute command "/hub" #Commande Pour revenir au spawn make player execute command "/gamemode 2 %player%" #tu peux choisir le gamemode !! command /sethub: permission: spawn.set trigger: set {hub.come} to location of player command /hub: trigger: teleport player at {hub.come} lache un gros pouce bleu comme un stroumph !
Maarfum Posté(e) le 30 janvier 2016 Posté(e) le 30 janvier 2016 Plus simple :p on death of player: world is "world" heal victim execute command "gamemode spectator %player%" wait 5 seconds teleport victim to spawn of "world" execute command "gamemode survival %player%"
LabaleineCP Posté(e) le 31 janvier 2016 Auteur Posté(e) le 31 janvier 2016 Plus simple :p on death of player: world is "world" heal victim execute command "gamemode spectator %player%" wait 5 seconds teleport victim to spawn of "world" execute command "gamemode survival %player%" Assaut53 a mieux compris ce que j'ai demandé, mais Maarfum aussi et c'est beaucoup plus simple, mais celui de Assaut53 saut mettre un /sethub etc... et quand il est mort, il est en spectateur là où il est mort, dans celui de Maarfum, il est en mode spectateur au spawn. Si quelqu'un pourrait modifié le skript de Maarfum pour que quand on est mort, on soit en mode spectateur là où on est mort.
Assaut53 Posté(e) le 31 janvier 2016 Posté(e) le 31 janvier 2016 LOL Tiens la simplicité ! on death of player: world is "world" heal victim set {death_} to location of player wait 3 second execute command "gamemode spectator %player%" teleport player at {death_} wait 5 seconds teleport victim to spawn of "world" execute command "gamemode survival %player%"
Messages recommandés