1. 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!

  2. LOOKING FOR A VERSION OF SKRIPT??:

    You can always check our our Wiki for downloads and any other information about Skript!

Dismiss Notice
This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Solved loop all players only sends to one player

Discussion in 'Skript' started by Buddha, Jun 12, 2019 at 3:22 PM.

  1. B

    Buddha Member

    Joined:
    Apr 22, 2017
    Messages:
    18
    Likes Received:
    0
    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 (Text):
    1.     loop all players:
    2.         if {flyTimer.%loop-players%.enabled} is true:
    3.             subtract 1 from {flyTimer.%loop-players%.notify}
    4.             add 1 to {flyTimer.%loop-players%.check}
    5.             send "work" to loop-players
    6.             stop
    Edit: solved, removed the stop - sorry
     
Loading...