This guide covers admin commands, game settings, map rotation, and server management for your IW4x (Call of Duty: Modern Warfare 2) server. For initial setup, see IW4x MW2 Server Setup Guide.
1. Server Console
You can execute commands through the GPanel Console tab or via userraw/server.cfg. Commands use the standard CoD console syntax.
2. Essential Server Commands
| Command | Description |
|---|---|
map [mapname] |
Immediately change to a specific map. |
map_rotate |
Switch to the next map in rotation. |
map_restart |
Restart the current map. |
fast_restart |
Quick restart without full map reload. |
kick [player] |
Kick a player from the server. |
ban [player] |
Permanently ban a player. |
tempban [player] |
Temporarily ban a player. |
unban [player] |
Remove a player's ban. |
status |
List all connected players with IDs. |
say [message] |
Broadcast a message to all players. |
3. Game Mode Configuration
Set the game mode in userraw/server.cfg:
set g_gametype "war"
| Gametype | Mode |
|---|---|
war | Team Deathmatch |
dm | Free-for-All |
dom | Domination |
sd | Search and Destroy |
sab | Sabotage |
ctf | Capture the Flag |
koth | Headquarters |
4. Map Rotation
Configure the map rotation in userraw/server.cfg:
set sv_maprotation "gametype war map mp_rust gametype war map mp_highrise gametype dom map mp_terminal"
Common Map Names
| Map Name | Display Name |
|---|---|
mp_rust | Rust |
mp_highrise | Highrise |
mp_terminal | Terminal |
mp_afghan | Afghan |
mp_derail | Derail |
mp_estate | Estate |
mp_favela | Favela |
mp_invasion | Invasion |
mp_quarry | Quarry |
mp_rundown | Rundown |
mp_scrapyard | Scrapyard |
mp_skidrow | Skidrow |
mp_subbase | Sub Base |
mp_underpass | Underpass |
mp_wasteland | Wasteland |
5. Key Server Settings
Add these to userraw/server.cfg:
| Setting | Default | Description |
|---|---|---|
sv_maxclients |
18 | Maximum players. |
scr_game_hardpoints |
1 | Enable killstreaks. 0 = disabled. |
scr_game_perks |
1 | Enable perks. 0 = disabled. |
scr_team_fftype |
0 | Friendly fire. 0 = off, 1 = on. |
scr_war_scorelimit |
7500 | TDM score limit. |
scr_war_timelimit |
10 | TDM time limit in minutes. |
6. Loading Mods
IW4x supports custom mods:
- Upload your mod files to a directory on the server via SFTP (e.g.
mods/mymod/). - Set the
MOD_DIRstartup variable to the mod directory name (e.g.mods/mymod). - Restart the server to load the mod.
- To unload a mod, clear the
MOD_DIRvariable and restart.
7. Troubleshooting
- Server not in browser: Wait for the
Sending heartbeat to mastermessage. If it doesn't appear, check for port or network issues. - Players cannot connect: Verify the correct IP, port, and password. Ensure the IW4x client version matches the server.
- Map rotation not working: Check
sv_maprotationsyntax -- each entry needs bothgametypeandmapkeywords. - Server crashes on map change: Verify map names are spelled correctly. Custom maps need to be properly installed.
Related Articles
Need Help?
If you need further assistance, open a support ticket with your server IP and any error messages from the GPanel console.