Jump to content

adding auto text to a COD4 server


=CR= Slaughter

Recommended Posts

I'm not sure how to do it with any rcon or other admin utilitities specifically for COD4, but you can do it with PB.

 

pb_sv_task X Y "say Z"

X = when the message should start. If you start at 60, just keep increasing by 60 (60, 120, 180, 240...)

Y = how often the server message should repeat it self. 420 = 7 minutes. You could probably lower this.

Z = the server message

 

E.g, to display 3 messages every 60 seconds, you might use something like this:

pb_sv_task 60 420 "say Blah Blah Blah Blah...."

pb_sv_task 120 420 "say Message 2.. blah blah blah"

pb_sv_task 180 420 "say Message 3... blah blah blah"

That should work. Let me know if it doesn't.

Link to comment
Share on other sites

Not sure if this will work on COD 4 or if there is a similar update to a cod 4 compatible but I use it for COD 2 servers and if it would stop a server being ranked.

 

Message generator

 

http://callofduty.filefront.com/file/CoD2_...Generator;49589

 

INSTALLATION

 

A) Copy the file 'ZZZ_message_generator.iwd' into your Call of Duty 2\main directory on your server.

 

B) 1.Add below lines to your server.cfg

2.Edit lines however you like.

3.Adjust scrolling time. Must be greater than 5 seconds.

 

 

 

 

//RD Msg Center Text Settings

seta sv_linerd1 "test1"

seta sv_linerd2 "test2"

seta sv_linerd3 "test3"

seta sv_linerd4 "test4"

seta sv_linerd5 "test5"

seta sv_linerd6 "test6

seta sv_linerd7 "tets7"

seta sv_linerd8 "test8"

seta sv_rddelay "30" // Time between msg's, must be >5 secs

 

 

TO REMOVE

 

Delete/remove this mod from your Call of Duty 2 demo\main directory.

Link to comment
Share on other sites

I'm not sure how to do it with any rcon or other admin utilitities specifically for COD4, but you can do it with PB.

 

pb_sv_task X Y "say Z"

X = when the message should start. If you start at 60, just keep increasing by 60 (60, 120, 180, 240...)

Y = how often the server message should repeat it self. 420 = 7 minutes. You could probably lower this.

Z = the server message

 

E.g, to display 3 messages every 60 seconds, you might use something like this:

That should work. Let me know if it doesn't.

That works thanks, not sure on the other program i'll give it a shot and see what it'll do thanks guy's

Link to comment
Share on other sites

all i'm needing is text that will auto post in the server every x seconds/minutes etc. any help on this is much appreciated

Method 1 (easy)

Download ModernRcon 0.2 after joining up on www.codhq.com's forums. This version was just released yesterday. It is specifically for COD4, and now has auto messaging abilty. The downside is you have to keep the tool up and running for the messages to scroll.

 

 

Method 2 (a little more involved, but not dependent on client side Rcon tools to run)

 

From evenbalance.com:

 

PB_SV_Task [X] [Y] [command]

Adds a task to PB's Task List; The Task will be executed X seconds after entry and every Y seconds thereafter; use -1 for Y if a one-time task is desired; this can be used to execute game server commands as well as PB commands

 

Create a file called (just an example, you can call it anything you want) svrmsgs.cfg. Add this text to it and edit for your needs using the explanation above from evenbalance.com:

 

pb_sv_taskempty

// Task setup for PunkBuster

//where <color> =  
//^1 for Red
//^2 for Green
//^3 for Yellow
//^4 for Blue
//^5 for Cyan
//^6 for pink/Magenta
//^7 for White
//^8 for Black

//where <message> = the text you want to scroll 

pb_sv_task 10 1000 "say <color><message1>"	  
pb_sv_task 100 1100 "say <color><message2>"   
pb_sv_task 200 1200 "say <color><message3>"
pb_sv_task 300 1300 "say <color><message4>"
pb_sv_task 400 1400 "say <color><message5>"

 

Then upload the svrmsgs.cfg file to your pb directory on the server, and edit your pbsv.cfg file to call the svrmsgs.com by adding "pb_sv_load svrmsgs.cfg"

 

Finally, do a pb_sv_restart and you should see your messages start to scroll after the first X value of seconds has passed.

Edited by TombGuard351
Link to comment
Share on other sites

OK, I too wished for these actions but was NOT able to get the pb_sv_load task.cfg to work, however the program MordenRecon does work, but as you said has to always be on...

 

 

nice post

Link to comment
Share on other sites

firstly you must have a pbsv.cfg so if you have skip this part

type in the server console pb_sv_writecfg this will create that file for you

============================

I do it like this

at the bottom of you pbsv.cfg add this line and then save the changes

 

pb_sv_load svrmsgs.cfg //server console messages

 

then open notepad and save it as svrmsgs.cfg

 

now add this to the svrmsgs.cfg changing it too your messages and save then upload them to your server with a restart it should work

pb_sv_taskempty

 

pb_sv_TaskDel 1

pb_sv_TaskDel 2

pb_sv_TaskDel 3

pb_sv_TaskDel 4

pb_sv_TaskDel 5

pb_sv_TaskDel 6

pb_sv_TaskDel 7

pb_sv_TaskDel 8

 

 

// Task setup for PunkBuster

 

pb_sv_task 20 620 "say ^5Welcome to ^my server"

pb_sv_task 60 660 "say ^1No Foul Language or Bad Name Tags"

pb_sv_task 100 700 "say ^3Respect all players, ^1Don't cheat!! ^5You will be caught then banned!"

pb_sv_task 140 740 "say ^5Email server admin:my mail addy"

pb_sv_task 180 780 "say ^5Please...^1WATCH YOUR LANGUAGE AND CONDUCT!"

pb_sv_task 220 820 "say ^3Visit us @ ^mysite"

pb_sv_task 260 860 "say ^2 We are Recruiting ^1S^5&^1D ^2Players!"

pb_sv_task 400 900 "say ^5Thanks for visiting our server. Come back soon!"

Restart and away you go..same as above really lol Well this works for me :)

Edited by kev
Link to comment
Share on other sites

// These are the codes used to make your text colored...

// "^1OC_^3PlayerName" <-- like that

//

// ^1 = Red*

// ^2 = Green*

// ^3 = Yellow*

// ^4 = Blue*

// ^5 = Cyan*

// ^6 = pink/Magenta*

// ^7 = White*

// ^0 = Black*

Link to comment
Share on other sites

Oce pb_sv_task is set up correctly ,,it works a treat,, plus it means that you DO NOT have to have a external rcon aplication running ,, thus constantly contacting the actual game server to tell it to send the messages.

Edited by bartman
Link to comment
Share on other sites

pb_sv_taskempty

// Task setup for PunkBuster

// etc.

note pb_sv_taskempty will remove all other pb tasks running on the server, e.g. pb_sv_task 50 7200 pb_sv_ver ... in case of use i suggest to add all other tasks at the end of the cfg.

Link to comment
Share on other sites

  • 3 weeks later...

pb_sv_taskempty

// Task setup for PunkBuster

// etc.

note pb_sv_taskempty will remove all other pb tasks running on the server, e.g. pb_sv_task 50 7200 pb_sv_ver ... in case of use i suggest to add all other tasks at the end of the cfg.

 

Is it really necessary for us to have to use pb_sv_taskempty??

 

Thx !!

 

-- Cain

Link to comment
Share on other sites

  • 6 months later...

Excuse me if I sound dumb, but where is the task list that you guys refer too? I want to add 3 messages to scroll all the time(never stop) every 2 mins.

I have tried the different ways by adding the lines like shown here

 

pb_sv_task 60 420 "say Blah Blah Blah Blah...."

pb_sv_task 120 420 "say Message 2.. blah blah blah"

pb_sv_task 180 420 "say Message 3... blah blah blah"

 

I add them to the end of the pbsv.cfg

Am I adding them to the wrong place? The messages never show up even after a pb_sv_restart

Link to comment
Share on other sites

Does it go into the pbsv.cfg?

Theres actually 3 messages I want but not all said at same time. Here. This is what Im looking to do

 

1st message - Welcome to my server

2nd message - Recruitments at blah blah

3rd message - check stats at blah blah

 

Now 1st message, wait 120 seconds, 2nd message, wait 120 secs, 3rd message, wait 120 secs, 1st message and so on and so on.

Link to comment
Share on other sites

Does it go into the pbsv.cfg?

Just like from a few posts up, I use a separate config for Tasks/Messages.

Pbsv.cfg loads the config: pb_sv_load svrmsgs.cfg

//**********************//
//*****[ PB TASKS ]*****//
//**********************//

pb_sv_TaskEmpty		// Empties the list of Tasks in memory.


//** PB_SV_Task [X] [Y] [command]
//** Adds a task to PB's Task List; The Task will be executed X seconds after entry and
//** every Y seconds thereafter; use -1 for Y if a one-time task is desired; this can be 
//** used to execute game server commands as well as PB commands


