Aller au contenu

Messages recommandés

Posté(e)

Salut :3 !

 

J'aimerais saovoir comment faire pour qu'a la mort du joueur, il soit tp au warp attente et 3 minutes après il soit tp au /spawn.

 

En vous remerciant par avance,

Cordialement,

GAMEZCRAFT.

Posté(e)

Non testé. J'ai mis une protection pour que si le serveur a été reload ou redemarré pendant que des joueurs attendent, s'ils se reconnectent avant 3 minutes ça les tp aux spawn. Et pour la command "/warp attente %player%" je ne suis pas sûr de la syntaxe.

on respawn:
   wait 1 tick
   execute console command "/warp attente %player%"
   set {attente.%player%} to now
   set {attentenb.%player%} to {count.start}
   wait 3 minutes
   clear {attente.%player%}
   clear {attentenb.%player%}
   execute console command "/spawn %player%"
on join:
   if difference between {attente.%player%} and now is greater than 3 minutes:
       clear {attente.%player%}
       clear {attentenb.%player%}
       execute console command "/spawn %player%"
   else if {attentenb.%player%} is not {count.start}:
       clear {attente.%player%}
       clear {attentenb.%player%}
       execute console command "/spawn %player%"
on skript start:
   add 1 to {count.start}
   loop all players:
       clear {attente.%loop-player%}
       clear {attentenb.%player%}
       execute console command "/spawn %loop-player%"

  • J'aime 1
×
×
  • Créer...

Information importante

Nous avons placé des cookies sur votre appareil pour aider à améliorer ce site. Vous pouvez choisir d’ajuster vos paramètres de cookie, sinon nous supposerons que vous êtes d’accord pour continuer.