Groups error

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

Deku

Member
Jul 12, 2020
36
0
6
19
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:
    if groups of player contains "VIP-Cadetto":
        if groups of player contains "USA-Medico":   
            loop all players:
                cancel event       
                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


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