Solved survival games spawn system need help ASAP

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.

Stefqnutz

Active Member
Sep 23, 2019
67
1
8
19
Im coding SG in skript and ran into this problem, whenever the game starts I want all the players that are playing to be teleported to different spawnpoints, I can't really seem to find a way to make it work and I also can't really figure out how to check if a spawnpoint is already taken by another player. How could I do this?
[doublepost=1608636480,1608588303][/doublepost]bump
[doublepost=1608651112][/doublepost]bump
 
I am new at Skript but I think this should work for you:
Code:
command /sendplayers:
    trigger:
        set {spawn-point1} to false
        set {spawn-point2} to false
        broadcast "SENDING PLAYERS TO ARENA!"
        execute player command "tpme"
command /tpme:
    trigger:
        if {spawn-point1} is false:
            teleport player to location -2, 80, 703 in world "bskyblock_world"
            message "spawnpoint1" to player
            set {spawn-point1} to true
        else if {spawn-point2} is false:
            teleport player to location -5, 70, 699 in world "bskyblock_world"
            message "spawnpoint2" to player
            set {spawn-point2} to true
i checked the skript but maybe its not for you if it is convenient to you, you can develop
 
alright thank you for the example :emoji_grinning:
i will modify this so it works with my thing so thanks
 
Status
Not open for further replies.