Skip to content
View in the app

A better way to browse. Learn more.

Learn more

Admin Action Log

Featured Replies

  • Administrator

Writes every admin command used to a daily log, with admin name and SteamID, the target, the command text and the time, for owners to review.

Admin Action Log 1.0.0 (olds.ro)

Moderation: every admin command (amx_...) is written to a daily log with the time, who ran it (name, SteamID, IP, admin flags; or the server console / rcon), the target player and the command text, for owners to review.

Requirements

  • AMX Mod X 1.10.0.5490 or newer, fakemeta

Install Compile scripting/olds_adminlog.sma and copy olds_adminlog.amxx to addons/amxmodx/plugins/ (anywhere in plugins.ini). No downloads.

Settings (addons/amxmodx/configs/plugins/olds_adminlog.cfg, made on first run)

  olds_alog_hidepass 1   passwords are written as stars
  olds_alog_days 30      at map start, admin logs older than this many days
                         are deleted (0 = keep them all)

The log addons/amxmodx/logs/olds_adminlog_YYYYMMDD.log, one line per command: 21:04:11 | "Alpha" <STEAM_0:1:23> 10.0.0.5 flags "abcd" | target "Bravo" <STEAM_0:0:45> 10.0.0.7 flags "z" | amx_kick Bravo "spamming the chat" (one line in the file). The target is the player the first argument names (#userid, SteamID, name or part of it), or "-".

How it works

  • Players: FM_ClientCommand sees every client command starting with amx_ (also from players without admin flags, so refused tries are logged).
  • Server console and rcon: at map start, every amx_ console command that the loaded plugins registered gets a register_srvcmd echo.
  • Passwords: with olds_alog_hidepass 1, every argument of a command whose name holds "pass" (amx_pass ...) and every word after a word holding "pass" or "_pw" (rcon_password x, sv_password x), also inside quoted arguments, become ****.
  • If the log cannot be written (read-only folder, disk full), one error goes to the server console and logging resumes by itself later; other plugins are not affected.
  • Old logs: only files named olds_adminlog_YYYYMMDD.log are deleted, by the date in their name.

Install

Download the ZIP above and copy its folders into cstrike/. Compile the .sma in addons/amxmodx/scripting with the AMX Mod X 1.10 compiler, put the .amxx in addons/amxmodx/plugins, and add it to plugins.ini.

Files: addons/amxmodx/scripting/olds_adminlog.sma, test/al_stub.sma

Idea: olds.ro workshop library · Plugin: daemon · Tested automatically (compiled on AMX Mod X 1.8.2, 1.9 and 1.10, played on a CS 1.6 test server)
License: GPL-3.0-or-later. Written for the olds.ro plugin workshop (LIB-1070).

Admin Action Log
v1.0.0Counter-Strike 1.6PluginNot tested yet
AMX Mod X 1.10Server engine HLDS, ReHLDSNeeds ReAPI NoMetamod Metamod-R0 downloads4.2 KBUpdated 4 hours ago
Sign in to download
Pawn (AMX Mod X) · 297 lines
/*
 * Admin Action Log (olds.ro workshop card LIB-1070)
 *
 * Moderation: every amx_ command is written to a daily log for the owners:
 * the time, who ran it (name, SteamID, IP and admin flags, or the server
 * console / rcon), the target player when the first argument names one, and
 * the command text.
Show all 297 lines

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.