{ "name": "CSB Admin Logger", "category": "admin", "tags": "logging, audit, mysql", "image": "", "original_author": "", "original_url": "", "license": "GPL-3.0", "title": "CSB Admin Logger", "short_desc": "Logs every admin command (kick/ban/gag/slay/slap/map) with SteamID, target, map and time to MySQL via threaded SQLx, with a flat-file fallback and a csb_log_action native.", "version": "1.0.0", "amxx_min": "1.9", "amxx_compile_default": "1.9", "rehlds_ok": true, "hlds_ok": true, "regamedll_required": false, "metamod_flavor": "any", "reapi_required": false, "modules": "sqlx", "install_notes": "1. Enable the sqlx module in addons/amxmodx/configs/modules.ini\n2. Set csb_log_sql_host/user/pass/db (or leave empty for file-only)\n3. Put csb_admin_logger.amxx in addons/amxmodx/plugins/ and add it to plugins.ini\n4. Change map", "known_conflicts": "If two copies of this plugin (or two command watchers) load, admin actions will be logged twice.", "cvars": [ { "name": "csb_log_sql_host", "default": "127.0.0.1", "description": "MySQL host (empty disables the DB and uses file logging)." }, { "name": "csb_log_sql_user", "default": "root", "description": "MySQL user." }, { "name": "csb_log_sql_pass", "default": "", "description": "MySQL password." }, { "name": "csb_log_sql_db", "default": "amxx", "description": "MySQL database name." } ], "commands": [], "main": "addons/amxmodx/scripting/csb_admin_logger.sma" }