- 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 :
This plugin has 2 configuration files for advertisements.
1. cstrike/addons/sourcemod/configs/advertisements/new/advertisements.txt
Wrong :
Correct :
Server Console Commands :
CVARs :
Credits :
Requirements :
- Sourcemod v1.8 or Higher
- ClientMod Server API
- 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.
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.
-
- Example ads or messages are included in the zip file.
- 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.
Wrong :
Code:
"Advertisements"
{
"1"
{
"type" "S"
"text" "{TEAM}Add our server to favorites.
{GREEN}Be active to get free admin."
}
}
Code:
"Advertisements"
{
"1"
{
"type" "S"
"text" "{TEAM}Add our server to favorites.\n{GREEN}Be active to get free admin."
}
}
Code:
sm_advertisement - Reloads advertisements config.
// 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"
// -
// 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 :
- DJ Tsunmai for Original Plugin
- San911 for ClientMod version.