// Task setup for Messages

pb_sv_task 20 315 "say ^5Welcome! ^3to the ^7G^4rey^7G^4uardClan ^3CoD4 Server"
pb_sv_task 55 315 "say ^1Friendly Fire is ON !!! ^5Apologize ^3for ^5ANY ^3and ^5ALL ^3Team Kills!!!!"
pb_sv_task 90 315 "say ^5PLEASE...^3Watch your ^5LANGUAGE ^3and ^5CONDUCT!"
pb_sv_task 125 315 "say ^1Don't cheat!! ^3You will be ^5caught, ^3then ^5banned!"
pb_sv_task 160 315 "say ^1No ^5Bunny-Hopping ^3allowed!!"
pb_sv_task 195 315 "say ^3Visit us at ^1www.^7G^4rey^7G^4uardClan^1.com"
pb_sv_task 230 315 "say ^3We stream our logs to ^5PBBans ^3 and ^5PunksBusted"
pb_sv_task 265 315 "say ^3Our ^5Ventrilo ^3IP: ^5 64.237.62.226:4613"
pb_sv_task 300 315 "say ^3Thanks for visiting our server. ^5Come back soon!"



//*** Call of Duty 4 forces pb_sv_guidrelax to 7 on each map_rotate or restart,
//*** server starts, etc. The only way to 'fix' it, is with a pb_sv_task that 
//*** constantly reassigns it. 
//*** Not sure why, but according to PB it can't be fixed by them just yet.

pb_sv_task 60 240 pb_sv_guidrelax 0

//**********************************************
//**********************************************

 

This is what Im looking to do

 

1st message - Welcome to my server

2nd message - Recruitments at blah blah

3rd message - check stats at blah blah

 

Now 1st message, wait 120 seconds, 2nd message, wait 120 secs, 3rd message, wait 120 secs, 1st message and so on and so on.

3 messages 120 seconds apart, rotating. Example:

pb_sv_task 20 360 "say MESSAGE #1"
pb_sv_task 140 360 "say MESSAGE #2"
pb_sv_task 260 360 "say MESSAGE #3"

Edited by =GG= RocknRoll
Link to comment
Share on other sites

Ok. I have this as my svrmsgs.cfg

 

 

pb_sv_taskempty

 

// Task setup for PunkBuster

 

//where <color> =

//^1 for Red

//^2 for Green

//^3 for Yellow

//^4 for Blue

//^5 for Cyan

//^6 for pink/Magenta

//^7 for White

//^8 for Black

 

//where <message> = the text you want to scroll

 

pb_sv_task 10 1000 "^1Welcome to the ^0Dissidents ^2Rising ^1Public HC server"

pb_sv_task 100 1100 "^2We are recruiting mature players. Register at www.gamerztheatre.com/dissidents"

pb_sv_task 200 1200 "^1Check www.cod4tracker.com for stats"

 

Now in my pbsv.cfg at the bottom I have this

pb_sv_load svrmsgs.cfg

 

I went into server and did a pb_sv_restart

 

Nothing shows up. What am I doing wrong?

Edited by Hertz4
Link to comment
Share on other sites

Ok. I have this as my svrmsgs.cfg

 

//where <message> = the text you want to scroll

 

pb_sv_task 10 1000 "^1Welcome to the ^0Dissidents ^2Rising ^1Public HC server"

pb_sv_task 100 1100 "^2We are recruiting mature players. Register at www.gamerztheatre.com/dissidents"

pb_sv_task 200 1200 "^1Check www.cod4tracker.com for stats"

 

What am I doing wrong?

 

pb_sv_task 10 1000 "say ^1Welcome to the ^0Dissidents ^2Rising ^1Public HC server"

pb_sv_task 100 1100 "say ^2We are recruiting mature players. Register at www.gamerztheatre.com/dissidents"

pb_sv_task 200 1200 "say ^1Check www.cod4tracker.com for stats"

 

After we get the messages showing up we'll work on your times. :lol:

Link to comment
Share on other sites

It works. lol. I did however have to reset the server though as well. Anyway thanks guys for the responses. Really appreciate it. Take care now.

Edited by Hertz4
Link to comment
Share on other sites

If you use the pb_sv_task function to create server messages in the console, a simple pb_sv_restart command will execute them once you've added the servermsgs.cfg to your pb folder and the exec command to your pbsv.cfg of pbsvuser.cfg. You don't need to reboot the server at all. One simple rcon command is all it takes.

Link to comment
Share on other sites

