PDA

View Full Version : Automessages from the console in game


Sid77
04-23-2004, 07:21 PM
Do you need some sort of mod for the console to give out automatic messages during the game? Stuff like "Welcome to ....." "We are actively recruiting" "Any players caught TKing will be banned" ???

I've recently just set up a clan (with 3 others) and don't have much experience running a server. We've got everything up and running no probs I just want some help on tweaking it that little bit more.

Any help would be greatly appreciated.

Thanks

<AcA>.Sid
Armchair Army

jdwright
04-23-2004, 08:02 PM
If you using 1.4 w/ PB you can do it with PB tasks. This example was posted on teh linux mailing list today.


// ************************************************** ******************************
// TASKS SETTINGS
// ************************************************** ******************************

// pb_sv_taskdel [slot#]
// Deletes a task in your list of tasks by slot number. This is useful in keeping multiple tasks
// from piling up and repeating themselves. In your pbsv.cfg you should insert this command right before your list of
// tasks to make sure you start off clear.

pb_sv_taskdel 1
pb_sv_taskdel 2
pb_sv_taskdel 3

// pb_sv_task [start-seconds] [optional-run-every-seconds]
// This allows server admins to set a task starting from a specified time in seconds and then running again every x
// seconds there after. If no re-run value is specified then the task is only run once. This feature is not limited to
// PB functions and can run in-game functions as well. You may use more than one task if you like. Example:
//
// pb_sv_task 10 300 "say ^3Visit us at www.yourwebsite.com"
// pb_sv_task 15 305 "say ^5Email server admins: admin@yoursite.com"
// pb_sv_task 700 "pb_sv_bindsrch com_maxfps"
// pb_sv_task 700 "pb_sv_bindsrch m_pitch"
//
// This will spam your two messages on screen and re run them at the specified times. The last two will run a bind-cvar
// check once only.
//
// pb_sv_tlist Shows what tasks you have running and shows you what slot number each task is assigned to.

pb_sv_task 25 300 "say ^3CDB ADMIN:^7 ^1FF is ON - watch your Fire!"
pb_sv_task 30 300 "say ^3CDB ADMIN:^7 ^1Cheaters, Team-Killers and -Wounders get kicked/banned!"
pb_sv_task 140 300 "say ^3Map Rotation:^7 ^3Stalingrad, Neuville, Carentan"

Sid77
04-24-2004, 06:55 PM
Thanks for the info, I take it you do this from within the console using rcon right? Do you have a link where I can find these commands all in one place? I'm pretty raw to this and want something pretty straightforward to follow.....incase I f*** it all up :lol:

Anex
04-24-2004, 09:32 PM
http://www.evenbalance.com/publications/cod-ad/index.htm