How to make Yellow Lettering
Moderator: Moderators
How to make Yellow Lettering
Hello,
I was just wondering if there was a way in making Yellow lettering on the left-center of the screen. Like for saying the server IP and what map rotations are going on
I was just wondering if there was a way in making Yellow lettering on the left-center of the screen. Like for saying the server IP and what map rotations are going on
Use the iprintln_noloc command.
Example:
Example:
Code: Select all
serverinfo:
while(1)
{
wait 30
iprintln_noloc "You are on " (getcvar sv_hostname) " server"
wait 1
iprintln_noloc "IP: " (getcvar net_ip) ":" (getcvar net_port)
wait 2
iprintln_noloc "Map rotation: " (getcvar sv_maplist)
wait 90
}
end
-
omniscient
- Major General
- Posts: 694
- Joined: Tue Sep 16, 2003 12:02 am
Well if you are hosting, yes, otherwise, noomniscient wrote:hehehe, if u typed that in mohaa console in a server (by that i mean the mohaa comands) would it display on the screen just for u?
Ok, new map script should be like this:-=DSC=-DM wrote:So could you give me a run down on how to do it and make it
Code: Select all
main:
// cvar stuff here
level waittill prespawn
// possibly there is some stuff here
level waittill spawn
// add the line below
thread serverinfo
// more stuff might be here
end
// more threads could be here....
// add this all at the bottom of the script:
serverinfo:
while(1)
{
wait 30
iprintln_noloc "You are on " (getcvar sv_hostname) " server"
wait 1
iprintln_noloc "IP: " (getcvar net_ip) ":" (getcvar net_port)
wait 2
iprintln_noloc "Map rotation: " (getcvar sv_maplist)
wait 90
}
end
By the way, windows has a problem with .scr files. It thinks they're screensavers. To change this(so you can doubleclick to open), if you have windows xp, open any folder. Click Tools>Folder Options>File Types. Here click new extension and fill it out. Then choose your preferred text editor. Enjoy! 
33rd[SS]SCpl.*LiTe*|AD|SP|
"Casualties many; Percentage of dead unknown; Combat efficiency; we're winning."
- Colonel David M. Shoup
"Casualties many; Percentage of dead unknown; Combat efficiency; we're winning."
- Colonel David M. Shoup
