Raised This Month: $51 Target: $400
 12% 

Advertisements 2.1 (Updated 2021/02/06)


Post New Thread Reply   
 
Thread Tools Display Modes
hasjduden
Member
Join Date: Jun 2011
Old 07-03-2011 , 07:59   Re: Advertisements 0.5.5
Reply With Quote #1151

I dont get this too work.

This is my server cfg.

Added this to the bottom of server.cfg:
Quote:
//Advertisements 0.5.5 .cfg
//
//Sm_advertisements_enabled (0/1, def 1)
//Enable/disable displaying advertisements.
sm_advertisements_enabled 1
//
//sm_advertisements_file (def "advertisements.txt")
//File to read the advertisements from.Useful if you're running multiple servers from one installation,
//and want to use different advertisements per server.
sm_advertisements_file advertisments.txt
//
//sm_advertisements_interval (def 30)
//Amount of seconds between advertisements
sm_advertisements_interval 30
//
//sm_advertisements_reload
//Server command to reload the advertisements from advertisements.txt.
//
This is my advertisements.txt [config/sourcemod]
Quote:
// Advertisements 0.5
// by Tsunami
//
// Types
// -----
// C: Center message
// H: Hint message
// M: Menu message
// S: Say message
// - Colors: {DEFAULT}, {TEAM}, {GREEN}, {LIGHTGREEN}
// - Example: {GREEN}Current {LIGHTGREEN}Map: {DEFAULT}{CURRENTMAP}
// T: Top message
// - Colors: {WHITE}, {RED}, {GREEN}, {BLUE}, {YELLOW}, {PURPLE}, {CYAN},
// {ORANGE}, {PINK}, {OLIVE}, {LIME}, {VIOLET}, {LIGHTBLUE}
// - Example: {ORANGE} www.domain.com
//
// Flags (optional)
// -----
// Accepts flags of admins that will not see the advertisement.
// When omitted everyone will see the advertisement.
// When left empty only admins will see the advertisement.

"Advertisements"
{
"1"
{
"type" "C"
"text" "Webpage is coming.."
}
"2"
{
"type" "CH"
"text" "Contact Officer Rivieri for server/admins related questions"
}
"3"
{
"type" "M"
"text" "Next map is {SM_NEXTMAP} in {TIMELEFT} minutes."
"flags" "cft"
}
"4"
{
"type" "S"
"text" "{GREEN}Current {LIGHTGREEN}Map: {DEFAULT}{CURRENTMAP}"
"flags" "z"
}
"5"
{
"type" "T"
"text" "{ORANGE} Admins: friendly fire is {BOOL:MP_FRIENDLYFIRE}."
"flags" ""
}
"6"
{
"type" "S"
"text" "{GREEN}Ticrate is currently {LIGHTGREEN}{TICKRATE}."
"flags" ""
}
}
hasjduden is offline
gH0sTy
SourceMod Donor
Join Date: Jul 2008
Location: DE
Old 07-03-2011 , 08:16   Re: Advertisements 0.5.5
Reply With Quote #1152

Quote:
Originally Posted by hasjduden View Post
I dont get this too work.
It shoud be sm_advertisements_file advertisements.txt
gH0sTy is offline
StrikerMan780
AlliedModders Donor
Join Date: Jul 2009
Location: Canada
Old 07-03-2011 , 21:49   Re: Advertisements 0.5.5
Reply With Quote #1153

Out of curiosity, could this be updated to use the Colors library? http://forums.alliedmods.net/showthread.php?t=96831
StrikerMan780 is offline
DJ Tsunami
DJ Post Spammer
Join Date: Feb 2008
Location: The Netherlands
Old 07-04-2011 , 04:59   Re: Advertisements 0.5.5
Reply With Quote #1154

Quote:
Originally Posted by Thomasv View Post
caus i had to create my own config file and place it orangebox/cstrike/cfg/sourcemod

to make it work
If you had named your advertisements file advertisements.txt instead of advertisments.txt, you wouldn't have needed the config.
__________________
Advertisements | REST in Pawn - HTTP client for JSON REST APIs
Please do not PM me with questions. Post in the plugin thread.
DJ Tsunami is offline
blue zebra
BANNED
Join Date: Jun 2010
Old 07-05-2011 , 00:30   Re: Advertisements 0.5.5
Reply With Quote #1155

How can i displayed the actual time and date for the players, with this plugin?
{THETIME} command don't work for me.
Thanks in advance.

