LASTCS NETWORK®

The game never ends

CSstatsX SQL v0.7.4+2 — CS 1.6 Player Statistics Plugin [ReAPI]

CSstatsX SQL v0.7.4+2 — CS 1.6 Player Statistics Plugin [ReAPI]

dext3r.

BIO.LASTCS.RO
Administrator
Joined
Dec 9, 2025
Messages
117
Reaction score
7
Location
#biohazard
Community rank
#2
The most up-to-date
You do not have permission to view link Log in or register now.
for tracking server player statistics , including kills, deaths, time spent online, and other details is CSstatsX SQL v0.7.4+2 by serfreeman1337 . Statistics are tracked using the "ELO" method and formula, which is considered the most accurate and precise. You can also record weapons, maps, and other data (disabled by default).

Statistics can be configured to use a local file (SQL) or a remote MySQL database. Kills made using the
You do not have permission to view link Log in or register now.
plugin are also recorded in the statistics . This plugin is required for the correct operation of many other plugins, such as
You do not have permission to view link Log in or register now.
rank system and display in the server informer, among others.

Please note! This plugin itself provides no additional functionality; it merely serves as a core component for certain other plugins that require it on the server. CSstatsX SQL only calculates player statistics and writes the data to the database. It doesn't output any data to the server. To output data to, for example, /top on the server, you need the AES: StatsX CStrike plugin, which is already included in the
You do not have permission to view link Log in or register now.
. More information is available in the official GitHub section .

Requirements:​


You do not have permission to view link Log in or register now.
module

Amxx 1.8.2, Amxx 1.9.0.

1) Unzip the plugin archive.
2) It's best to link the statistics to a MySQL database, as originally configured in the config. Create a database on your web hosting, then open the plugin config file at cstrike/addons/amxmodx/configs/plugins/plugin-csstatsx_sql.cfg and fill in the database connection fields, specifying the host address where the database is located, the database username, password, and the database name. Alternatively, if you don't have web hosting, you can connect to a local database by specifying "mysql" instead of "sqlite" in the csstats_sql_type var. After setting up the connection, you generally don't need to touch the other parameters; the config file is initially configured adaptively. Otherwise, you can customize the details as desired.
3) Next, simply upload the entire archive contents from the cstrike folder to the cstrike folder on your server. The basic
You do not have permission to view link Log in or register now.
, by the way, is already compiled for AMXX 1.9.0 using
You do not have permission to view link Log in or register now.
version 5.24 includes. The source code is included in the archive, if needed.
4) Add the csstatsx_sql.amxx plugin name to the plugins.ini configuration file at the top of the list. You can do this under the ban system or anti-cheat settings, but above regular plugins.
5) Change the map to test the plugin's operation. Use the amxx plugins command in the server console . The plugin should return the running status . Also, monitor the server console for responses from the plugin confirming it has successfully connected to the database. If you see something like " #1045 Access denied for user 'root'@'localhost' (using password: NO) ", you either specified the connection parameters incorrectly or remote access to the database is not established. Once AES: StatsX CStrike is enabled on the server for /top output, don't forget to disable the basic server statistics plugin statsx.amxx . This completes the installation. Enjoy the game.

If you're having trouble, or if everything seems out of whack, please contact me
You do not have permission to view link Log in or register now.
about server and plugin setup. I'll help for a small fee.

csstats_sql_reset - a full statistics reset. This must be done in the server console or via RCON.

Settings in the config​

// Plugin version
// DO NOT edit this cvar!
// Plugin version
// Do not edit this cvar!
// -
// Default: "0.7.4+2"
csstatsx_sql "0.7.4+2"

// MySQL database host address
// MySQL host
// -
// Default: "localhost"
csstats_sql_host "localhost"

// MySQL database user
// MySQL user
// -
// Default: "root"
csstats_sql_user "root"

// MySQL database user password
// MySQL user password
// -
// Default: ""
csstats_sql_pass "pass"

// MySQL database name
// DB Name MySQL
// -
// Default: "amxx"
csstats_sql_db "amxx"

