How to make Yellow Lettering

Post your scripting questions / solutions here

Moderator: Moderators

Post Reply
-=DSC=-DM
Private
Posts: 6
Joined: Thu Jan 01, 2004 8:31 am

How to make Yellow Lettering

Post 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
jv_map
Site Admin
Posts: 6521
Joined: Tue Sep 03, 2002 2:53 pm
Location: The Netherlands
Contact:

Post 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
Image
omniscient
Major General
Posts: 694
Joined: Tue Sep 16, 2003 12:02 am

Post 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?
-=DSC=-DM
Private
Posts: 6
Joined: Thu Jan 01, 2004 8:31 am

Help

Post by -=DSC=-DM »

So could you give me a run down on how to do it and make it

DM
jv_map
Site Admin
Posts: 6521
Joined: Tue Sep 03, 2002 2:53 pm
Location: The Netherlands
Contact:

Post 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 
Image
-=DSC=-DM
Private
Posts: 6
Joined: Thu Jan 01, 2004 8:31 am

Post by -=DSC=-DM »

Where do i find the script that you are talking about...?
jv_map
Site Admin
Posts: 6521
Joined: Tue Sep 03, 2002 2:53 pm
Location: The Netherlands
Contact:

Post 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).
Image
-=DSC=-DM
Private
Posts: 6
Joined: Thu Jan 01, 2004 8:31 am

Post by -=DSC=-DM »

How do i edit/open these files
jv_map
Site Admin
Posts: 6521
Joined: Tue Sep 03, 2002 2:53 pm
Location: The Netherlands
Contact:

Post by jv_map »

Use any text editor of your preference :D
Image
LiTe
Corporal
Posts: 34
Joined: Sat Dec 13, 2003 1:07 pm
Contact:

Post 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! :)
33rd[SS]SCpl.*LiTe*|AD|SP|

"Casualties many; Percentage of dead unknown; Combat efficiency; we're winning."
- Colonel David M. Shoup
-=DSC=-DM
Private
Posts: 6
Joined: Thu Jan 01, 2004 8:31 am

Post by -=DSC=-DM »

Thank you for all of your help, the both of you. :D
-=DSC=-DM
Private
Posts: 6
Joined: Thu Jan 01, 2004 8:31 am

Post by -=DSC=-DM »

I have tryed that but still no Lettering on the side what should i do...


DM
Post Reply