Solved -snip-

  • 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 community!

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

I want to make a staff chat, where I can type "#" in front of the message and it would send to only the people that have permission "staff"

I don't even know if it's possible but right now when the message is sent it does send it in chat and in the "staffchat"

Code:
on chat
on chat:
    if first character of message is "@":
        if player has permission "staffchat":
            set {msg} to message
            replace all "#" with "" in {msg}
            cancel event
            loop all players:
                send "&f<%player%> aaa &e%{msg}%" to loop-player
When you want to use # in quotes text, type it double.
code_language.skript:
replace all "##" with "" in {msg}
And i think that you can do staffchat easily with variables.
 
Status
Not open for further replies.