Change icon of PrintToChat message?

I have this code:

        [ChatCommand("owner")]
        void OwnerCommand(BasePlayer player)
        {
            PrintToChat(player, "<color=#00ffff>LolRust is the official owner of this server.</color>");
        }​

Is there anyway I can change the message icon from the default rust logo? I'm trying to send the response only to the player that's why im not using Server.Broadcast. Saw a server do this so it should be possible.


This is the server that i was talking about. 
Pretty sure they use Server.Broadcast() instead of PrintToChat().
The PrintToChat methods do not provide arguments for changing the icon, you would need to do that manually via Rust methods.
5f542b9181eac.png 0x89A
Pretty sure they use Server.Broadcast() instead of PrintToChat().
Alright 0x89A but they make it so that im the only user that can see that message. Is there a way to make Server.Broadcast be seen my only one user?
DuruM007
Alright 0x89A but they make it so that im the only user that can see that message. Is there a way to make Server.Broadcast be seen my only one user?
That was not really a relevant answer. Please see my answer above. PrintToChat is for both player and broadcast, but it doesn't provide what you want.

You would want to use a method from Rust, else a different method in Oxide that does what you want.

chat.add command, Player.Message, etc.
Alright thanks Wulf
Here would be one example, though not recommended as it will be going away:
rust.SendChatMessage(player, name, message, ID);​
5e13a8d5b2bc5.jpg Wulf
Here would be one example, though not recommended as it will be going away:
rust.SendChatMessage(player, name, message, ID);​

what's name? i put test as name and get this error: Error while compiling: Main.cs(38,42): error CS0103: The name `test' does not exist in the current context

DuruM007

what's name? i put test as name and get this error: Error while compiling: Main.cs(38,42): error CS0103: The name `test' does not exist in the current context

A string that you want as the prefix/name.
5e13a8d5b2bc5.jpg Wulf
A string that you want as the prefix/name.
Alright but i keep getting error CS1503 Argument #4 cannot convert long expression to type string.
You are using a long where you should be using a string, for one of the arguments.
rust.SendChatMessage(player, "player", "TEST", 76561198345736109);
DuruM007
Alright but i keep getting error CS1503 Argument #4 cannot convert long expression to type string.
5e13a8d5b2bc5.jpg Wulf
You are using a long where you should be using a string, for one of the arguments.
DuruM007
rust.SendChatMessage(player, "player", "TEST", 76561198345736109);

ID should also be a string?

Oh thanks it works