Solved Help with send a message to all players in {players::*}

  • 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 community!

    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.
you would have to loop {players::*} since that is not just ONE variable but multiple ones
 
let me test one out quickly, and ill post it in a minute :emoji_slight_smile:
 
try this

code_language.skript:
Command /chat [<text>]:
    Trigger:
        Set {_message} to "%arg 1%"
        loop {players::*}:
            send {_message} to {players::%loop-value%}
[doublepost=1522274244,1522272935][/doublepost]Sorry I messed that up, tested it and i was wrong, do this instead

code_language.skript:
Command /chat [<text>]:
    Trigger:
        loop {players::*}:
            Send "%arg-1%" to {players::%loop-index%}
 
if i understand you correctly you can just clear a variable ... like
clear {variable::*}
 
Status
Not open for further replies.