View Single Post
Plugin Info:     Modification:          Category:          Approver:   Brad (55)
GHW_Chronic
SourceMod Donor
Join Date: Sep 2004
Location: Texas
Old 04-25-2006 , 17:12   GHW Advanced MOTDs [BBCode + More]
Reply With Quote #1

  • This plugin was made to have 2 purposes, #1 was to add BBCode (Below) to MOTDs so that anyone can make advanced MOTDs, and #2 was to allows server managers to not be forced to upload images for MOTDs to the web but rather to have the ability to just place the images in their server's mod directory and upon connect the client could see the image on the MOTD.

How to use this plugin:
  • Just install this plugin like any ordinary plugin, then create an motd2.txt file in your game directory (example cstrike, czero, tfc, dod, ts, etc.). In your motd2.txt file you can add your BBCoded script like the example below. Note that first line must be "[bgcolor=?]". Anything else on line 1 will screw up the motd.

BBCode allowed in this plugin:
Code:
[ b]       - Bold
[ i]       - Italicize
[ u]       - Underline
[ img]     - Add Image
[ center]  - Center Text
[ right]   - Align Text to Right
[ justify] - Justify Paragraph
[ color=?] - Colored Text
[ bgcolor=?] - Color of background. Only can be used on line 1.
[ size=?]  - Change Text Size (1-24)
[ url=((http://blah.com))] - Link
There is no space after the "["s but I have to post it this way or the forum will interpret the BBCode.

Colors allowed in [color] + [bgcolor]:
Code:
darkred
red
pink
orange
brown
yellow
green
olive
cyan
darkblue
navy
blue
indigo
violet
white
black
Example motd2.txt: (Note that amxxlogo1.jpg is located in my server's cstrike directory.)
Code:
[bgcolor=black]
[ center][ img]amxxlogo1.jpg[/img][/center]

[ u][ b][ color=red][ size=4]Server Rules:[/size][/color][/b][/u]

[ color=white]
1. No swearing
2. Respect admins
3. No racism
4. No hacking (This includes all hacks)
5. No spamming
6. No TKing if FF is on

[ b]Report admin abuse at:[/b][/color]
[ url=((http://www.ghw-amxx.com))]GHW-AMXX Forums[/url]
Note: All images that are located in the mod directory must be downloaded by the client upon server entrance
Note #2: Images can be linked to websites as well. Example:
Code:
[ img]http://www.google.com/logo.jpg[/img]
Note #3: Images may appear larger ingame than on desktop because of difference in resolutions.
Note #4: everything is CASE SENSITIVE. Meaning doing [Color] will not work because it must be all lower cased.
Attached Files
File Type: sma Get Plugin or Get Source (GHW_MOTD.sma - 3834 views - 5.9 KB)

Last edited by GHW_Chronic; 01-05-2008 at 08:41.
GHW_Chronic is offline
Send a message via AIM to GHW_Chronic