1. Hello, how I can replace the default chat icon?
    Example Death Notes plugin (skull)
     
  2. Wulf

    Wulf Community Admin

  3. Wulf

    Wulf Community Admin

    You'd have to intercept them all with OnServerMessage and re-send them with a new icon.
     
  4. Sooo haaard :D
    Can make a example?
    - - -
    Taking this opportunity, ask, how to get forum status "Server Owner"?
     
  5. Sorry to bring up an old post but how do you do this with oxide 2.0

    Can you send me an example in C# that I would edit in the .cs please? :)
     
  6. Wulf

    Wulf Community Admin

    Code:
    object OnServerMessage(string message)
    {
        if (message.Contains("nope")) return true;
        return null;
    }
     
  7. Thank you for your reply Wulf :)

    Just one quick question sorry but where would I change it for 'AutoBroadcast.cs'??
    Cannot find that string anywhere in any of the .cs extensions...
     
  8. Wulf

    Wulf Community Admin

    I don't know that you'd be able to intercept them in that or most plugins, pretty sure they send via other methods. Either way, you'd still write a separate plugin for it, not modify an existing.
     
  9. Okay, well I'm not good at writing plugins so I guess there is nothing I can do really :/
     
  10. So can anyone help me change the server icons from the rust logo on "AutoBroadcast.cs" to my own steam logo?

    Regards,
    iHYPERLITE
     
  11. Code:
            // Steam ID of the profile you want to use the icon from
            string ID = "76561198162931443";
            object OnServerMessage(string message, string name, string color, ulong id)
            {
                // Loop through all connected players
                foreach(var player in BasePlayer.activePlayerList)
                    // Send a message to all of the connected players with the new steam ID
                    rust.SendChatMessage(player, name, message, ID);
                // Returning a value so it stops the original, unmodified message from being sent
                return true;
            }
    The outcome: Gyazo - 20e2585d5306a4cee54ee81ea1d0bb32.png
     
  12. Wulf

    Wulf Community Admin

    It is a standalone plugin. Save it in a text file with a name matching the class.
     
  13. Thank you just figured that out once console spat out error!

    Cheers again both of you, great help!

    Is their a way this could overwrite other plugin images??