Silent Banners: Difference between revisions

From MyGamingTalk
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
The settings file is a file that contains all the information about banners. You can enable banners by using g_settings.
The banners file is a file that contains all the information about banners. You can enable banners by using g_banners.
 
'''Description:'''


'''Description'''
This should be set to the name of your settings.cfg file if you want to enable banners. See settings documentation for more information about this file.
This should be set to the name of your settings.cfg file if you want to enable banners. See settings documentation for more information about this file.


'''Example:'''
'''Example:'''
set g_settings "settings.cfg"


The settings file consists of [banner] blocks (similar to shrubbot). A [banner] block adds a banner to the server banner queue.
set g_banners "banners.cfg"
 
The file consists of [banner] blocks (similar to shrubbot). A [banner] block adds a banner to the server banner queue.


A [banner] block has the following fields:
A [banner] block has the following fields:

Revision as of 11:58, 20 November 2013

The banners file is a file that contains all the information about banners. You can enable banners by using g_banners.

Description:

This should be set to the name of your settings.cfg file if you want to enable banners. See settings documentation for more information about this file.

Example:

set g_banners "banners.cfg"

The file consists of [banner] blocks (similar to shrubbot). A [banner] block adds a banner to the server banner queue.

A [banner] block has the following fields:

[banner]
message = ^1Check out our banner!
wait = 30
position = bp

The "message" is the actual message that is displayed to all the players on the server. The "wait" field determines when the next banner will be displayed. Setting this to 30 means the next banner will show up 30 seconds after this banner. Setting the wait to 0 means the next banner will be displayed at the same moment as this one. This in combination with the "position" field that determines the position of the banner, allows the same text to be displayed at one time at multiple positions. "position" can have the values chat, cpm (popup), cp (center), bp (banner) or print (console).

The maximum amount of banners is 31 and the maximum length of individual banner is 255 characters.

Note

For versions prior to 0.4.0, the g_banners is named as g_settings. The cvar name was changed in the 0.4.0 version because the file no longer contained anything else but banner blocks.