CSB Chat Logger

v1.0.0 0 pobrań Daemon666 Ostatnia aktualizacja: Jul 15, 2026

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 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).

Instalacja

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/

Cvary

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).

Komendy

CommandAccessDescription
amx_lastchat c (ADMIN_KICK) Dump the last chat lines to your console.

Lista zmian — v1.0.0

1.0.0 - Initial release.
Wersje →
Współtwórcy: Daemon666 ✦
Licencja: GPL-3.0

Ocena

No ratings yet.

Download v1.0.0

Compiled live from the source below — nothing pre-built.
Pobierz .sma
Pliki:
csb_chat_logger.sma main 3.5 KB

Wymagania

AMX Mod X ≥ 1.9
Engine ReHLDS HLDS
ReGameDLL Opcjonalne
ReAPI Opcjonalne
Metamod Metamod / Metamod-r
Wróć do Pluginów