View Full Version : Changing hostname colors?
captnroger
10-31-2003, 06:26 AM
Hi all,
How can I change the name of my server to show up in different colors when you display the list of servers within the game? I noticed some servers have their names listed in red, blue, etc... is there a tag to use or sometrhing?
rudedog
10-31-2003, 07:40 AM
From Scorpio of TMT=
This is great news.
You can have you text ouput in different colours !
print3d allows you to specifiy any colour you like using (r,g,b).
But you can also specify colours in normal print commands.
^1 = red
^2 = green
^3 = yellow
^4 = dark blue
^5 = light blue (cyan)
^6 = magenta
^7 = white
for instance:
print ("^1This is red text");
This is red text
or
iprintln ("^3I'm yellow, wooo hooo");
I'm yellow, wooo hooo
or
iprintlnbold ("Multi colour: ^1Hello ^2World");
Multi colour: Hello World
yes that's right you can have mixed colours on same line !
way to go IW
sphinx175
10-31-2003, 10:44 AM
Just an old Q3 engine trick. But no black. Could do black in ET and RtCW but not CoD :cry:
captnroger
10-31-2003, 10:46 AM
So I'm confused - how can I use this with my sv_hostname parm on my command line?
sphinx175
10-31-2003, 11:09 AM
Here's an Example
sv_hostname "^1Welcome ^2to ^3my ^4CoD ^5server"
Make sense?
rudedog
10-31-2003, 11:10 AM
should be like this
sv_hostname "^2codadmin.com"
This would look like codadmin.com or close to that color green
captnroger
10-31-2003, 11:28 AM
Got it, thanks! :)
Hammer
10-31-2003, 11:26 PM
It's always a good idea to finish any text with ^7 forcing color back to white. The game take care of adjusting for this, but it doesn't hurt. This is particularly important if you're in a clan and folks start changing their names a lot. You may want to instruct them to always leave text as white.
rudedog
11-01-2003, 08:37 AM
The only problem we have seen, thus removing any colors. Is if someone sorts the list by alphabetical order, your placed at the bottom.
Hammer
11-01-2003, 01:31 PM
It would be nice if the game stripped any color artifacts out during console output, e.g. status.
vBulletin® v3.8.7, Copyright ©2000-2012, vBulletin Solutions, Inc.