Aller au contenu
  • 0

Tp des persones à des endroit diférent


Question

13 réponses à cette question

Messages recommandés

  • 0
Posté(e)
Euh... Il faudrait être un peu plus précis dans ta demande ^^

Dans quel contexte? Quelles variables? Quel Skript? Quel endroits?

C'est un uhc est au moment de tp les joueur dans des coordoner. Les variable : {uhc.spawn.1} {uhc.spawn.2} ... jusque a 24.

C'est un skript d'uhchost. Les endroit ne sont pas defini.

 

Bonsoir, tu veux un tp qléatoire c'est ça ?

Non.

  • 0
Posté(e)

options:
#Minimum amount of blocks farm from X cord to tp to
   min.x: -500
#maximum amount of blocks farm from X cord to tp to
   max.x: 500
#Minimum amount of blocks farm from Z cord to tp to
   min.z: -500
#maximum amount of blocks farm from Z cord to tp to
   max.z: 500
#Amount of time before the player will be allowed to use the command again
   cooldown: 10 minutes
#Avoid spawning in lava, water and air
   avoid: air or water block or lava block
#To add worlds it would look like
#    worlds: "world" or "world_nether" or "world_the_end"
   worlds: "world"
#Permission
   permission: randomtp.use
#No permission message
   PermMsg: &4You do not have permission to use this command!
#Can not execute command in this world message
   NoWorldMsg: &4You can’t use this command in this world!
#Cooldown message
   SpamMsg: &4Please do not spam this command!


Command /randomtp:
   description: Teleports player to random location not in water
   permission: {@permission}
   permission message: {@PermMsg}
   aliases: /rtp, /wild, /random
   trigger:
       if world is not {@worlds}:
           message "{@NoWorldMsg}"
       else:
           if difference between {cooldowns::randomtp::%player%} and now < {@cooldown}:
               send "{@SpamMsg}"
           else:
               set {_loc::old} to player's location
               while player's location is {_loc::old}:
                   set {_loc::new} to location at random number between {@min.x} and {@max.x}, 0, random number between {@min.z} and {@max.z}
                   loop blocks above {_loc::new}:
                       if loop-block and block above loop-block are air:
                           if block under loop-block is not {@avoid}:
                               set {_loc::new} to location of loop-block
                               teleport player to {_loc::new}
                               if light level at player <= 2:
                                   set block at player to ground torch
                               set {cooldowns::randomtp::%player%} to now
                               stop loop
                   wait 10 ticks

 

J'ai taper "skript random tp" sur google et j'ai pris le 1er lien ...

  • 0
Posté(e)
C'est un uhc est au moment de tp les joueur dans des coordoner. Les variable : {uhc.spawn.1} {uhc.spawn.2} ... jusque a 24.

C'est un skript d'uhchost. Les endroit ne sont pas defini.

 

 

Non.

 

Bah si ta aucun spawn de définis avec variables, c'est un tp aléatoire ^^

  • 0
Posté(e)
options:
#Minimum amount of blocks farm from X cord to tp to
   min.x: -500
#maximum amount of blocks farm from X cord to tp to
   max.x: 500
#Minimum amount of blocks farm from Z cord to tp to
   min.z: -500
#maximum amount of blocks farm from Z cord to tp to
   max.z: 500
#Amount of time before the player will be allowed to use the command again
   cooldown: 10 minutes
#Avoid spawning in lava, water and air
   avoid: air or water block or lava block
#To add worlds it would look like
#    worlds: "world" or "world_nether" or "world_the_end"
   worlds: "world"
#Permission
   permission: randomtp.use
#No permission message
   PermMsg: &4You do not have permission to use this command!
#Can not execute command in this world message
   NoWorldMsg: &4You can’t use this command in this world!
#Cooldown message
   SpamMsg: &4Please do not spam this command!


Command /randomtp:
   description: Teleports player to random location not in water
   permission: {@permission}
   permission message: {@PermMsg}
   aliases: /rtp, /wild, /random
   trigger:
       if world is not {@worlds}:
           message "{@NoWorldMsg}"
       else:
           if difference between {cooldowns::randomtp::%player%} and now < {@cooldown}:
               send "{@SpamMsg}"
           else:
               set {_loc::old} to player's location
               while player's location is {_loc::old}:
                   set {_loc::new} to location at random number between {@min.x} and {@max.x}, 0, random number between {@min.z} and {@max.z}
                   loop blocks above {_loc::new}:
                       if loop-block and block above loop-block are air:
                           if block under loop-block is not {@avoid}:
                               set {_loc::new} to location of loop-block
                               teleport player to {_loc::new}
                               if light level at player <= 2:
                                   set block at player to ground torch
                               set {cooldowns::randomtp::%player%} to now
                               stop loop
                   wait 10 ticks

 

J'ai taper "skript random tp" sur google et j'ai pris le 1er lien ...

 

Il ne marche pas car il me tp a un endroit aléatoire dans la map :(

  • 0
Posté(e)

Non testé:

loop all players:
   add loop-player to {_list::*}
set {_l} to 1
loop 24 times:
   teleport a random element out of {_list::*} to {uhc.spawn.%{_l}%}
   add 1 to {_l}

  • J'aime 1
  • 0
Posté(e)

Ça ne va pas marcher j'ai oublié 2 lignes ^^

loop all players:
   add loop-player to {_list::*}
set {_l} to 1
loop 24 times:
   set {_p} to a random element out of {_list::*}
   teleport {_p} to {uhc.spawn.%{_l}%}
   remove {_p} from {_list::*}
   add 1 to {_l}

  • 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.