function serverCmdSetChatColor(%client,%colorName,%colorChat) //might want an admin check on this
{
if(strLen(%colorName) != 6 || strLen(%colorChat) != 6)
{
messageClient(%client,'',"Please use a valid hex code.");
return;
}
%client.colorName = %colorName;
%client.colorChat = %colorChat;
}
package msgStuff
{
function serverCmdMessageSent(%client,%msg)
{
if(%client.colorName $= "") //name color
%colorName = "ffff00";
else
%colorName = %client.colorName;
if(%client.colorChat $= "") //chat color
%colorChat = "ffffff";
else
%colorChat = %client.colorChat;
%name = "\c7" @ %client.clanPrefix @ "<color:" @ %colorName @ ">" @ %client.getPlayerName() @ "\c7" @ %client.clanSuffix;
messageAll('',%name @ "<color:" @ %colorChat @ ">:" SPC %msg);
echo(%client.name @ ":" SPC %msg);
%client.lastMsg = %msg;
}
};
activatePackage(msgStuff);
Made this up really quick. not tested
EDIT: not sure if this would break other mods...