Daemon666 / CSB Stats Web Export Public

Pushes end-of-map player stats to MySQL with one threaded multi-row INSERT for external ladder websites.

v1.0.0 96 téléchargements GPL-3.0 Dernière mise à jour Aug 23, 2026
Daemon666 1.0.0 - Initial release. v1.0.0 Oct 28, 2025 1 Versions
csb_stats_webexport.sma main 7a68699 4.7 KB
README.md

CSB Stats Web Export collects kills, deaths, headshots, damage and playtime per player and writes them to a MySQL table at map end. Everything goes out as a single multi-row INSERT ... ON DUPLICATE KEY UPDATE through a threaded SQLx query, so the game thread never blocks and the database sees one query per map. An external website can then render ladders straight from the table.

Features

  • Threaded SQLx - zero main-thread blocking.
  • One batched query per map, additive on conflict.
  • Connection details set by cvar.

Installation

  1. Enable the sqlx and hamsandwich modules and configure the MySQL section in addons/amxmodx/configs/sql.cfg or the csb_sql_* cvars.
  2. Create the csb_webstats table (schema in the source header).
  3. Compile, install, add to plugins.ini, change map.
Installation
1. Enable the sqlx and hamsandwich modules in addons/amxmodx/configs/modules.ini
2. Create the csb_webstats table (schema is documented in the source header)
3. Compile, install, add to plugins.ini, change map
Cvars
CVARDefaultDescription
csb_sql_host localhost MySQL host.
csb_sql_user amxx MySQL user.
csb_sql_pass MySQL password.
csb_sql_db csb_stats MySQL database.
Journal des modifications — v1.0.0
1.0.0 - Initial release.
Versions →
Note

No ratings yet.

À propos
Download v1.0.0
Compiled live from the source below — nothing pre-built.
Télécharger .sma
Prérequis
AMX Mod X ≥ 1.9
Engine ReHLDS HLDS
ReGameDLL Optionnel
ReAPI Optionnel
Metamod Metamod / Metamod-r
Modules hamsandwich sqlx
Contributeurs
Retour aux Plugins