#List offline people with a group in GUI?
1 messages · Page 1 of 1 (latest)
save all the player names in a list when the team is created
{team.%team_name%::*} or something similar for a list ( the :: indiciates it being a list and the * signifies all values within the list
From there I'd assume you'd just display each value in the list as a head or text
Okay, one more question: How can I send the names of the players in the team in the chat? (Different chat msgs)
send the list?
if by "different chat messages", you mean separating the players into different chat messages
either loop the list and send each value (loop {_list::*}: send "Name: %loop-value%")
or if its a string, split it into a list then do the same
Can you maybe give me an example?
and this is essentially an example
# addto team
loop {team::*}:
loop {team::%loop-index-1%::*}:
broadcast "%loop-value-2 parsed as offline player% is on the %loop-index-1% team!"```
you can skip to just looping {team::potato::*}, but i looped {team::*} first so that if there were multiple teams for this example i would get the names of the teams
it basically
- goes through each team (loop 1)
- goes through each player in the team (loop 2)
Idk why but it´s not working
command /seeteam:
trigger:
send "1"
loop {team::}:
send "2"
loop {team::%loop-index-1%::}:
send "3"
broadcast "%loop-value-2 parsed as offline player% is on the %loop-index-1% team!"
That´s my code rn
And there´s nothing happening after "2"