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: