Tokens for webshortcutlist.txt and adverts.txt

A new function of V1.1.0g is to tokens to be placed in both adverts.txt and webshortcutlist.txt. Tokens can be used to provide dynamic content when an advert or web shortcut is invoked.

Token List

{STEAMID} (This only works in the webshortcutlist.txt file)
{NEXTMAP}
{CURRENTMAP}
{TICKRATE}
{FF}
{THETIME}
{IPADDRESS} (This only works in the webshortcutlist.txt file)
{SERVERHOST}

An example follows on how to use a token to access your psychostats information in the webshortcutlist.txt file

“stats” http://www.mystats.com/index.php?search={STEAMID}

When a user types ‘stats’ from within the game, the web shortcut will be translated to http://www.mystats.com/index.php?search=STEAM_0:0:123456
The steam id will of course be the player who invoked the command.

Tokens can also be used in the adverts.txt file.

The next map will be {NEXTMAP}

Colour Tokens

Colours can also be used within the adverts.txt file, colours available are

{RED}
{BLUE}
{GREEN}
{MAGENTA}
{BROWN}
{GREY}
{CYAN}
{YELLOW}
{ORANGE}
{WHITE}
{PINK}

An example in an advert would be

{RED}This Advert is Red

The top left display of the advert will be shown in red.
This does not work for messages created in the chat area.

In addition the colour tokens can be used in the admin say commands ma_say and @