=CR= Slaughter Posted November 16, 2007 Share Posted November 16, 2007 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 Quote Link to comment Share on other sites More sharing options...
Woolf Posted November 16, 2007 Share Posted November 16, 2007 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. Quote Link to comment Share on other sites More sharing options...
Raistlin Posted November 16, 2007 Share Posted November 16, 2007 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. Quote Link to comment Share on other sites More sharing options...
=CR= Slaughter Posted November 17, 2007 Author Share Posted November 17, 2007 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 Quote Link to comment Share on other sites More sharing options...
TombGuard351 Posted November 20, 2007 Share Posted November 20, 2007 (edited) 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 November 20, 2007 by TombGuard351 Quote Link to comment Share on other sites More sharing options...
IB{S.a.n.d.m.a.n} Posted November 23, 2007 Share Posted November 23, 2007 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 Quote Link to comment Share on other sites More sharing options...
kev Posted November 23, 2007 Share Posted November 23, 2007 (edited) 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 November 23, 2007 by kev Quote Link to comment Share on other sites More sharing options...
IB{S.a.n.d.m.a.n} Posted November 23, 2007 Share Posted November 23, 2007 Right again ;) Thanks Can you explain the color format and also color format for in game names? Thanks! Quote Link to comment Share on other sites More sharing options...
kev Posted November 23, 2007 Share Posted November 23, 2007 // 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* Quote Link to comment Share on other sites More sharing options...
bartman Posted November 24, 2007 Share Posted November 24, 2007 (edited) 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 November 24, 2007 by bartman Quote Link to comment Share on other sites More sharing options...
Benway Posted November 24, 2007 Share Posted November 24, 2007 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. Quote Link to comment Share on other sites More sharing options...
Cain Posted December 9, 2007 Share Posted December 9, 2007 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 Quote Link to comment Share on other sites More sharing options...
EDom - Rude Dude Posted December 10, 2007 Share Posted December 10, 2007 No, but each time you reload the PB config without pb_sv_taskempty, it will add duplicate tasks. So those messages will appear twice. Quote Link to comment Share on other sites More sharing options...
Hertz4 Posted June 21, 2008 Share Posted June 21, 2008 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 Quote Link to comment Share on other sites More sharing options...
Quarter Master Posted June 21, 2008 Share Posted June 21, 2008 it should look similar to this pb_sv_task 1 300 say "Welcome to the GuNslinger server! Enjoy your stay" Quote Link to comment Share on other sites More sharing options...
Hertz4 Posted June 21, 2008 Share Posted June 21, 2008 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. Quote Link to comment Share on other sites More sharing options...
Merlintime Posted June 21, 2008 Share Posted June 21, 2008 I found this guide helpful when working with Punkbuster automated messages. http://www.punksbusted.com/wiki/index.php/Automated_Messages Quote Link to comment Share on other sites More sharing options...
RocknRoll Posted June 21, 2008 Share Posted June 21, 2008 (edited) 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 June 21, 2008 by =GG= RocknRoll Quote Link to comment Share on other sites More sharing options...
Hertz4 Posted June 21, 2008 Share Posted June 21, 2008 (edited) 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 June 21, 2008 by Hertz4 Quote Link to comment Share on other sites More sharing options...
RocknRoll Posted June 21, 2008 Share Posted June 21, 2008 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: Quote Link to comment Share on other sites More sharing options...
Hertz4 Posted June 21, 2008 Share Posted June 21, 2008 (edited) 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 June 21, 2008 by Hertz4 Quote Link to comment Share on other sites More sharing options...
RoadWarrior Posted June 21, 2008 Share Posted June 21, 2008 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. Quote Link to comment Share on other sites More sharing options...
Hertz4 Posted June 21, 2008 Share Posted June 21, 2008 (edited) 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 June 21, 2008 by Hertz4 Quote Link to comment Share on other sites More sharing options...
Hertz4 Posted June 21, 2008 Share Posted June 21, 2008 (edited) 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 June 21, 2008 by Hertz4 Quote Link to comment Share on other sites More sharing options...
RocknRoll Posted June 21, 2008 Share Posted June 21, 2008 (edited) 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 June 21, 2008 by =GG= RocknRoll Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.