Below is an example server.cfg file. The config below will work without requiring any changes! feel free to change things as you require. However, I suggest you change the rcon password to something else
example server.cfg file:
// Firestorm Games : CallofDuty2 : server.cfg
//
// Anything with "//" before it is a comment, it is not parsed by the server
//
// -------------------------------- //
// server settings (very important) //
// -------------------------------- //
sv_hostname "fsgames.net : Example Config Server" // name of the game server
set scr_motd "" // motd broke in 1.0
set sv_privateClients "0" // reserved player count
set rcon_password "" // rcon password
set sv_privatePassword "" // use this to password private slots (sv_privateClients must be set)
set g_password "" // set this to password your game server
sets g_needpass "0" // tell ASE (and others) if the server has a password enabled
sets _Admin "" // admins name or nickname (optional)
sets _Email "" // admins email address (optional)
sets _URL "" // website address (optional)
sets _HOST "Firestorm Games" // be proud! (optional)
sets _HOSTURL "www.fsgames.net" // be proud! (optional)
// ----------------------------------- //
// match settings (fairly important) //
// ----------------------------------- //
set g_allowvote "0" // voting
set scr_drawfriend "1" // draw team icons
set scr_friendlyfire "0" // enable or disable friendly fire
set scr_teambalance "1" // auto team balance
set scr_killcam "1" // show the user how they were killed (useful for spotting cheaters)
set scr_spectatefree "0" // free look
set scr_spectateenemy "0" // spectate enemy
set scr_forcerespawn "1" // force dead players to respawn
// ----------------------------------- //
// general settings (not so important) //
// ----------------------------------- //
set sv_pure "1" // pure file checking
set sv_cheats "0" // enable / disable cheats
set sv_minPing "0"
set sv_maxPing "0" // max ping limit
set sv_allowedClan1 "" // not sure what this does yet
set sv_allowedClan2 "" // not sure what this does yet
set sv_disableClientConsole "0" // disable clients console
set sv_reconnectlimit "3" // limit how long a player must wait to reconnect
seta sv_allowAnonymous "0"
set sv_allowdownload "1" // enable downloading
set sv_maxRate "25000" // max server rate
set g_banIPs ""
set sv_floodProtect "1" // flood protection
set sv_voice "0"
set sv_voiceQuality "1"
set g_log "" // change to 'games_mp.log' to enable logging
set g_logsync "1"
// --------------- //
// weapon settings //
// --------------- //
// weapon ammo pools
set g_weaponAmmoPools "0"
// snipers
set scr_allow_enfieldsniper "1"
set scr_allow_kar98ksniper "1"
set scr_allow_nagantsniper "1"
set scr_allow_springfield "1"
set scr_allow_svt40 "1"
// rifles
set scr_allow_enfield "1"
set scr_allow_kar98k "1"
set scr_allow_m1carbine "1"
set scr_allow_m1garand "1"
set scr_allow_nagant "1"
set scr_allow_g43 "1"
// machine guns
set scr_allow_bar "1"
set scr_allow_bren "1"
set scr_allow_mp44 "1"
set scr_allow_ppsh "1"
// sub-machine guns
set scr_allow_sten "1"
set scr_allow_mp40 "1"
set scr_allow_thompson "1"
set scr_allow_pps42 "1"
set scr_allow_greasegun "1"
// shotgun
set scr_allow_shotgun "1"
// grenades
set scr_allow_smokegrenades "1"
set scr_allow_fraggrenades "1"
// ------------------ //
// game type settings //
// ------------------ //
// S&D
set scr_sd_scorelimit "7"
set scr_sd_timelimit "350"
set scr_sd_roundlimit "11"
set scr_sd_roundlength "10"
set scr_sd_graceperiod "10"
// HQ
set scr_hqt_scorelimit "600"
set scr_hqt_timelimit "600"
// SW
set scr_sw_scorelimit "7"
set scr_sw_timelimit "350"
set scr_sw_roundlimit "11"
set scr_sw_roundlength "10"
set scr_sw_graceperiod "10"
// TDM
set scr_tdm_scorelimit "200"
set scr_tdm_timelimit "600"
// DM
set scr_dm_scorelimit "150"
set scr_dm_timelimit "600"
// CTF
set scr_ctf_scorelimit "5"
set scr_ctf_timelimit "400"
// ------------------ //
// set gameype to run //
// ------------------ //
set g_gametype "sd"
// ------------ //
// map rotation //
// ------------ //
set sv_mapRotation "gametype sd map mp_breakout gametype sd map mp_brecourt gametype sd map mp_burgundy gametype sd map mp_carentan gametype sd map mp_dawnville gametype sd map mp_decoy gametype sd map mp_downtown gametype sd map mp_farmhouse gametype sd map mp_leningrad gametype sd map mp_matmata gametype sd map mp_railyard gametype sd map mp_toujane gametype sd map mp_trainstation"
set sv_maprotationcurrent ""
map_rotate // this must be at the bottom of your config