// The name
of the table that will be created in the MySQL database
// -
// Default: "csstats"
csstats_sql_table "csstats"

// Type of database usage for the MySQL or SQLite
plugin ( local DB)
// mysql - MySQL
// sqlite - SQLite
// -
// Default: "mysql"
csstats_sql_type "mysql"

// Automatic table creation when starting the plugin and connecting to the MySQL DB
// Auto create tables
// 0 - Do not send a create table query
// 0 - don't send create table query
// 1 - Send a create table query on map load
// 1 - send create table query on map load
// -
// Default: "1"
csstats_sql_create_db "1"

// When to update player statistics in the database
// -2 - on death and disconnection
// -1 - on round end and disconnection
// 0 - on disconnection
// Value above 0 means every n seconds and disconnection
// How to update player stats in db
// -2 - on death and disconnection
// -1 - on round end and disconnection
// 0 - on disconnection
// higher than 0 - every n seconds and disconnection
// -
// Default: "-1"
csstats_sql_update "-1"

// Enable native forwards for client_death, client_damage
// 0 - disable
// 1 - enable. Required if you want to replace the csx module
. // Enable native forwards for client_death, client_damage
// 0 - disable
// 1 - enable.required if you want replace csx module
// -
// Default: "0"
csstats_sql_forwards "0"

// How to calculate player rank (rank formula)
// "0" kills - deaths - tk
// "1" kills
// "2" kills + headshots
// "3" skill
// "4" online time
// How to rank player
// 0 - kills - deaths - tk
// 1 - kills
// 2 - kills + hs
// 3 - skill
// 4 - online time
// -
// Default: "0"
csstats_sql_rankformula "0"

// Using skill formula
// By the "SKILL ELO" method
// Skill formula
// 0 - The ELO Method
// -
// Default: "0"
csstats_sql_skillformula "0"

// Enable weapon statistics (/rankstats)
// 0 - disable
// 1 - enable
// This will create a new table csstats_weapons in your database
// NOTE: the table will only be created if you set cvar csstats_sql_create_db to 1
// Enable weapon stats (/rankstats)
// 0 - disable
// 1 - enable
// This will create a new table csstats_weapons in your database
// NOTE: The table will only be created if you set cvar csstats_sql_create_db to 1
// -
// Default: "0"
csstats_sql_weapons "0"

// Enable map statistics (/sestats)
// 0 - disable
// 1 - enable
// NOTE: You need to import csstats_maps.sql
// Check installation instructions
// Enable player session stats (/sestats)
// 0 - disable
// 1 - enable
// NOTE: You need to import csstats_maps.sql
// Check install instructions
// -
// Default: "0"
csstats_sql_maps "0"

// The number of inactive days after which a player's stats will be re-checked. (delete function)
// In simple terms, when specifying the number of days, the plugin will delete the player's statistics from the database if he has not logged into the game for the specified number of days.
// Number of inactive days after which the player's stats will be retested. (prune function)
// -
// Default: "0"
csstats_sql_autoclear "0"

// Use cache for get_stats
// "-1" Update at the end of the round or by time csstats_sql_update
// "0" Disable using cache
// Cache option
// -1 - enabled
// 0 - disabled
// NOTE: Doesn't work with csstats_sql_update -2 or 0
// -
// Default:"-1"
csstats_sql_cachetime "-1"

// Automatically clears all game statistics from the database on the specified day of the month.
// Full stats reset on the specified day of the month.
// -
// Default: "0"
csstats_sql_autoclear_day "0"

// Minimum damage to count assists. 0 - disable assists
// Minimum damage to count assists
// 0 - disable this feature
// -
// Default: "50"
csstats_sql_assisthp "50" // By what

principle to take into account player statistics
// -1 - do not take into account at all // 0 - by nickname
// 1
- by STEAM ID (Recommended)
// 2 - by IP // Default: "0" csstats_rank "1"
You do not have permission to view link Log in or register now.



Hidden link
Log in or register to unlock this link.
 
Back
Top