Promote server
Black Friday Ends in 50% off a Master Server place and the Client list, which comes with LIFETIME PREMIUM
03 Days 14 Hrs 53 Min 17 Sec
See the deals

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).
  • /news re-opens on demand.

Installation

  1. Enable the nvault module in modules.ini.
  2. Put a csb_news.txt in the game (mod) directory whose first line is a version number, followed by your HTML news.
  3. Compile csb_motd_news.sma, copy it to addons/amxmodx/plugins/ and add it to plugins.ini.
Installation
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
CVARs4
CVARDefaultDescription
csb_news_enabled1Enable or disable auto-showing news.
csb_news_filecsb_news.txtMod-relative path to the news file.
csb_news_urlOptional URL to show instead of the file.
csb_news_titleServer NewsMOTD window title.
Commands1
CommandAccessDescription
say /newsRe-open the latest news MOTD.
Rating
No ratings yet