View Single Post
Plugin Info:     Modification:          Category:          Approver:   Geesu (62)
GHW_Chronic
SourceMod Donor
Join Date: Sep 2004
Location: Texas
Old 10-08-2005 , 14:36   Auto Message Displayer (Advertiser)
Reply With Quote #1

This plugin allows you to setup both text and hud messages to be displayed every X seconds (messages are rotated through in order 1 by 1 displayed every X seconds)

CVARs:
advertise_hud_len - Time between each hud advertisement (Default: 120.0)
advertise_text_len - Time between each text advertisement (Default: 200.0)
advertise_hud_loc - Location of Hud Message (1=upper center | 2=center center) (Default: 1)

INI File Setup:
Code:
Hud/Text
[color]Insert Text Here[/color]
Hud and Text are constant words that the script uses to recongnize what type of message you wish to display.
Color in the hud can be any of the colors listed below. Only Green / Red / Blue for text though (Red/Blue will always display as the viewer's team color)

Hud Message Colors:

Red
Green
Blue
Yellow
Orange
Pink
Indigo
White

Example Messages.ini:
Quote:
Originally Posted by My Messages.ini
Hud
[Red]Your Are Playing At[/Red] [Blue]Devil's Playground[/Blue] [Green]1.1.1.1[/Green]

Text
To buy admin goto: [green]www.buyadminxomg.com[/green]
Note: messages.ini goes into your configs directory.
Note #2: For every color in the hud message it shows up on a different line (Too many lines may cause part of the text to cut off sometimes due to other plugins trying to display on the HUD). The above example would display as follows:
Your Are Playing At
Devil's Playground
1.1.1.1
Attached Files
File Type: sma Get Plugin or Get Source (GHW_Message_Disp.sma - 50558 views - 10.0 KB)
File Type: ini messages.ini (157 Bytes, 29053 views)

Last edited by GHW_Chronic; 06-21-2008 at 15:47.
GHW_Chronic is offline
Send a message via AIM to GHW_Chronic