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.

Groups error

Discussion in 'Skript' started by Deku, Sep 10, 2020.

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

    Deku Member

    Joined:
    Jul 12, 2020
    Messages:
    36
    Likes Received:
    0
    I would like to make sure that if a person is in a group he changes the chat in one way, otherwise if the person is in 2 groups he changes it in another.

    Code (Text):
    1.     if groups of player contains "VIP-Cadetto":
    2.         if groups of player contains "USA-Medico":  
    3.             loop all players:
    4.                 cancel event      
    5.                 send "&9&lU&f&lS&c&lA&8. &4Medico &8• &f%{nome.%player%}% &8[&e&lVIP &7&l- &3Cadetto&8] &2▻ &f%message%" to loop-player  
    6.  

    Code (Text):
    1.     if groups of player contains "USA-Medico":
    2.         if groups of player don't contain "VIP-Cadetto":
    3.             loop all players:
    4.                 cancel event      
    5.                 send "&9&lU&f&lS&c&lA&8. &4Medico &8• &f%{nome.%player%}% &2▻ &f%message%" to loop-player    
     
Thread Status:
Not open for further replies.

Share This Page

Loading...