Send message to players from a list

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

GamingGeek

Supporter
Aug 1, 2017
46
0
0
21
I'm trying to make a friends skript and I want to make it so that when a player joins, their friends are alerted.
This is what I thought of but it's not woirking.
code_language.skript:
on join:
    loop {friends.%player%::*}:
        set {_p} to "%loop-value%"
        send "&aYour friend, %{rank.%player%}% %player% joined the server" to {_p}
Can anyone help me with this?
 
I'm trying to make a friends skript and I want to make it so that when a player joins, their friends are alerted.
This is what I thought of but it's not woirking.
code_language.skript:
on join:
    loop {friends.%player%::*}:
        set {_p} to "%loop-value%"
        send "&aYour friend, %{rank.%player%}% %player% joined the server" to {_p}
Can anyone help me with this?
youre making {_p} a string by setting it to "%loop-value%" with the quotes and percents. just set it to loop-value or you really dont need the variable at all
code_language.skript:
send "&aYour friend, %{rank.%player%}% %player% joined the server" to loop-value
also you should use list variables {friends::%player%::*} and {rank::%player%}
 
code_language.skript:
send "your buddy %player% joined" to {friends.%player%::*}
 
Status
Not open for further replies.