News Viewer v1.0.3

Post Reply
greenie
Full Member
Full Member
Posts: 1815
Joined: Sun Nov 21, 2021 4:55 pm
Jucator SA:MP ?: Nu
Nick:: greenie
Jucator CS ?: Nu

News Viewer v1.0.3

Post by greenie »

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:
* Title
news bla <h1>something</h1>
<u>HACKS</u>
<b>Aimbot</b>
<font size="7">Boom Headshot</font>

* BLA
Some more news here
will result in this (v1.0.0 screenshots):







(v1.0.1 Screenshots)
Read / Unread news:



Changelog:
v1.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
.zip
Post Reply

Return to “Server Management”