Kinsman
many thanks. Have tried this and most of it works, I can now get messages to spam with different timings, so grateful for your post!
So far no luck with the colours. The game.sayAll seems not to work in RO2, same for the colour codes.
Here is what I have done, on my test pc:
a) Create a file pbsvspam.cfg and save it into the binaries\win32\pb
b) Start a game server
b) From the web admin console in Management Console issue the command
PB_SV_Load pbsvspam.cfg
c) Load the game and connect to the game server to see the messages
Messages spam as expected, though no colour and I'm not to sure how to configure the game or PB to load the spam cfg when the server starts!
Sample pbsvspam.cfg
Code:
// pbsvspam.cfg - PB tasks to send messages to server visitors
// Pick and try out your own config with some of the examples below
//
// Delete and restart game instance if you need to remove these
// PB server manual: http://www.evenbalance.com/publications/bf2-ad/index.htm#settings
//
// 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
//
// Attempt at rules
//
pb_sv_task 10 60 say [RULE] Offensive chat will get you kicked. No Warnings!
pb_sv_task 40 60 say [RULE] Please be respectful
pb_sv_task 70 60 say [RULE] Please go for the objectives
pb_sv_task 40 60 say [RULE] This is a realism server, please go for the objectives
pb_sv_task 50 60 say [RULE] Anyone teamkilling on purpose will be BANNED
pb_sv_task 60 60 say [RULE] Please apologise for Team Kills
pb_sv_task 70 60 say [RULE] Anyone teamkilling on purpose will get you BANNED
//
//
// Attempt at information
//
pb_sv_task 80 100 say [INFO] Join our TeamSpeak 3 at 31.132.2.122 password is brothers
pb_sv_task 90 100 say [INFO] This server is now streaming to PBBans
pb_sv_task 100 100 say [INFO] Check us out at www.brothersclan.co.uk
pb_sv_task 110 100 say [INFO] Press T (default) to find objectives
pb_sv_task 120 100 say [INFO] To find out where the objectives are press M (default) for full info and T (default) for quick heads up
pb_sv_task 130 100 say [INFO] Please press escape and add our server to your favorites
pb_sv_task 140 100 say [INFO] Hello to everyone and welcome to the Brothers ranked server.
pb_sv_task 150 100 say [INFO] Brothers are recruiting, go to our website for details www.brothersclan.co.uk
pb_sv_task 160 100 say [INFO] Brothers RO HOS server running in Realism mode
pb_sv_task 600 100 say [INFO] Need help with RO2? Visit us for technical/idiot guides at www.brothersclan.co.uk
//
//
Anyone know how to add this file
pbsvspam.cfg with the
PB_SV_Load from the game command line?