Prodvigat server
csb-admin-chat / README.md
1 lines 1.9 KiB Markdown Source Rendered Raw Permalink History
<p><strong>CSB Admin Chat</strong> gives admins three chat channels, chosen by how many <code>@</code> characters they type:</p><ul><li><code>@message</code> &mdash; private channel; only players holding the admin flag see it.</li><li><code>@@message</code> &mdash; a coloured announcement to every player.</li><li><code>@@@message</code> &mdash; a centred HUD message (also mirrored in chat, because a HUD message is easy to miss).</li></ul><p>Everything is re-emitted with <code>message_begin(MSG_ONE, SayText)</code> and the sender's entity index, so the standard colour codes (<code>^x01</code> normal, <code>^x03</code> team colour, <code>^x04</code> green) render correctly and the <code>(DEAD)</code> marker stays accurate in the admin channel.</p><p>Inspired by <em>Admin Chat Colored</em> by AlexALX. Independent GPL re-implementation.</p><h2>Features</h2><ul><li>Access flag is a cvar (<code>csb_achat_flag</code>, default <code>d</code> = ADMIN_BAN), parsed with <code>read_flags()</code>.</li><li>Configurable prefix (default <code>ADMIN</code>) &mdash; set it to <code>OWNER</code>, your clan tag, whatever.</li><li>HUD colour and hold time are cvars.</li><li>Every message is written to the AMXX log with the admin's name, SteamID and channel &mdash; useful when someone claims an admin was abusive.</li><li>Non-admins typing <code>@</code> are simply passed through to normal chat; nothing is swallowed.</li></ul><h2>Installation</h2><ol><li>Compile and copy <code>csb_admin_chat.amxx</code> into <code>addons/amxmodx/plugins/</code>.</li><li>Add it to <code>addons/amxmodx/configs/plugins.ini</code>.</li><li>Optionally set <code>csb_achat_flag</code> and <code>csb_achat_prefix</code> in <code>amxx.cfg</code>.</li><li>Change the map.</li></ol><h2>Notes</h2><p>No modules are required &mdash; the plugin only uses core natives, so it loads on any AMX Mod X 1.9 install with no extra modules enabled.</p>