PS.: Anyone can modify this plugin, for the East-European characters ( UTF-8 )? For example:öÖőŐóÓüÜűŰáÁéÉíÍ characters.

Last edited by blue zebra; 07-05-2011 at 00:36.
blue zebra is offline
xRJx
Junior Member
Join Date: Jun 2011
Old 07-07-2011 , 10:27   Re: Advertisements 0.5.5
Reply With Quote #1156

Is there a way to add your own CFG file to the sourcemod cfg file where you can make your own txt file to add start up commands for the advertisements plugin? I know there's a server.cfg but I'm still pretty new to this stuff and can't find out where it is or how to use it.

Any help would be appreciated.
xRJx is offline
Powerlord
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
Old 07-07-2011 , 10:49   Re: Advertisements 0.5.5
Reply With Quote #1157

Actually, I'm not sure why AutoExecConfig isn't used with false as the first argument. That way, those of us who do want just a single, server-wide configuration can use it, but if the file isn't present, it won't be auto-generated.
__________________
Not currently working on SourceMod plugin development.
Powerlord is offline
hasjduden
Member
Join Date: Jun 2011
Old 07-10-2011 , 12:14   Re: Advertisements 0.5.5
Reply With Quote #1158

I cant get this to work..
cfg\advertisements.txt
Quote:
// Advertisements 0.5
// by Tsunami
//
// Types
// -----
// C: Center message
// H: Hint message
// M: Menu message
// S: Say message
// - Colors: {DEFAULT}, {TEAM}, {GREEN}, {LIGHTGREEN}
// - Example: {GREEN}Current {LIGHTGREEN}Map: {DEFAULT}{CURRENTMAP}
// T: Top message
// - Colors: {WHITE}, {RED}, {GREEN}, {BLUE}, {YELLOW}, {PURPLE}, {CYAN},
// {ORANGE}, {PINK}, {OLIVE}, {LIME}, {VIOLET}, {LIGHTBLUE}
// - Example: {ORANGE} www.domain.com
//
// Flags (optional)
// -----
// Accepts flags of admins that will not see the advertisement.
// When omitted everyone will see the advertisement.
// When left empty only admins will see the advertisement.

"Advertisements"
{
"1"
{
"type" "C"
"text" "www.domain.com"
}
"2"
{
"type" "CH"
"text" "[email protected]"
}
"3"
{
"type" "M"
"text" "Next map is {SM_NEXTMAP} in {TIMELEFT} minutes."
"flags" "cft"
}
"4"
{
"type" "S"
"text" "{GREEN}Current {LIGHTGREEN}Map: {DEFAULT}{CURRENTMAP}"
"flags" "z"
}
"5"
{
"type" "T"
"text" "{ORANGE} Admins: friendly fire is {BOOL:MP_FRIENDLYFIRE}."
"flags" ""
}
}
cfg\sourcemod\advertisements.cfg
Quote:
//Advertisements 0.5.5 .cfg
//
//Sm_advertisements_enabled (0/1, def 1)
//Enable/disable displaying advertisements.
sm_advertisements_enabled 1
//
//sm_advertisements_file (def "advertisements.txt")
//File to read the advertisements from.Useful if you're running multiple servers from one installation,
//and want to use different advertisements per server.
sm_advertisements_file advertisements.txt
//
//sm_advertisements_interval (def 30)
//Amount of seconds between advertisements
sm_advertisements_interval 30
//
//sm_advertisements_reload
//Server command to reload the advertisements from advertisements.txt.
//
hasjduden is offline
Doggie52
Senior Member
Join Date: Jul 2007
Location: Sweden
Old 07-10-2011 , 12:35   Re: Advertisements 0.5.5
Reply With Quote #1159

Describing your problem simply as "I can't get this to work" is always a bad idea.
__________________
Quote:
Originally Posted by Iltafragit View Post
4kg ram i5 processor
Doggie52 is offline
DJ Tsunami
DJ Post Spammer
Join Date: Feb 2008
Location: The Netherlands
Old 07-10-2011 , 16:28   Re: Advertisements 0.5.5
Reply With Quote #1160

Quote:
Originally Posted by hasjduden View Post
cfg\advertisements.txt
Quote:
Originally Posted by DJ Tsunami View Post
By default the plugin reads the advertisements from configs/advertisements.txt, which has this format:
configs has more letters than cfg.
__________________
Advertisements | REST in Pawn - HTTP client for JSON REST APIs
Please do not PM me with questions. Post in the plugin thread.
DJ Tsunami is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 17:12.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode