CSB MOTD News v1.0.0
CSB MOTD News shows a news / changelog MOTD, but only when it actually changed. The news file's first line carries a version number; that number is stored per SteamID in an nVault, so a returning player is not shown the same news twice. The MOTD is rendered from a local file, or from a URL if one is set, and players can re-open the latest news any time with /news.
Features
- Version-gated: shows only when the first-line version increases.
- Per-SteamID last-seen version stored in nVault.
- Local file or URL source (
csb_news_url). /newsre-opens on demand.
Installation
- Enable the
nvaultmodule inmodules.ini. - Put a
csb_news.txtin the game (mod) directory whose first line is a version number, followed by your HTML news. - Compile
csb_motd_news.sma, copy it toaddons/amxmodx/plugins/and add it toplugins.ini.
Установка
1. Enable the nvault module in addons/amxmodx/configs/modules.ini 2. Put csb_news.txt (first line = version number) in the mod directory 3. Put csb_motd_news.amxx in addons/amxmodx/plugins/ and add it to plugins.ini 4. Change map
Cvar-ы4
| CVAR | Default | Description |
|---|---|---|
csb_news_enabled | 1 | Enable or disable auto-showing news. |
csb_news_file | csb_news.txt | Mod-relative path to the news file. |
csb_news_url | | Optional URL to show instead of the file. |
csb_news_title | Server News | MOTD window title. |
Команды1
| Command | Access | Description |
|---|---|---|
say /news | | Re-open the latest news MOTD. |
Рейтинг
No ratings yet.









