Logs every say / say_team line with name, SteamID, team and time to a per-day file; amx_lastchat dumps recent lines.
Daemon666
1.0.0 - Initial release.
| 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
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).
Installation
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/
Cvars
| CVAR | Default | Description |
|---|---|---|
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). |
Befehle
| Command | Access | Description |
|---|---|---|
amx_lastchat |
c (ADMIN_KICK) |
Dump the last chat lines to your console. |
Änderungsprotokoll — v1.0.0
1.0.0 - Initial release.Versionen →
Bewertung
No ratings yet.
Download v1.0.0
Anforderungen
| AMX Mod X | ≥ 1.9 |
| Engine | ReHLDS HLDS |
| ReGameDLL | Optional |
| ReAPI | Optional |
| Metamod | Metamod / Metamod-r |
Mitwirkende









