Solved Where is the problem xd

  • 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 community!

    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!

DanRub

Active Member
Jun 3, 2023
214
22
18
The problem is that i cant join queue even the {game} is false.. anyone know why? Also i would appreciate before reply to me please test it or something bc this skript reloaded just fine but it doesnt work xd
Code:
command /queue <string> [<player>]:
    usage: &cUse: /queue <join, leave>
    trigger:
        if arg-1 is "join":
            if {game} is true:
                send "&cYou have to wait until the game is over!" to player
            else if {game} is false:
                if {queuedplayers::*} contains player:
                    stop
                    send "&cYou are already in queue!" to player
                    if size of {queuedplayers::*} is more than 3:
                        broadcast "&a&lThe game has just begun!"
                        broadcast "&a&lThe game has just begun!"
                        set {game} to true
                        clear {queuedplayers::*}
                        teleport {queuedplayers::*} to location at (-776, 4, 382) in world "Revolution"
                        loop {queuedplayers::*}:
                            add loop-value to {alive::*}
                            apply weakness 1000 to {alive::*} for 15 seconds
            else if {queuedplayers::*} does not contain player:
                add player to {queuedplayers::*}
                send "&aYou have joined the queue!" to player
 
Last edited: