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 out 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-player

Discussion in 'Skript' started by Jonigel, Feb 26, 2018.

Thread Status:
Not open for further replies.
  1. Jonigel

    Jonigel Member

    Joined:
    Aug 28, 2017
    Messages:
    4
    Likes Received:
    0
    Hey guys,

    When I write behind name: %player% switch all online players
    I tried with %loop-player% but than never appear the actionbar message.
    What is wrong?


    on join:
    loop all players:
    while loop-player is online:
    if {chat.globalmute} is set:
    set Action bar of loop-player to "&7•&8● &7Chat&8: &cDeaktiviert &8│ &7Name&8: &e%player%"
    if {chat.globalmute} is not set:
    set Action bar of loop-player to "&7•&8● &7Chat&8: &aAktiviert &8│ &7Name&8: &e%player%"
    wait 1 second
     
  2. Trason

    Trason New Member

    Joined:
    Feb 21, 2018
    Messages:
    7
    Likes Received:
    0
    Try ony loop-player not %loop-player%
     
  3. Jonigel

    Jonigel Member

    Joined:
    Aug 28, 2017
    Messages:
    4
    Likes Received:
    0
    Now is behind Name loop-player instead of the username
     
  4. Trason

    Trason New Member

    Joined:
    Feb 21, 2018
    Messages:
    7
    Likes Received:
    0
    my question why you want loop the player ?

    Try it Like this

    i cant try if it work now its too late for me but you can try it :emoji_slight_smile:
    Code (Skript):
    1. On join:
    2.     while player is online:
    3.     if {chat.globalmute} is set:
    4.         show Action bar with "&7&8&7Chat&8: &cDeaktiviert &8&7Name&8: &e%player%" to player
    5.     if {chat.globalmute} is not set:
    6.         show Action bar of with "&7&8&7Chat&8: &aAktiviert &8&7Name&8: &e%player%" to player
     
  5. Jonigel

    Jonigel Member

    Joined:
    Aug 28, 2017
    Messages:
    4
    Likes Received:
    0
    on join:
    while player is online:
    if {chat.globalmute} is set:
    set Action bar of player to "&7•&8● &7Chat&8: &cDeaktiviert &8│ &7Name&8: &e%player%"
    if {chat.globalmute} is not set:
    set Action bar of player to "&7•&8● &7Chat&8: &aAktiviert &8│ &7Name&8: &e%player%"
    wait 1 second

    Now its working fine :emoji_grinning:
    Thanks
     
Thread Status:
Not open for further replies.

Share This Page

Loading...