[ClientMod] Advertisements

Plugin-Module [ClientMod] Advertisements v0.6.2

No permission to download
Supported Games
CS: Source (v34)
This plugin is module of ClientMod Server API. It shows ads or messages on the server based on configured time interval and locations such as chat, hint, menu, center of the screen, upper left corner of the screen.

Requirements :
Installation :
  • Download the plugin attached to this post.
  • Extract the contents of zip file and put it into your server's cstrike folder.
  • Modify cstrike/cfg/sourcemod/ClientMod_Advertisements.cfg as you like.
  • Restart the server or change the map.
Configuration :

This plugin has 2 configuration files for advertisements.

1. cstrike/addons/sourcemod/configs/advertisements/new/advertisements.txt
  • Ads or messages in this file will only appear to clientmod users not to old css users.
  • Multi colors are supported for chat messages in this file.
  • 287
  • Example ads or messages are included in the zip file.
2. cstrike/addons/sourcemod/configs/advertisements/old/advertisements.txt
  • Ads or messages in this file will only appear to old css users not to clientmod users.
  • Limited colors are supported for chat messages in this file.
  • {DEFAULT} - Default chat color.
    {TEAM} - Team color. Red in T, Blue in CT, Grey in Spec.
    {GREEN} - Green color.
    {LIGHTGREEN} - Lightgreen color.
  • Example ads or messages are included in the zip file.
Note: Don't use multi-line messages in configuration file. Configure them in single line. To make a message appear in new line use \n.

Wrong :
Code:
"Advertisements"
{
    "1"
    {
        "type"        "S"
        "text"        "{TEAM}Add our server to favorites.
                          {GREEN}Be active to get free admin."
    }
}
Correct :
Code:
"Advertisements"
{
    "1"
    {
        "type"        "S"
        "text"        "{TEAM}Add our server to favorites.\n{GREEN}Be active to get free admin."
    }
}
Server Console Commands :

Code:
sm_advertisement          -          Reloads advertisements config.
CVARs :
// Date format for {DATE} placeholder.
// -
// Default: "%m/%d/%Y"
sm_advertisements_dateformat "%m/%d/%Y"

// Enable/disable displaying advertisements (0 - Disabled, 1 - Enabled).
// -
// Default: "1"
sm_advertisements_enabled "1"

// File to read the advertisements from.
// -
// Default: "advertisements.txt"
sm_advertisements_file "advertisements.txt"

// Amount of seconds between advertisements.
// -
// Default: "10"
sm_advertisements_interval "10"

// Show exit button in menus (0 - Disabled, 1 - Enabled).
// -
// Default: "0"
sm_advertisements_showexitbutton "1"

// Time format for {TIME24} placeholder.
// -
// Default: "%H:%M:%S"
sm_advertisements_time24format "%H:%M:%S"

// Time format for {TIME} placeholder.
// -
// Default: "%I:%M:%S%p"
sm_advertisements_timeformat "%I:%M:%S%p"

// Display advertisements
// -
// Default: "0.6.2"
sm_advertisements_version "0.6.2"

Credits :
Author
Vertigo
Downloads
87
Views
2K
First release
Last update
Rating
0.00 star(s) 0 ratings

More resources from Vertigo

Share this resource

Top
AdBlock Detected

We get it, advertisements are annoying!

Sure, ad-blocking software does a great job at blocking ads, but it also blocks useful features of our website. For the best site experience please disable your AdBlocker.

I've Disabled AdBlock