Daemon666 / CSB Stats Web Export Публичный

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

v1.0.0 96 загрузок GPL-3.0 Обновлено Aug 23, 2026
Daemon666 1.0.0 - Initial release. v1.0.0 Oct 28, 2025 1 Версии
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.
Установка
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
Cvar-ы
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.
История изменений — v1.0.0
1.0.0 - Initial release.
Версии →
Рейтинг

No ratings yet.

О плагине
Download v1.0.0
Compiled live from the source below — nothing pre-built.
Скачать .sma
Требования
AMX Mod X ≥ 1.9
Движок ReHLDS HLDS
ReGameDLL Необязательно
ReAPI Необязательно
Metamod Metamod / Metamod-r
Модули hamsandwich sqlx
Участники
Назад к плагинам