View Single Post
Author Message
minimoney1
SourceMod Donor
Join Date: Dec 2010
Old 05-28-2012 , 21:26   [ANY|Source 2009] Advanced Advertisements
Reply With Quote #1

Advanced Advertisements

What is it?
This is an advanced advertisement system that takes advantage of TF2's new color system abilities and also has added many new features and bug fixes.
What do I need to run this plugin?
As a server manager, you are not forced to run any other plugins or extensions but,
  • To receive automatic updates for bug fixes, you can install Updater.
  • To get the exact true IP of your server even when you're behind a firewall when using the {IP} or {FULL_IP} tags you need SteamTools installed on your server.
To compile this plugin, however, you need the following:
How is this different from the original plugin?
To name a few changes:
  • This plugin has added support for TF2 color system
  • This plugin has added support for "Client Tags", these are tags that get replaced dynamically for each client, examples will be shown below
  • The addition of the ability to get the correct IP of servers even if they are under a firewall; this function requires SteamTools, however.
  • If not using the tf2 version, support for the colors library has been added.
  • Added auto-updater
  • Plugin will be actively maintained.
How do I install this?
  1. Make sure you have installed SteamTools and Updater to take full advantage of this plugin.
  2. Download the plugin zip file from here.
  3. Open the zip file and double click on the minimoney1-SM-TF2-Advanced-Ads-xxxxxxx folder, you should see a couple more folders such as plugins and translations.
  4. Get the correct version of the adv_adverts smx file (Whether tf2 or non-tf2), upload it to your addons/sourcemod directory, and drag and drop the translations, and configs folders into your addons/sourcemod directory.

How can I change some of the configurations?
On default, this plugins creates an automatic config in cfg/sourcemod/plugin.adv_adverts_xxx, open that file and you will see these ConVars:
  • sm_extended_advertisements_enabled - Is plugin enabled?
  • sm_extended_advertisements_delay - The delay time between each advertisement
  • sm_extended_advertisements_file - What is the file directory of the advertisements file
  • (Source 2009 Only) sm_extended_advertisements_extracolors_file - What is the directory of the "Extra Colors" config?
  • sm_extended_advertisements_exitmenu - In "M" type menus, can clients close the menu with the press of any button?
  • sm_extended_advertisement_extratopcolors_file - What is the directory of the "Extra Top Colors" config?
What commands can admins use?
(Root) Admins have access to these commands:
  • sm_reloadads - Reloads all advertisement config files (Including extra color files).
  • sm_showad - Shows the next advertisement immediately.
Additional Stuff
Credits also go to:
  • GoD-Tony for the Updater plugin.
  • Asherkin for the SteamTools extension
  • Exvel for the Colors Library
  • Dr. McKay for the "More Colors" Library
  • Berni and Chanz for SMLIB
  • The Sourcemod dev team
  • KyleS
  • FlaminSarge
  • Asherkin
  • Psychonic
  • Swatty
  • 11530 for all his help and also for the "\n" bugfix
  • ReFlexPoison
  • Bacardi
  • Everyone else in IRC
Links
Download the plugin from here.
This project's GitHub (Source) is located here.
Note: Some of the versions get released without testing, and it would be really nice if some server owners could test the plugins and let us know how it ends out being.

Last edited by minimoney1; 08-31-2012 at 17:38.
minimoney1 is offline