Promotiraj s'rv'r

CSB Match Stats Export v1.0.0

CSB Match Stats Export writes a complete match scoreboard so a website can render the match page. It tracks per-player kills, deaths, headshots and damage (ADR = damage / rounds), and on amx_exportstats inserts one row per player into MySQL with fully threaded SQLx under a numeric match id. If the database is not configured it falls back to a JSON-ish text file under addons/amxmodx/logs.

Features

  • Per-player kills, deaths, headshots, damage and ADR.
  • Threaded SQLx insert - the game thread is never blocked.
  • Numeric match id groups the rows for the website.
  • Text-file fallback when the DB is not configured.
  • amx_resetstats to clear tracking between matches.

Installation

  1. Enable the sqlx and hamsandwich modules in modules.ini.
  2. Set the csb_export_* cvars to your database credentials.
  3. Compile csb_match_stats_export.sma, copy it to addons/amxmodx/plugins/ and add it to plugins.ini.
  4. Change the map.
Инсталация
1. Enable the sqlx and hamsandwich modules in addons/amxmodx/configs/modules.ini
2. Set the csb_export_* cvars to your DB credentials
3. Put csb_match_stats_export.amxx in addons/amxmodx/plugins/ and add it to plugins.ini
4. Change map
Cvar-и4
CVARDefaultDescription
csb_export_host127.0.0.1MySQL host.
csb_export_usercsbMySQL user.
csb_export_passMySQL password.
csb_export_dbcsbMySQL database name.
Команди2
CommandAccessDescription
amx_exportstatsd (ADMIN_BAN)Export the current match scoreboard.
amx_resetstatsd (ADMIN_BAN)Clear the tracked match stats.
Оценка
Още няма оценки