Solved Loop-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.

Jonigel

Member
Aug 28, 2017
4
0
0
24
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
 
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_language.skript:
On join:
    while player is online:
    if {chat.globalmute} is set:
        show Action bar with "&7•&8● &7Chat&8: &cDeaktiviert &8│ &7Name&8: &e%player%" to player
    if {chat.globalmute} is not set:
        show Action bar of with "&7•&8● &7Chat&8: &aAktiviert &8│ &7Name&8: &e%player%" to player
 
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
 
Status
Not open for further replies.