Need Skript

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

Endas

Member
Jun 22, 2020
10
0
1
44
Need skript that when player type "/queue" he got teleported to Lobby and when 2 players in queue starts skript...
 
Code:
command /queue:
    trigger:
        #teleport player to your lobby
        add player to {queued::*}
        if size of {queued::*} > 1:
            #start something
 
Code:
command /queue:
    trigger:
        #teleport player to your lobby
        add player to {queued::*}
        if size of {queued::*} > 1:
            #start something

Yeah but like 1 player can type "/queue" x2 times, and thats not what i want... :emoji_frowning:
 
Here you are :emoji_sunglasses:

Code:
command /queue:
    trigger:
        if {queue.used.%player%} is not set:
            #do stuff
            set {queue.used.%player%} to true
            add player to {queued::*}
            if size of {queued::*} > 1:
                #do stuff
        else:
            send "&cYou have already used /queue command!" to executor

on quit:
    #when player leaves the server, it resets his use of /queue command and he can use it on his next login
    clear {queue.used.%player%}
 
Status
Not open for further replies.