Author Topic: Colored messages  (Read 419 times)

I know that this would show everyone my name in red,

messageall('',%client.name);

But why isn't this applying a color to it?

messageall('',\c3%client.name);

Because \c3 needs to be a part of a string.

messageall('',"\c3" @ %client.name);

Thank you.
Didn't work. It worked before I tried adding the colors, but here's the full thing.


function serverCmdMessage(%client, %a1)
{
   %msg = SPC %a1;
   %msg = trim(%msg);
   messageall('',"\c3" @ %client.name @ "\c1" @ %msg);
}
« Last Edit: July 06, 2010, 10:42:47 PM by darerd »

 %msg = SPC %a1;

This would cause problems.
Instead do:

function serverCmdMessage(%client, %msg)
{
   %msg = trim(%msg);
   messageall('',"\c3" @ %client.name @ "\c1" SPC %msg);
}

Thank you. The script now works.