Blockland Forums
Home
Help
Login
Register
Blockland Forums
»
Blockland Forums
»
Modification Help
»
Colored messages
« previous
next »
Print
Pages: [
1
]
Author
Topic: Colored messages (Read 419 times)
darerd
July 06, 2010, 10:17:03 PM
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);
Ad Bot
Advertisement
Chrono
July 06, 2010, 10:27:12 PM
Because \c3 needs to be a part of a string.
messageall('',"\c3" @ %client.name);
darerd
July 06, 2010, 10:32:12 PM
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
»
Chrono
July 06, 2010, 10:48:54 PM
%msg = SPC %a1;
This would cause problems.
Instead do:
function serverCmdMessage(%client,
%msg
)
{
%msg = trim(%msg);
messageall('',"\c3" @ %client.name @ "\c1"
SPC
%msg);
}
darerd
July 06, 2010, 11:14:01 PM
Thank you. The script now works.
Print
Pages: [
1
]
« previous
next »
Blockland Forums
»
Blockland Forums
»
Modification Help
»
Colored messages