Logs every say / say_team line with name, SteamID, team and time to a per-day file; amx_lastchat dumps recent lines.
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
sayandsay_teamwithout 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_lastchatprints 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_tofilelets you keep only the in-memory buffer if you do not want files on disk.
Installation
- Compile
csb_chat_logger.smaand copy it toaddons/amxmodx/plugins/. - Add it to
plugins.iniand 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).









