Page 1 of 1
How to make Yellow Lettering
Posted: Thu Jan 01, 2004 8:33 am
by -=DSC=-DM
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
Posted: Thu Jan 01, 2004 10:55 am
by jv_map
Use the iprintln_noloc command.
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
Posted: Fri Jan 02, 2004 2:47 am
by omniscient
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?
Help
Posted: Fri Jan 02, 2004 6:04 am
by -=DSC=-DM
So could you give me a run down on how to do it and make it
DM
Posted: Fri Jan 02, 2004 8:53 am
by jv_map
omniscient 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?
Well if you are hosting, yes, otherwise, no
-=DSC=-DM wrote:So could you give me a run down on how to do it and make it
Ok, new map script should be like this:
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
Posted: Fri Jan 02, 2004 12:22 pm
by -=DSC=-DM
Where do i find the script that you are talking about...?
Posted: Fri Jan 02, 2004 4:08 pm
by jv_map
In pak5.pk3, all dm and obj .scr files. You could also place this in the global/dm_precache.scr file (pak0.pk3).
Posted: Fri Jan 02, 2004 11:24 pm
by -=DSC=-DM
How do i edit/open these files
Posted: Sat Jan 03, 2004 10:11 am
by jv_map
Use any text editor of your preference

Posted: Sat Jan 03, 2004 5:27 pm
by LiTe
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!

Posted: Sat Jan 03, 2004 10:11 pm
by -=DSC=-DM
Thank you for all of your help, the both of you.

Posted: Mon Jan 05, 2004 11:27 am
by -=DSC=-DM
I have tryed that but still no Lettering on the side what should i do...
DM