Solved loop all players only sends to one player

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

Buddha

Member
Apr 22, 2017
20
0
0
26
In my script, I loop all players and check to see if they're flying every second as a test. If more than one person is flying at the same time, it only sends the test message to one player. Here's the loop:

Code:
    loop all players:
        if {flyTimer.%loop-players%.enabled} is true:
            subtract 1 from {flyTimer.%loop-players%.notify}
            add 1 to {flyTimer.%loop-players%.check}
            send "work" to loop-players
            stop

Edit: solved, removed the stop - sorry
 
Status
Not open for further replies.