• AMX Guide Home
  • Step 1: Installing AMX
  • Step 2: Enabling AMX
  • Step 3: Configuring AMX
  • AMX by File:
    • amx.cfg
    • mysql.cfg
    • clcmds.ini
    • cmds.ini
    • configs.ini
    • cvars.ini
    • maps.ini
    • modules.ini
    • paths.ini
    • plugins.ini
    • speech.ini
    • users.ini
  • AMX by Topic:
    • Creating Admins
    • Commands Guide
    • Plugin Installation
    • Plugin Compiling
    • Module Setup
    • Menu Use
    • Language Setup
    • Language Install
    • Weapon Restriction
    • Stats Setup
    • Custom Map Configs
  • Misc. Resources
  • Credit
AMX Mod 2005v1.0 Setup Guide
Half-Life server administration

Stats - Setting up in-game stats

A few popular stat options come enabled by default. As there are many options to choose from, you will need to decide what features you want enabled or disabled. Doing this is fairly easy and can be done two different ways. The first method is with the Stats Settings menu. Below is what the first page looks like. You activate this menu from the amxmodmenu, or by using the amx_statscfgmenu command in your console.

Stats Configuration
1. Show Killer HP&AP
2. Show Attackers
3. Show Victims
4. Show Killer
5. Show Team Score
6. Show Total Stats
7. Show Best Score

8. Save configuration

9. More...
0. Exit
1/4
OFF
ON
ON
ON
OFF
OFF
OFF
 

Each stat can be toggled ON or OFF by selecting the number in front of what you want enabled or disabled. Option 9 will show you additional stat options not shown in the first page of the menu. If you want the changes you make to be permanent, choose option 8 to save the configuration.

Be aware that you can't have "everything" enabled for a couple reasons. For one, there would be so much text popping up on your screen constantly that it would annoy almost anyone.

The second method for changing what stat features are enabled is via the server console or using rcon. Type the command amx_statscfg in your console. You will get this:

Usage: amx_statscfg <command> [parameters] ...
Commands:
    on <variable> - enable specified option
    off <variable> - disable specified option
    save - save stats configuration
    load - load stats configuration
    list [id] - list stats status
    add <name> <variable> - add stats to the list

Basically, your commands are:

  • amx_statscfg on <variable>
  • amx_statscfg off <variable>
  • amx_statscfg list
  • amx_statscfg save
  • amx_statscfg load <customstat.cfg>

To show a list of what stats are available, do amx_statscfg list in the console. The variable column contains the name you use to enable/disable. Here is what amx_statscfg list shows us with the default options enabled:

----- Stats Configuration: -----
     name                            variable                   status
  1: Show Killer HP&AP               KillerChat                 OFF
  2: Show Attackers                  ShowAttackers              ON
  3: Show Victims                    ShowVictims                ON
  4: Show Killer                     ShowKiller                 ON
  5: Show Team Score                 ShowTeamScore              OFF
  6: Show Total Stats                ShowTotalStats             OFF
  7: Show Best Score                 ShowBestScore              OFF
  8: Show Most Disruptive            ShowMostDisruptive         OFF
  9: HUD-stats default               ShowStats                  ON
 10: Dist&HS in HUD lists            ShowDistHS                 OFF
----- Entries 1 - 10 of 44 -----
----- Use 'amx_statscfg list 11' for more -----

amx_statscfg list 11 will show you additional stats not shown on the first page of the list. Use the same method for the third (21) and fourth (31) page, etc.

If you wanted to enable say /top15, you would do it like this:

amx_statscfg on SayTop15

And then amx_restrict list would show you this:

 18: Say /top15                      SayTop15                   ON

These changes are kept in a file called stats.ini in the addons\amx\config folder. This is a text file and can be opened as such, but it's recommended to use one of the two methods above for making changes to the stats. If this file is edited while the server is running, unpredictable results will probably occur. This file doesn't exist until changes are saved using amx_statscfgmenu or amx_statscfg.

Additional help:

  • csstats_reset 1 - This is a cvar that will reset the stats. Changes take effect after the next map change.
  • csstats_rank - 0 = By name, 1 = By steamid, 2 = By IP address.
  • csstats_rankbots - 0 = Do not rank bots, 1 - Rank bots
  • csstats_maxsize - Default is 3500. This means after 3500 player entries the stats automatically reset.
  • csstats_storagetype - 0 = Binary, 1 - Plain text. (binary has better performance)
  • amx_bomb_frags - Set the number of kills awarded for a successful bomb plant or defusal.
Half-Life is a registered trademark of VALVe Software and Sierra
AMX Mod was created by OLO and is not affiliated with VALVe.