Thread: text script
View Single Post
Under compass text
Old
  (#6)
nsscorpion is Offline
Senior Member
 
Posts: 183
Join Date: May 2003
   
Default Under compass text - 10-03-2003, 08:46 AM

1st u need to make a script and call it for example server_message.scr and put in it something like this:

message:

setcvar "g_mymessage" "1" // allows you to turn message OFF/ON

level waittill spawn

local.mess1 = "Hello Buddies"
local.mess2 = "This Is My Server"
local.mess3 = "Visit Our Website"
local.mess4 = "Please email me"

while (1) // while condition remains true. In this case the "if" statement
{
if (getcvar (g_mymessage) =="1")
{
wait .1
iprintln local.mess1 \n local.mess2 // Prints 2 lines that fades together
wait 10
iprintln local.mess3 \n local.mess4 // Use "iprintlnbold" if you want the white text w/ click
}

wait 120 // wait 2 mins before loop
}
end

save the script in a folder called global on your desktop and on to the next part.

Make a folder called maps inside that put 2 folders 1 called dm 1 called obj
and put all the map scripts u want message to appear on in here. Make sure u put objective in obj and so on.

Open up the scripts and put the line exec/global/server_message.scr (or whatever you called it) put it under the exec global/DMprecache.scr is where i have it.

Save your scripts and pak up the global and maps folders and you are done.

Stick it in your server and away you go.

this is a corruption of the tut i learned from but unfortunatly i forgot who did it sorry!!

regards scorp
  
Reply With Quote