Daemon666 / CSB Admin Password Öffentlich

amx_lock sets sv_password (random or given) and shows it to admins only; amx_unlock clears it. A HUD reminder keeps admins aware the server is locked.

v1.0.0 147 Downloads GPL-3.0 Zuletzt aktualisiert Aug 23, 2026
Daemon666 1.0.0 - Initial release. v1.0.0 May 24, 2026 1 Versionen
csb_admin_password.sma main 07995dd 3.9 KB
README.md

CSB Admin Password is the fast way to close a server for a clan war or a private match. amx_lock [password] sets sv_password to the string you give it, or generates a short random one (ambiguous characters like 0/O and 1/I are left out), and prints the password only to admins. amx_unlock clears it again. While the server is locked a HUD reminder with the current password is shown to admins so nobody forgets it is on.

Features

  • amx_lock [password] — use your own password or get a generated one.
  • Random length set by csb_lock_len (clamped 4–20), from a confusion-free charset.
  • Password revealed only in the admin chat channel, never to regular players.
  • Recurring HUD reminder to admins while locked, kept in sync if sv_password is changed by hand.
  • amx_unlock clears the password; both actions are logged.

Installation

  1. Compile csb_admin_password.sma and copy it to addons/amxmodx/plugins/.
  2. Add it to plugins.ini and change the map.

Both commands need the ADMIN_PASSWORD flag (i) by default. Remember the server must have sv_lan 0 to appear in the master list; a password does not remove it from the list, it just gates joining.

Installation
1. Put csb_admin_password.amxx in addons/amxmodx/plugins/
2. Add it to addons/amxmodx/configs/plugins.ini
3. Change map
Cvars
CVARDefaultDescription
csb_lock_len 6 Length of the generated password when amx_lock is used with no argument (clamped 4-20).
Befehle
CommandAccessDescription
amx_lock i (ADMIN_PASSWORD) amx_lock [password] - lock the server (random password if omitted).
amx_unlock i (ADMIN_PASSWORD) Unlock the server (clears sv_password).
Änderungsprotokoll — v1.0.0
1.0.0 - Initial release.
Versionen →
Bewertung

No ratings yet.

Info
Download v1.0.0
Compiled live from the source below — nothing pre-built.
.sma herunterladen
Anforderungen
AMX Mod X ≥ 1.9
Engine ReHLDS HLDS
ReGameDLL Optional
ReAPI Optional
Metamod Metamod / Metamod-r
Bekannte Konflikte Any plugin or RCON script that also manages sv_password can override the lock.
Mitwirkende
Zurück zu den Plugins