Solved Admin prefixes

Discussion in 'Plugin Requests' started by Tahatired, Mar 3, 2016.

  1. hi guys please Change this 1.18 plugin to 2 :)

    Thnx
     
  2. Code:
    bool OnPlayerChat(NetUser netuser, string message)
    {
                if (!permission.UserHasPermission(netUser.playerClient.userID.ToString(), "adminchat.allowed"))
    {
    string name = rust.QuoteSafe(netuser.displayName);
                string msg = rust.QuoteSafe(message);
    ConsoleNetworker.Broadcast(string.Concat("chat.add ", name, " ", msg));
                netUser.NoteChatted();
                return false;
    }
    else
    {          string prefix = "[Admin]";
                string name = rust.QuoteSafe(prefix + netUser.displayName);
                string msg = rust.QuoteSafe(message);
                ConsoleNetworker.Broadcast(string.Concat("chat.add ", name, " ", msg));
                netUser.NoteChatted();
                return false;
                }
    }
     
    Last edited by a moderator: Mar 3, 2016
  3. What do I do with this
     
  4. For a lack of a better term that is the keys to the castle. That is in c# but it's about 3/4 done. I'm not home and using my phone so it's kinda thrown together. Basically you need to add the reference and namespace part and the other required stuff for oxide then it's good to go. I can do this once I'm home or you can research it in the docs section or maybe.

    Moderator edit: Please use the Plugins section for fulfilling public plugin requests.
     
    Last edited by a moderator: Mar 16, 2016
  5. Put as resolved '-'
     
    Last edited by a moderator: Mar 16, 2016
  6. Can you create me Prefix .lua file pls?
     
  7. yes this plugin is
     
  8. Send it again pls?
     
  9. I would like it if there is a command for Admins/Owners/Moderators so when they type in chat it would be like this [Admin] is everyone alight? Also is it easy to set up? I would like it if I could just past their steam id into the config file and it is done.
     
  10. It looks too difficult to use. I don't get it.
     
  11. It is the only plugin that currently have this feature
     
  12. I want to make myself owner what should I type? my name is Elite Sniper in game can you show me what to type?
     
  13. It is too complicated to explain