News Viewer v1.0.3
Posted: Mon Nov 22, 2021 10:02 pm
News Viewer v1.0.3
Description:
Keep your players updated with this easy to use plugin.
Write your news in news.ini & the plugin will add the title to a menu
& display an MOTD with the article if chosen.
Features:
- Info messages
- Supports HTML formatting
- Only 1 file for all your news
- Background / font color cvars
- Style in news.ini will be taken over in the MOTD
- Read / Unread tags in titles menu
- Add news in-game using amx_addnews command
Cvars:
news_bgcolor #292421 "Default MOTD Background color"
news_fontcolor #BFBFBF "Default MOTD Font color"
news_advertdelay 400.0 "Time before showing news message again.
* Background & font colors can be set per MOTD using HTML formatting.
* I found these colors here.Google will help to find a color scheme creator or something if neccesary.
Usage:
Create amxmodx/configs/news.ini.
Add your news title with a * in front.
Write your article
Commands:
- amx_addnews "Title" "Article"
RCON flag needed for this command.
Article will be at the top of both the menu & news.ini file.
You can use </br> with the command to break the current line & continue on a new one.
- say /news
Displays news menu.
Example:
(v1.0.1 Screenshots)
Read / Unread news:
Changelog:
Description:
Keep your players updated with this easy to use plugin.
Write your news in news.ini & the plugin will add the title to a menu
& display an MOTD with the article if chosen.
Features:
- Info messages
- Supports HTML formatting
- Only 1 file for all your news
- Background / font color cvars
- Style in news.ini will be taken over in the MOTD
- Read / Unread tags in titles menu
- Add news in-game using amx_addnews command
Cvars:
news_bgcolor #292421 "Default MOTD Background color"
news_fontcolor #BFBFBF "Default MOTD Font color"
news_advertdelay 400.0 "Time before showing news message again.
* Background & font colors can be set per MOTD using HTML formatting.
* I found these colors here.Google will help to find a color scheme creator or something if neccesary.
Usage:
Create amxmodx/configs/news.ini.
Add your news title with a * in front.
Write your article
Commands:
- amx_addnews "Title" "Article"
RCON flag needed for this command.
Article will be at the top of both the menu & news.ini file.
You can use </br> with the command to break the current line & continue on a new one.
- say /news
Displays news menu.
Example:
will result in this (v1.0.0 screenshots):* Title
news bla <h1>something</h1>
<u>HACKS</u>
<b>Aimbot</b>
<font size="7">Boom Headshot</font>
* BLA
Some more news here
(v1.0.1 Screenshots)
Read / Unread news:
Changelog:
.zipv1.0.0: Created plugin
v1.0.1: Changed Motd_Limit to 1536 (ConnorMcLeod)
Added read/unread articles
Added amx_addnews command.
Added red/yellow menu text for unread/read messages.
v1.0.2: Optimized code & file handling.
v1.0.3: Small optimisations