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!

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

Solved StaffChat

Discussion in 'Requests' started by BrettPlayMC, Jan 29, 2017.

  1. BrettPlayMC

    Supporter

    Joined:
    Jan 26, 2017
    Messages:
    715
    Likes Received:
    53
    Before this thread starts I just wanna say that I am a complete noob in script which is why I request a lot of scripts to be made. Hope you understand! <3
    Category: Chat

    Suggested name: StaffChat

    What I want:
    A staff chat script. You know what I mean. :emoji_wink:

    Ideas for commands:
    /sc (Alias: /staffchat) - Enables staff chat. Run again and it disables staff chat.
    You can also do where /sc [message] sends a message in staff chat. Both would be nice but idk if that's possible.

    Ideas for permissions:
    staffchat.use

    When I'd like it by: This week! <3
     
  2. ShaneBee

    Moderator Resource Staff Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,184
    Likes Received:
    220
    Code (Text):
    1. command /staffchat [<text>]:
    2.     permission: staffchat.use
    3.     trigger:
    4.         if arg 1 is "enable" or "on":
    5.             message "&8[&4StaffChat&8] &7You have enabled &4StaffChat&7!"
    6.             set {staffchat.%player%} to true
    7.         else:
    8.             if arg 1 is "disable" or "off":
    9.                 message "&8[&4StaffChat&8] &7You have disabled &4StaffChat&7!"
    10.                 set {staffchat.%player%} to false
    11.  
    12. on chat:
    13.     if {staffchat.%player%} is true:
    14.         cancel event
    15.         loop all players:
    16.             if {staffchat.%loop-player%} is true:
    17.                 message "&8[&4StaffChat&8] &7%player's nickname% &8>> &f%message%" to loop-player

    EDIT: Picture link is http://prnt.sc/e1otog
     
    • Useful Useful x 1
  3. ShaneBee

    Moderator Resource Staff Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,184
    Likes Received:
    220
    Solved with a custom version.
     
  4. ShaneBee

    Moderator Resource Staff Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,184
    Likes Received:
    220
    Which solution is that?
     
  5. ShaneBee

    Moderator Resource Staff Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,184
    Likes Received:
    220
    He got one made by mathhulk since mine didn't work with his Chat System.
     
  6. ShaneBee

    Moderator Resource Staff Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,184
    Likes Received:
    220
    Gotcha.

    @BrettPlayMC - I've added the ability for you guys to mark the thread as solved with a prefix, in case your request is solved outside of the thread. You can set it by clicking Thread Tools > Edit Thread, at the top of the thread.
     
    • Like Like x 2

Share This Page

Loading...