Author Topic: Is there a command for a server-side chat message?  (Read 560 times)

Is there a way to change the font, color, and maybe a few other things in the chat, server-sided? I know you can do it client-sided; I've already done that. I'd like to make mine server-sided though.

Please help.

You can use the same <color:...>, <font:...:...>, etc. tags as you would in event or client-side messages in combination with any of these functions:

messageAll('',"<color:FFFF00>Text Here");
messageClient(%client,'',"<color:FFFF00>Text Here");
%minigame.messageAll('',"<color:FFFF00>Text Here");

You can use the same <color:...>, <font:...:...>, etc. tags as you would in event or client-side messages in combination with any of these functions:

messageAll('',"<color:FFFF00>Text Here");
messageClient(%client,'',"<color:FFFF00>Text Here");
%minigame.messageAll('',"<color:FFFF00>Text Here");

And how would I apply this to everyone's chat?

You'd have to override servercmdmessagesent() and servercmdteammessagesent() to send the message differently.

Not really that recommended as it wouldn't work with peoples' chat size preferences or may be hard to read.

Ok, thanks for the advice Space Guy.