Solved loop player help

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

OHOHOHO

Member
Feb 10, 2017
34
0
0
30
i have problem with loop player when i or my friend join to the game only my friend or i see more 30 seconds and when the game start i see more 30 second (well who enter first and waiting until the second will joined and see the 30 second first)


code_language.skript:
every second:
    if {game.skywars.ready.desert} is false:   
        if {players.skywars.server.desert} is more than 1:
            set {game.skywars.ready.desert} to true
            loop all players in "desert":
                send "&3[SkyWars] The Game Will Start More &e30 &3Second" to loop-players
                wait 15 second
                send "&3[SkyWars] The Game Will Start More &e15 &3Second" to loop-players
                wait 5 second
                send "&3[SkyWars] The Game Will Start More &c10 &3Second" to loop-players
                wait 5 second
                send "&3[SkyWars] The Game Will Start More &c5 &3Second" to loop-players
                wait 1 second
                send "&3[SkyWars] The Game Will Start More &c4 &3Second" to loop-players
                wait 1 second       
                send "&3[SkyWars] The Game Will Start More &c3 &3Second" to loop-players
                wait 1 seconds
                send "&3[SkyWars] The Game Will Start More &c2 &3Second" to loop-players
                wait 1 second
                send "&3[SkyWars] The Game Will Start More &c1 &3Second" to loop-players
 
i have problem with loop player when i or my friend join to the game only my friend or i see more 30 seconds and when the game start i see more 30 second (well who enter first and waiting until the second will joined and see the 30 second first)


code_language.skript:
every second:
    if {game.skywars.ready.desert} is false:  
        if {players.skywars.server.desert} is more than 1:
            set {game.skywars.ready.desert} to true
            loop all players in "desert":
                send "&3[SkyWars] The Game Will Start More &e30 &3Second" to loop-players
                wait 15 second
                send "&3[SkyWars] The Game Will Start More &e15 &3Second" to loop-players
                wait 5 second
                send "&3[SkyWars] The Game Will Start More &c10 &3Second" to loop-players
                wait 5 second
                send "&3[SkyWars] The Game Will Start More &c5 &3Second" to loop-players
                wait 1 second
                send "&3[SkyWars] The Game Will Start More &c4 &3Second" to loop-players
                wait 1 second      
                send "&3[SkyWars] The Game Will Start More &c3 &3Second" to loop-players
                wait 1 seconds
                send "&3[SkyWars] The Game Will Start More &c2 &3Second" to loop-players
                wait 1 second
                send "&3[SkyWars] The Game Will Start More &c1 &3Second" to loop-players
You don't need to loop the players just send "whatever" to all players in "desert"
 
Status
Not open for further replies.