Help me please

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

Angeloop

Member
Jan 26, 2018
4
0
0
33
Hi, I need help with this.




Code:
command /team [<text>] [<text>]:
    executable by: players
    trigger:                       
        if arg-1 is "create":
            if arg-2 is set:
                if {teams.status} is true:
                    if player is not in {Team.InTeam::%sender%}:
                        send "{@P} &bHas creado el equipo %arg-2%"
                        add player to {Team.InTeam::%sender%}
                        wait 0.5 seconds
                        add {Team.InTeam::%sender%} to {Team.TeamsTotales::*}
                        add 1 to {TeamsTotales::*}
                        add arg-2 to {Team.Name::*}
                        
on chat:
    if {teams.status} is true:
        cancel the event
        broadcast "&6[%{Team.Name::*}%] &3%player%: &f%message%"

How can I assign a name to each team and then that name appear in the people who belong to the team in the chat?
 
Hi, I need help with this.




Code:
command /team [<text>] [<text>]:
    executable by: players
    trigger:                      
        if arg-1 is "create":
            if arg-2 is set:
                if {teams.status} is true:
                    if player is not in {Team.InTeam::%sender%}:
                        send "{@P} &bHas creado el equipo %arg-2%"
                        add player to {Team.InTeam::%sender%}
                        wait 0.5 seconds
                        add {Team.InTeam::%sender%} to {Team.TeamsTotales::*}
                        add 1 to {TeamsTotales::*}
                        add arg-2 to {Team.Name::*}
                       
on chat:
    if {teams.status} is true:
        cancel the event
        broadcast "&6[%{Team.Name::*}%] &3%player%: &f%message%"

How can I assign a name to each team and then that name appear in the people who belong to the team in the chat?
That should be fine, if not that you have another skript that involves the cancellation of the chat event.
 
You did not understand what I meant, I expressed myself badly, I'm sorry, but I'll try to find the solution.
 
You did not understand what I meant, I expressed myself badly, I'm sorry, but I'll try to find the solution.

That ought to be fine, if not that you have another skript that includes the dropping of the visit occasion.
 
Status
Not open for further replies.