@ for the admin-only channel, @@ for a coloured server announcement, @@@ for a HUD message.
Daemon666
1.0.0 - Initial release.
| csb_admin_chat.sma main | 2b06b94 | 5.1 KB |
README.md
CSB Admin Chat gives admins three chat channels, chosen by how many @ characters they type:
@message— private channel; only players holding the admin flag see it.@@message— a coloured announcement to every player.@@@message— a centred HUD message (also mirrored in chat, because a HUD message is easy to miss).
Everything is re-emitted with message_begin(MSG_ONE, SayText) and the sender's entity index, so the standard colour codes (^x01 normal, ^x03 team colour, ^x04 green) render correctly and the (DEAD) marker stays accurate in the admin channel.
Inspired by Admin Chat Colored by AlexALX. Independent GPL re-implementation.
Features
- Access flag is a cvar (
csb_achat_flag, defaultd= ADMIN_BAN), parsed withread_flags(). - Configurable prefix (default
ADMIN) — set it toOWNER, your clan tag, whatever. - HUD colour and hold time are cvars.
- Every message is written to the AMXX log with the admin's name, SteamID and channel — useful when someone claims an admin was abusive.
- Non-admins typing
@are simply passed through to normal chat; nothing is swallowed.
Installation
- Compile and copy
csb_admin_chat.amxxintoaddons/amxmodx/plugins/. - Add it to
addons/amxmodx/configs/plugins.ini. - Optionally set
csb_achat_flagandcsb_achat_prefixinamxx.cfg. - Change the map.
Notes
No modules are required — the plugin only uses core natives, so it loads on any AMX Mod X 1.9 install with no extra modules enabled.
Installation
1. Put csb_admin_chat.amxx in addons/amxmodx/plugins/ 2. Add it to plugins.ini 3. Change map No extra modules needed.
Cvars
| CVAR | Default | Description |
|---|---|---|
csb_achat_enabled |
1 |
Enable or disable the admin chat channels. |
csb_achat_flag |
d |
Access flag required to use the channels. |
csb_achat_prefix |
ADMIN |
Prefix shown in front of the message. |
csb_achat_hud_r |
255 |
HUD message red component. |
csb_achat_hud_g |
160 |
HUD message green component. |
csb_achat_hud_b |
0 |
HUD message blue component. |
csb_achat_hud_hold |
6.0 |
Seconds the HUD message stays on screen. |
Commandes
| Command | Access | Description |
|---|---|---|
say @message |
d |
Admin-only chat channel. |
say @@message |
d |
Coloured announcement to everyone. |
say @@@message |
d |
Centred HUD message to everyone. |
Journal des modifications — v1.0.0
1.0.0 - Initial release.Versions →
Note
No ratings yet.
À propos
Download v1.0.0
Prérequis
| AMX Mod X | ≥ 1.9 |
| Engine | ReHLDS HLDS |
| ReGameDLL | Optionnel |
| ReAPI | Optionnel |
| Metamod | Metamod / Metamod-r |
| Conflits connus | Other plugins that hook say and return PLUGIN_HANDLED on messages starting with @. |
Contributeurs









