Found this bit of code over at old oxide forums and well I am not that great at coding lol.
// Steam ID of the profile you want to use the icon from
string ID = "76561198872518477";
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;
}
Now when I create it as a cs file and drop it in plugins I get this error:
Error while compiling: OnServerMessage.cs(4,8): error CS1525: Unexpected symbol `string'I dug around unity code and seems maybe { is wrong?