Raised This Month: $12 Target: $400
 3% 

Dynamic MOTD v1.1


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Plugin Info:     Modification:   ALL        Category:   Statistical       
Hawk552
AMX Mod X Moderator
Join Date: Aug 2005
Old 01-11-2006 , 18:12   Dynamic MOTD v1.1
Reply With Quote #1

Description:

Ever wanted a motd that wasn't completely retarded, like the one built in to counterstrike? What this plugin does is modify the motd file such that it contains a welcome message as well as the number of clients that have visited the server to date. It doesn't have to be like this though - you can use your old MOTD. It simply replaces a select few tags with numbers to give your MOTD more freedom without javascript and other crazy stuff that the Steam browsers don't support. It saves into a file in your data directory called "visits.ini", so you can also see how many connects your server has had.

-------------------------------------------------------------------

Required stuff:

- A mod that supports HTML MOTDs. If you know how to code HTML, you can easily change this so it only contains text, and the plugin will still work.

-------------------------------------------------------------------

Installation:

Install like any other plugin.

After this is installed, it should create a file called "motd_dynamic.txt" in your $moddir (if playing counterstrike, it's cstrike, day of defeat = dod, Team Fortress Classic = tfc, etc)

Edit this file to suit your motd. Add in the tag "<uptime>" and "<visits>" and this plugin will dynamically replace those tags with their respective numbers.

If you don't know HTML, then just use the default MOTD that comes with it.

-------------------------------------------------------------------

Notes:

- To modify the background color, open up the plugin, find #define BGCOLOR, and change it to whatever. How to change it: #rrggbb (red green blue)

- This is designed for people who do not know how to code in Javascript, PHP, or any language, but wish you have a semidecent MOTD with these abilities.
Attached Files
File Type: sma Get Plugin or Get Source (dynamic_motd.sma - 4525 views - 4.9 KB)
__________________
Hawk552 is offline
Send a message via AIM to Hawk552
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 08:55.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode