Daemon666 / CSB Chat Logger Public

Logs every say / say_team line with name, SteamID, team and time to a per-day file; amx_lastchat dumps recent lines.

v1.0.0 128 descărcări GPL-3.0 Ultima actualizare Aug 22, 2026
Daemon666 1.0.0 - Initial release. v1.0.0 Oct 26, 2025 1 Versiuni
csb_chat_logger.sma main e02576e 3.5 KB
README.md

CSB Chat Logger writes a permanent record of in-game chat for moderation. Every say and say_team line is captured with a timestamp, channel, team, player name and SteamID and appended to a per-day file (csb_chat_YYYY-MM-DD.log) with write_file(). The last 20 lines are also kept in memory so an admin can run amx_lastchat and read recent chat straight in their console without opening a file.

Features

  • Hooks say and say_team without swallowing them — messages still reach normal chat.
  • Per-day log file, one line per message: [HH:MM:SS] (ALL) TEAM Name <STEAM_ID>: text.
  • amx_lastchat prints an in-memory ring buffer of the most recent 20 lines to the caller's console.
  • Skips empty messages and / or ! command-style lines so the log is not polluted by other plugins' menus.
  • csb_chatlog_tofile lets you keep only the in-memory buffer if you do not want files on disk.

Installation

  1. Compile csb_chat_logger.sma and copy it to addons/amxmodx/plugins/.
  2. Add it to plugins.ini and change the map.

Log files are written under addons/amxmodx/logs/ (the AMXX logs directory) by default. amx_lastchat needs the ADMIN_KICK flag (c).

Instalare
1. Put csb_chat_logger.amxx in addons/amxmodx/plugins/
2. Add it to addons/amxmodx/configs/plugins.ini
3. Change map
4. Files appear as csb_chat_YYYY-MM-DD.log in addons/amxmodx/logs/
Cvar-uri
CVARDefaultDescription
csb_chatlog_enabled 1 Enable or disable chat capture.
csb_chatlog_tofile 1 Also append every line to a per-day log file (0 = memory buffer only).
Comenzi
CommandAccessDescription
amx_lastchat c (ADMIN_KICK) Dump the last chat lines to your console.
Jurnal de modificări — v1.0.0
1.0.0 - Initial release.
Versiuni →
Evaluare

No ratings yet.

Despre
Download v1.0.0
Compiled live from the source below — nothing pre-built.
Descarcă .sma
Cerințe
AMX Mod X ≥ 1.9
Engine ReHLDS HLDS
ReGameDLL Opțional
ReAPI Opțional
Metamod Metamod / Metamod-r
Contribuitori
Înapoi la Pluginuri