• AMX Guide Home
  • Step 1: Installing MetaMod
  • Step 2: Installing AMX
  • Step 3: Setting up AMX
  • AMX by File:
    • amx.cfg
    • mysql.cfg
    • clcmds.ini
    • cmds.ini
    • cvars.ini
    • maps.ini
    • modules.ini
    • plugins.ini
    • speech.ini
    • configs.ini
    • users.ini
  • AMX by Topic:
    Admins:
    • Creating
  • Commands:
    • Cmds Guide
  • Plugins:
    • Installing
    • Compiling
  • Modules:
    • Installing
  • Menus:
    • All Menus
  • Languages:
    • Config
    • Add
  • Popular:
    • Weapons
    • Stats Setup
  • Credit
AMX Mod Setup Guide
Half-Life server administration by OLO

Stats - Setting up in-game stats

Currently the stat features in AMX come turned off by default. As there are many options to choose from, you will need to decide what stat's you want enabled. 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 Attackers
2. Show Victims
3. Show Killer
4. Stats at the end of map
5. Top15 at the end of map
6. Show killer hp
7. Say /hp
1/7
OFF
OFF
OFF
OFF
OFF
OFF
 

Each stat can be toggled ON or OFF by selecting the number in front of what you want enabled. Option 9 will show you additional stat's 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 is would annoy almost anyone. Second, some options like "Stats at the end of the map" and "Top15 at the end of the map" can't both be on at the same time so you can only choose one.

The second method for restricting weapons is via the server console or using rcon. Type the command amx_restrict 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 stat's are available, do amx_statscfg list in the console. The variable column contains the name you use to enable. Here is what amx_statscfg list shows us:

----- Stats Configuration: -----
     name                            variable                   status
  1: Show Attackers                  ShowAttackers              OFF
  2: Show Victims                    ShowVictims                OFF
  3: Show killer                     ShowKiller                 OFF
  4: Stats at the end of map         EndPlayer                  OFF
  5: Top15 at the end of map         EndTop15                   OFF
  6: Show killer hp               KillerHpAp                 OFF
  7: Say /hp                         SayHP                      OFF
  8: Say /stats                      SayStatsAll                OFF
  9: Say /top15                      SayTop15                   OFF
 10: Say /rank                       SayRank                    OFF
----- Entries 1 - 10 of 44 -----
----- Use 'amx_statscfg list 11' for more -----

amx_statscfg list 11 will show you additional stat's not shown on the first page of the list. Use the same method for the third (21) and forth (31) page, etc. also.

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:

  9: 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 stat's. 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 console command that will reset the stats. Changes take effect after the next map change.
  • csstats_rank - 0 = By name, 1 = By Steamid/wonid, 2 = By IP address.
  • csstats_maxsize - Default is 3500. This means after 3500 player entries the stats automatically reset. Do not set this over 7000 or your server may suffer player time-outs at map change.
Half-Life is a registered trademark of VALVe Software and Sierra
AMX Mod was created by OLO and is not affiliated with VALVe.