1. 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!

  2. LOOKING FOR A VERSION OF SKRIPT?

    You can always check out our Wiki for downloads and any other information about Skript!

Dismiss Notice
This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Help me please

Discussion in 'Skript' started by Angeloop, Apr 29, 2019.

Thread Status:
Not open for further replies.
  1. Angeloop

    Angeloop Member

    Joined:
    Jan 26, 2018
    Messages:
    4
    Likes Received:
    0
    Hi, I need help with this.




    Code (Text):
    1. command /team [<text>] [<text>]:
    2.     executable by: players
    3.     trigger:                      
    4.         if arg-1 is "create":
    5.             if arg-2 is set:
    6.                 if {teams.status} is true:
    7.                     if player is not in {Team.InTeam::%sender%}:
    8.                         send "{@P} &bHas creado el equipo %arg-2%"
    9.                         add player to {Team.InTeam::%sender%}
    10.                         wait 0.5 seconds
    11.                         add {Team.InTeam::%sender%} to {Team.TeamsTotales::*}
    12.                         add 1 to {TeamsTotales::*}
    13.                         add arg-2 to {Team.Name::*}
    14.                        
    15. on chat:
    16.     if {teams.status} is true:
    17.         cancel the event
    18.         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?
     
  2. couger44

    Supporter

    Joined:
    Feb 19, 2017
    Messages:
    714
    Likes Received:
    31
    That should be fine, if not that you have another skript that involves the cancellation of the chat event.
     
  3. Angeloop

    Angeloop Member

    Joined:
    Jan 26, 2018
    Messages:
    4
    Likes Received:
    0
    You did not understand what I meant, I expressed myself badly, I'm sorry, but I'll try to find the solution.
     
  4. mp9000

    mp9000 Member

    Joined:
    May 1, 2019
    Messages:
    2
    Likes Received:
    0
    That ought to be fine, if not that you have another skript that includes the dropping of the visit occasion.
     
Thread Status:
Not open for further replies.

Share This Page

Loading...