Silent Banners: Difference between revisions

From MyGamingTalk
No edit summary
 
(2 intermediate revisions by 2 users not shown)
Line 12: Line 12:
A [banner] block has the following fields:
A [banner] block has the following fields:


:[banner]
<pre style="white-space: pre-wrap;
:message    = ^1Check out our banner!
white-space: -moz-pre-wrap;
:wait      = 30
white-space: -pre-wrap;
:position  = bp
white-space: -o-pre-wrap;
word-wrap: break-word;">
[banner]
message    = ^1Check out our banner!
wait      = 30
position  = bp
</pre>


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. The position field can use following values: '''''chat''''', '''''cpm''''' (popup), '''''cp''''' (center), '''''bp''''' (banner) or '''''print''''' (console).





Latest revision as of 22:59, 15 September 2015

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 32 and the maximum length of an 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. The position field can use following values: chat, cpm (popup), cp (center), bp (banner) or print (console).


Note

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