Solved teamlist

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

zaved

Member
Sep 19, 2022
18
0
1
hey,

is it possible to make a teamlist with skript?

so for example if you type in /team ingame, it then shows a list of all teammembers and if they are online or not

Example message:

Teamlist:
Owner | zaved [Online]
Admin | ?? [Offline]
Admin | ??? [Online]
Builder | ?? [Online]
Supporter | ??? [Offline]
 
Code:
on join: #probably it can be command
  set {-p::%uuid of player%::team} to 1

command /team [<text>]:
  trigger:
    set {_teamid} to {-p::%uuid of player%::team}
    loop {-teams::%{_teamid}%::members::*}:
       add 1 to {_i}
       set {_members::%{_i}%} to "%prefix of loop-value% %loop-value%"
    send "members: %join {_members::*} with delimiter newline%"
 
v
 

Attachments

  • Screenshot_65.png
    Screenshot_65.png
    968 bytes · Views: 180
Are you know how to write code? I give you simple example how to structure yours teams with Skript? Or what I need to do? Make complete code for copy-paste this?
Obviously all members need to be stored inside {-teams::%team id%::members::*} , also need store theirs prefixes/roles idk, you give dumbass 6 lines of text without any additional information, you wanna know answer for
hey,

is it possible to make a teamlist with skript?

so for example if you type in /team ingame, it then shows a list of all teammembers and if they are online or not
Answer - yes. It can be. Please mark this as solved.
 
Are you know how to write code? I give you simple example how to structure yours teams with Skript? Or what I need to do? Make complete code for copy-paste this?
Obviously all members need to be stored inside {-teams::%team id%::members::*} , also need store theirs prefixes/roles idk, you give dumbass 6 lines of text without any additional information, you wanna know answer for

Answer - yes. It can be. Please mark this as solved.
Finally, I just wanted the information where the members need to be stored ^^ thats all
 
Status
Not open for further replies.