Changing chat icon to hide admin?

Hey Community,

I am trying to develop a admin plugin for a friend, 

the scope is to hide the admins identity for other players they help out ingame or in chat,

to protect the admins i there for need a way to make them appere anonymus for the time they help on the server,

What i was thinking about is simply to make a command or small gui, wich can be toggled when help is needed

i have experince with c#, json, js and alot other languages, i was looking at the "get started guide" and have found the command:

player.Rename("EpicName");

and as i understand it, it will change the ingame name (above the player) and the chat name,

so to the question:  Is there a way to change the image in the chat, or disable it temporarily?

I think to change the name solves ½ the usecase

BUT if a admin has a unik steam img, he can easy be spottet amongst the other players when returning back to his original name..

 

hope someone can give me imput/help me out :)

 

Regards -Convex

Hey!
You can always reject sending your friend's message and send it manually for everyone with SteamID 0 (for example) and name like Admin (or without any name)

Thanks for your reply @misticos

i am not sure i understand you corectly here, your suggestion is for me to send message with the server or how would you say its possible, if it even is...

I dont really have any idea how to solve this, (havent made any real plugin for rust before)... i only the idea that a way to change name / speek with the player in need of help in some "incognito" mode or somthing like that

In response to Convex ():
Thanks for your reply @misticosi am not sure i understand you corectly here, your suggestion is for...
You can use "say lalalla" (console command)
or
Server.Broadcast("message");​
In response to Convex ():
Thanks for your reply @misticosi am not sure i understand you corectly here, your suggestion is for...
Check out plugins likeSmartChatBot. They handle and send chat messages. You can do the same thing, but for your friend. Remove his message and send the same message to everyone but without your friend's name.
In response to Convex ():
Thanks for your reply @misticosi am not sure i understand you corectly here, your suggestion is for...

Check plugin NoGreen: https://oxidemod.org/plugins/nogreen.2305/

It captures player message, and Broadcasts it. I believe it will help you to implement your own plugin.

will take at loot at that :) tanks for your imput 
I use BetterChat plugin as I found it much better to not show admins/moderators (too many begging requests) so all default players or those that have not achieved any ranks on PlayerRanks plugin just show their name, and they all show the same colour regardless if admin or no.
Here is an excerpt from BetterChat Data/Groups/data.json file (i am not sure if BetterChat still creates groups folder i think i had to create it myself)
[
{
"GroupName": "default",
"Priority": 0,
"Title": {
"Text": "[]",
"Color": "cyan",
"Size": 17,
"Hidden": true,
"HiddenIfNotPrimary": true
},
"Username": {
"Color": "yellow",
"Size": 17
},
"Message": {
"Color": "white",
"Size": 17
},
"Format": {
"Chat": "{Title} {Username}: {Message}",
"Console": "{Title} {Username}: {Message}"
}
},
{
"GroupName": "Player",
"Priority": 0,
"Title": {
"Text": "[Player]",
"Color": "cyan",
"Size": 17,
"Hidden": true,
"HiddenIfNotPrimary": true
},
"Username": {
"Color": "cyan",
"Size": 17
},
"Message": {
"Color": "white",
"Size": 17
},
"Format": {
"Chat": "{Title} {Username}: {Message}",
"Console": "{Title} {Username}: {Message}"
}
}
]

You can always try  it out and experiment with it.You can always add new groups in chat using /chat group add groupname