Jump to content

Retsom3D

Member
  • Posts

    4
  • Joined

  • Last visited

Posts posted by Retsom3D

  1. 2 hours ago, snnwer said:

    try debugging the coordinates and broadcast a value after each check to see where the end is, aka

    on player connect:
        send 1
        if player's x-coordinate is smaller than 5125:
            send 2, player's x-coordinate
            if player's x-coordinate is bigger than -5125:
                #etc

     

    there is no end, the code connects me all the time. The issue is that it also connects me when it is not supposed to

  2. 42 minutes ago, snnwer said:

    and your code might not be even valid, because a coordinate cannot be bigger than x (let it be a number) and smaller than x at the same time

    but x=0 is bigger than x=-5000 and smaller than x=5000 at the same time

    or is it not?

  3. This is my script right now:

    on player connect:

    on player connect:
        if player's x-coordinate is smaller than 5125:
        if player's x-coordinate is bigger than -5125:
        if player's z-coordinate is smaller than 5125:
        if player's z-coordinate is bigger than -5125:
    	wait for 1 second
    	connect player to server "0a0"
    

    What it does: As soon as a player connects to the Server he is redirected to server 0a0

    What it is supposed to do: As soon as a player connects to the he is redirected to server 0a0 IF his coordinates are within the predefined area.

    I have also tried to add a tab for each condition, but it makes no difference at all:

    on player connect:
        if player's x-coordinate is smaller than 5125:
            if player's x-coordinate is bigger than -5125:
                if player's z-coordinate is smaller than 5125:
                    if player's z-coordinate is bigger than -5125:
                        wait for 1 second
                        connect player to server "0a0"
    

    I really need some help, i am stuck on this for a while now.

  4. Hopefully its not too hard:

    I need a small little script that can send players to other bungeecord servers based on their coordinates.

    For example: if a player joins the server and is within a predefined area he should be transported to a predefined server.

    I tried to do it myself, but i seem to lack the mental capacity and know how to do it.

×
×
  • Create New...