Promuj serwer
csb-admin-password / README.md
1 lines 1.4 KiB Markdown Source Rendered Raw Permalink History
<p><strong>CSB Admin Password</strong> is the fast way to close a server for a clan war or a private match. <code>amx_lock [password]</code> sets <code>sv_password</code> 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 <em>only</em> to admins. <code>amx_unlock</code> 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.</p><h2>Features</h2><ul><li><code>amx_lock [password]</code> &mdash; use your own password or get a generated one.</li><li>Random length set by <code>csb_lock_len</code> (clamped 4&ndash;20), from a confusion-free charset.</li><li>Password revealed only in the admin chat channel, never to regular players.</li><li>Recurring HUD reminder to admins while locked, kept in sync if <code>sv_password</code> is changed by hand.</li><li><code>amx_unlock</code> clears the password; both actions are logged.</li></ul><h2>Installation</h2><ol><li>Compile <code>csb_admin_password.sma</code> and copy it to <code>addons/amxmodx/plugins/</code>.</li><li>Add it to <code>plugins.ini</code> and change the map.</li></ol><p>Both commands need the <code>ADMIN_PASSWORD</code> flag (<code>i</code>) by default. Remember the server must have <code>sv_lan 0</code> to appear in the master list; a password does not remove it from the list, it just gates joining.</p>