Promuj serwer

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