Blockland Forums > Modification Help
Colored messages
Pages: (1/1)
darerd:
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);
Chrono:
Because \c3 needs to be a part of a string.
messageall('',"\c3" @ %client.name);
darerd:
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);
}
Chrono:
%msg = SPC %a1;
This would cause problems.
Instead do:
function serverCmdMessage(%client, %msg)
{
%msg = trim(%msg);
messageall('',"\c3" @ %client.name @ "\c1" SPC %msg);
}
darerd:
Thank you. The script now works.
Pages: (1/1)