Ya I know. Thats what I was doing originally and it didn't work. As soon as I rebooted the server, they started working, kind of. See next post.

Edited by Hertz4
Link to comment
Share on other sites

After we get the messages showing up we'll work on your times. :lol:

 

:) Ok. Now I did notice the messages only show up one time. Are they not supposed to keep going? This is what I have now and I wanted to know if I have to keep repeating for the messages to always show up.

 

pb_sv_task 20 1000 "say ^1Welcome to the ^0Dissidents ^2Rising ^1Public HC server."

pb_sv_task 100 1100 "say ^2We are recruiting mature players. Register at www.gamerztheatre.com/dissidents"

pb_sv_task 200 1200 "say ^1You can view your stats at www.cod4tracker.com."

pb_sv_task 300 1300 "say ^1Welcome to the ^0Dissidents ^2Rising ^1Public HC server."

pb_sv_task 400 1400 "say ^2We are recruiting mature players. Register at www.gamerztheatre.com/dissidents"

pb_sv_task 500 1500 "say ^1You can view your stats at www.cod4tracker.com."

 

And what do the 2nd numbers mean, the 1000,1100,1200 etc? Join the server if you get a min and see what I mean how they only go once. The ip is 216.169.106.54:28960

 

Thanks again.

 

P.S. When I do the pb_sv_restart on my server, even if Im not logged in, it resets. Is this only resetting clientside? SDorry again if this sounds noobish but really I am a noob at this.

Edited by Hertz4
Link to comment
Share on other sites

And what do the 2nd numbers mean, the 1000,1100,1200 etc?

//** PB_SV_Task [X] [Y] [command]
//** Adds a task to PB's Task List; The Task will be executed X seconds after entry and
//** every Y seconds thereafter; use -1 for Y if a one-time task is desired; this can be 
//** used to execute game server commands as well as PB commands

"X" = first time the task/message runs

"Y" = when the task/message repeats

 

This is what I have now

 

pb_sv_task 20 1000 "say ^1Welcome to the ^0Dissidents ^2Rising ^1Public HC server."

pb_sv_task 100 1100 "say ^2We are recruiting mature players. Register at www.gamerztheatre.com/dissidents"

pb_sv_task 200 1200 "say ^1You can view your stats at www.cod4tracker.com."

pb_sv_task 300 1300 "say ^1Welcome to the ^0Dissidents ^2Rising ^1Public HC server."

pb_sv_task 400 1400 "say ^2We are recruiting mature players. Register at www.gamerztheatre.com/dissidents"

pb_sv_task 500 1500 "say ^1You can view your stats at www.cod4tracker.com."

With those settings you will eventually overlap your messages.

 

Theres actually 3 messages I want but not all said at same time. Here. This is what Im looking to do

 

1st message - Welcome to my server

2nd message - Recruitments at blah blah

3rd message - check stats at blah blah

 

Now 1st message, wait 120 seconds, 2nd message, wait 120 secs, 3rd message, wait 120 secs, 1st message and so on and so on.

3 messages 120 seconds apart, rotating. Example:

pb_sv_task 20 360 "say MESSAGE #1"
pb_sv_task 140 360 "say MESSAGE #2"
pb_sv_task 260 360 "say MESSAGE #3"

 

 

Make it this:

pb_sv_task 20 360 "say ^1Welcome to the ^0Dissidents ^2Rising ^1Public HC server."
pb_sv_task 140 360 "say ^2We are recruiting mature players. Register at www.gamerztheatre.com/dissidents"
pb_sv_task 260 360 "say ^1You can view your stats at www.cod4tracker.com."

1st message will run at 20 seconds

2nd will run 120 seconds after 1st [ 120 + 20 (from 1st) = 140 ]

3rd will run 120 seconds after 2nd [ 120 + 140 (from 2nd) = 260 ]

 

1st will repeat 120 seconds after the 3rd [ 120 + 260 (from 3rd) = 380 - 20 (from 1st) = 360 ]

Then they will repeat in order 120 seconds after the previous.

1st = runs at 20 seconds

+ 120 seconds

2nd = runs at 140 seconds

+ 120 seconds

3rd = runs at 260 seconds

+ 120 seconds

1st = runs at 380 seconds

+ 120 seconds

2nd = runs at 500 seconds

+ 120 seconds

3rd = runs at 620 seconds

+ 120 seconds

1st = runs at 740 seconds

+ 120 seconds

2nd = runs at 860 seconds

+ 120 seconds

3rd = runs at 980 seconds

+ 120 seconds

etc

etc

etc

Edited by =GG= RocknRoll
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.