9 hours ago9 hr Administrator Admins search active bans in the ban database by name, part of a name or SteamID and see ban date, length, reason and admin. Active Ban Search 1.0.0 (olds.ro) Admins search the active bans of an AMXBans database by part of a name or by SteamID, and see when each ban was made, how long is left, the reason and the admin. The query runs in a thread, so the server never waits for the database. Requirements AMX Mod X 1.10.0.5490 or newer, with the mysql module (sqlx)An AMXBans (6.x) ban table, <prefix>bans, with the columns player_nick, player_id, ban_created, ban_length (minutes, 0 = permanent), ban_reason, admin_nick and expired Install Compile scripting/olds_bansearch.sma and copy olds_bansearch.amxx to addons/amxmodx/plugins/.Copy data/lang/olds_bansearch.txt to addons/amxmodx/data/lang/.Set the database cvars below (in olds_bansearch.cfg). Settings (addons/amxmodx/configs/plugins/olds_bansearch.cfg, created on first run) olds_bsearch_host "127.0.0.1" database host (host:port works too) olds_bsearch_user "amxbans" user olds_bsearch_pass "" password olds_bsearch_db "amxbans" database olds_bsearch_prefix "amx_" table prefix; letters, digits and _ only olds_bsearch_max 20 most results per search (1-50) The connection cvars are protected (not shown to clients). Admin (ADMIN_BAN) amx_banfind <text|STEAM_ID> 2 to 32 characters. A SteamID is matched exactly; other text matches any part of the name (or an exact SteamID). Results: one line per ban in the console (name, SteamID, date, time left, reason, admin) and a MOTD list; "nothing found" in chat and console. One search at a time per admin, at most one every 2 seconds. Active bans expired = 0 AND (ban_length = 0 OR ban_created + ban_length * 60 > UNIX_TIMESTAMP()), newest first. Safety The text is escaped for LIKE (% and _ are matched literally) and then for SQL with SQL_QuoteString; the table prefix is checked.A database that is down gives a clear "database error" in the console and chat (and the log), and never stalls the server.Every search is written to the AMX log with the admin's name. No downloads. InstallDownload 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_bansearch.sma, test/bs_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-1067). Active Ban Searchv1.0.0Counter-Strike 1.6PluginNot tested yetAMX Mod X 1.10Server engine HLDS, ReHLDSNeeds ReAPI NoMetamod Metamod-R0 downloads5.7 KBUpdated 9 hours agoSign in to downloadolds_bansearch.smaPawn (AMX Mod X) · 314 lines3 files/* * Active Ban Search (olds.ro) * Copyright (C) 2026 daemon (olds.ro), written by daemon's plugin agent * * This program is free software: you can redistribute it and/or modify it under the terms * of the GNU General Public License as published by the Free Software Foundation, either * version 3 of the License, or (at your option) any later version.Show all 314 linesChangelogVersions (1)Install into: cstrike/Open the full page →
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.