Solved Skript Help, Team Chat

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

Hjaller

Member
Nov 10, 2017
14
0
0
I have made a team script, and now I have made a team chat, but I have no idea how to do it: The command it must be / tc:
I hope you can help.
Write if you need more information

- Hjaller
 
code_language.skript:
command /tc [<text>]:
    trigger:
        if arg-1 is not set:
            message "&cPlease use: /tc <message>"
            stop
           
        else:
            loop all players:
                if loop-player has permission "tc.getmessage":
                    message "&4&l%player% &7>>> %arg-1%" to loop-player

i hope this is what you need! :emoji_slight_smile:
 
Yes, but anyone who has permission to receive the message may have it
[doublepost=1510347442,1510347358][/doublepost]Sry for my bad English
 
What I think is that everyone with that permission can write to each other. One should only be able to write with his team
 
code_language.skript:
command /tc [<player>] [<text>]:
    permission: tc.send
    permission message: &cYou don't have permission to do this!
    trigger:
        
        if arg-1 is not set:
            message "&cPlease use: /tc <player> <message>"
            stop
          
        if arg-2 is not set:
            message "&cPlease use: /tc <player> <message>"
            stop   
          
        else:
            loop all players:
                if loop-player has permission "tc.getmessage":
                    if arg-1 has permission "tc.getmessage":
                        message "&4&l%player% &7>>> %arg-2%" to arg-1
                        stop
                    else:
                        message "&cThe player &6%arg-1% &cdoesn't have"
                        message "&cenough permissions, to get the message."
                        stop
                        
command /tcall [<text>]:
    permission: tc.all
    permission message: &cYou don't have permission to do this!
    trigger:
        if arg-1 is not set:
            message "&c/tcall <message>"
            stop
        else:
            loop all players:
                if loop-player has permission "tc.getmessage":
                    message "&4&l%player% &7>>> &6%arg-1%" to loop-player

is this what you mean? if not, can you give me your server ip? :emoji_grinning:
 
What I mean is that you should be able to communicate with your entire team in the team chat.
My server runs local.
 
There's literally no way anyone can do this without seeing how your teams script is setup.
 
my brain is death xD.
if you want you can join the server ericdasbrot.mygs.co .
we can test what you want!

and i don't have a server normaly... xD
 
#Found this in line 300


code_language.skript:
 if arg 1 is "tc" or "chat":
            set {_arg2} to {team::%uuid of player%}
            if {team::%uuid of player%} is set:
                    send "Im sending: %arg-2%" to {_arg2}
 
The code you have sent is not work
[doublepost=1510417675,1510417462][/doublepost]there is no errors with the code you have sent, but the message is not sending to the team..
[doublepost=1510417821][/doublepost]I hope anyone can help me.
[doublepost=1510505885][/doublepost]Anyone there can help me please.
[doublepost=1510506805][/doublepost]I've got help :emoji_slight_smile: Thanks for your help :emoji_slight_smile:

command /tc <text>:
trigger:
if {team::%uuid of player%} is not set:
send "{@prefix} &cDu er ikke med i noget i team"
else:
loop all players:
{team::%uuid of loop-player%} is {team::%uuid of command sender%}
send "&8[ &a&lTEAM &8] &6%command sender% &7> &e%arg-1%" to loop-player
 
Status
Not open for further replies.