Silent Banners: Difference between revisions

From MyGamingTalk
No edit summary
No edit summary
Line 1: Line 1:
The banners file is a file that contains all the information about banners. You can enable banners by using g_banners.
== 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.
Servers can be configured to show banners to players. The banners are defined in a separate configuration file. You can enable banners by setting g_banners to point to that file. The maximum amount of banners is 31 and the maximum length of individual banner is 255 characters.


'''Example:'''
'''Example:'''
Line 20: Line 19:
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 "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'''
'''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.
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.

Revision as of 10:24, 14 October 2014

Banners

Servers can be configured to show banners to players. The banners are defined in a separate configuration file. You can enable banners by setting g_banners to point to that file. The maximum amount of banners is 31 and the maximum length of individual banner is 255 characters.

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).


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.