Raised This Month: $32 Target: $400
 8% 

Advertisements 2.1 (Updated 2021/02/06)


Post New Thread Reply   
 
Thread Tools Display Modes
ReFlexPoison
☠☠☠
Join Date: Jul 2011
Location: ☠☠☠
Old 04-02-2012 , 21:36   Re: Advertisements 0.5.5
Reply With Quote #1331

Quote:
Originally Posted by Capt. Dude View Post
Hey I run my own server and I am having some difficulties setting up the advertisements plugin up. I made a notepad file with the format for the advertisements and saved it and uploaded it to orangebox/dod/cfg and put it there along with the advertisements mod but I also added the advertisements plugin to like every /orangebox/dod/addons/sourcemod/ file and it still doesn't work and I don't know what to do. Do you know anything I'm doing wrong? Since I am not exactly new to ftp's but I don't know as much as some people.

Capt. Dude
shouldn't be in your orangebox folder, atleast thats what i know about my team fortress server
ReFlexPoison is offline
11530
Veteran Member
Join Date: Sep 2011
Location: Underworld
Old 04-02-2012 , 23:15   Re: Advertisements 0.5.5
Reply With Quote #1332

- The .smx file goes in [mod]/addons/sourcemod/plugins. Make sure this is loaded on the server in question.

- The config (advertisements.txt) goes in [mod]/addons/sourcemod/configs. Ensure this file has the following structure:

Code:
"Advertisements"
{
	"1"
	{
		"type"	"S"
		"text"		"Welcome to the server"
	}
	"2"
	{
		"type"		"C"
		"text"		"Join our server group for updates!"
	}
}
And so forth. More info is found in the config.
11530 is offline
Capt. Dude
New Member
Join Date: Apr 2012
Old 04-04-2012 , 21:50   Re: Advertisements 0.5.5
Reply With Quote #1333

Yep it works now, Thanks now I don't have to use 75 binds on my server.
Capt. Dude is offline
Capt. Dude
New Member
Join Date: Apr 2012
Old 04-04-2012 , 22:58   Re: Advertisements 0.5.5
Reply With Quote #1334

But it only displays two and I copied the format for other ones but I don't know what I did wrong here's the format:


"Advertisements"
{
"1"
{
"type" "S"
"text" "{GREEN}Like our server? Visit us at www.dayofdefeatsourcegroup.webs.com!"
}
"2"
{
"type" "S"
"text" "{GREEN}Welcome to the =[-DoD:SG-]= 24/7 Valve Maps Rotation Server! Add us to your favorites."
}
"3"
{
"type" "S"
"text" ""{GREEN}=[-DoD:SG-]= and the Renegades are looking for new members to admin our servers! Join us at www.dayofdefeatsourcegroup.webs.com!
"
}

"4"
{
"type" "S"
"text" "{GREEN}Read the rules so you do not repeatitly break them and get kicked! Type !motd for the rules!"

"
}
"5"
{
"type" "S"
"text" "{GREEN}Need an admin? Type /admins for a list of all available admins or type @ in team chat for an admin chat message."
}

Can you tell me what I did wrong and how to correct it?
Capt. Dude is offline
Horsedick
AlliedModders Donor
Join Date: Sep 2011
Old 04-04-2012 , 23:05   Re: Advertisements 0.5.5
Reply With Quote #1335

Quote:
Originally Posted by Capt. Dude View Post
But it only displays two and I copied the format for other ones but I don't know what I did wrong here's the format:


"Advertisements"
{
"1"
{
"type" "S"
"text" "{GREEN}Like our server? Visit us at www.dayofdefeatsourcegroup.webs.com!"
}
"2"
{
"type" "S"
"text" "{GREEN}Welcome to the =[-DoD:SG-]= 24/7 Valve Maps Rotation Server! Add us to your favorites."
}
"3"
{
"type" "S"
"text" ""{GREEN}=[-DoD:SG-]= and the Renegades are looking for new members to admin our servers! Join us at www.dayofdefeatsourcegroup.webs.com!
"
}

"4"
{
"type" "S"
"text" "{GREEN}Read the rules so you do not repeatitly break them and get kicked! Type !motd for the rules!"

"
}
"5"
{
"type" "S"
"text" "{GREEN}Need an admin? Type /admins for a list of all available admins or type @ in team chat for an admin chat message."
}


Can you tell me what I did wrong and how to correct it?
You were missing the final } at the end if that is a complete copy and paste. so below that one from "5" add another }

Last edited by Horsedick; 04-04-2012 at 23:05.
Horsedick is offline
ReFlexPoison
☠☠☠
Join Date: Jul 2011
Location: ☠☠☠
Old 04-04-2012 , 23:08   Re: Advertisements 0.5.5
Reply With Quote #1336

Code:
"Advertisements"
{
	"1"
	{
	"type"	"S"
	"text"	 "{GREEN}Like our server? Visit us at www.dayofdefeatsourcegroup.webs.com!"
	}
	"2"
	{
	"type"	 "S"
	"text"	 "{GREEN}Welcome to the =[-DoD:SG-]= 24/7 Valve Maps Rotation Server! Add us to your favorites."
	}
	"3"
	{
	"type"	 "S"
	"text"	 "{GREEN}=[-DoD:SG-]= and the Renegades are looking for new members to admin our servers! Join us at www.dayofdefeatsourcegroup.webs.com!"
	}
	"4"
	{
	"type"	"S"
	"text"	 "{GREEN}Read the rules so you do not repeatitly break them and get kicked! Type !motd for the rules!"
	}
	"5"
	{
	"type"	"S"
	"text"	 "{GREEN}Need an admin? Type /admins for a list of all available admins or type @ in team chat for an admin chat message."
	}
}
This should work.

If you are gonna add something to the forums like that, add code and /code with brackets into is so it looks cleaner.

Last edited by ReFlexPoison; 04-04-2012 at 23:23.
ReFlexPoison is offline
TnTSCS
AlliedModders Donor
Join Date: Oct 2010
Location: Undisclosed...
Old 04-05-2012 , 00:05   Re: Advertisements 0.5.5
Reply With Quote #1337

also, you have double quotes on this line:

"3"
{
"type" "S"
"text" ""{GREEN}
__________________
View my Plugins | Donate

Last edited by TnTSCS; 04-05-2012 at 00:05.
TnTSCS is offline
Capt. Dude
New Member
Join Date: Apr 2012
Old 04-05-2012 , 16:42   Re: Advertisements 0.5.5
Reply With Quote #1338

Okay! Thanks works better now!
Capt. Dude is offline
Ryan_Hemsley18
Junior Member
Join Date: Sep 2011
Location: Sydney, Australia
Old 04-12-2012 , 06:02   Re: Advertisements 0.5.5
Reply With Quote #1339

Does this plugin work anymore?

I have installed
advertisements.smx into orangebox/tf/addons/sourcemod/plugins
advertisements.txt into orangebox/tf/addons/sourcemod/configs





// 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" ""
}
}



I have this in the server.cfg
//Advertisements
sm_advertisements_enabled 1
sm_advertisements_file (def "advertisements.txt")
sm_advertisements_interval (def 30)
sm_advertisements_reload


After all doing that It doesn't work. Is there a way to get it to work?
__________________
Yours Sincerely,

[GA] Metal of Steel
Creator and Developer
www.gamingaustralia-clan.com
Ryan_Hemsley18 is offline
Sillium
AlliedModders Donor
Join Date: Sep 2008
Location: Germany
Old 04-12-2012 , 06:39   Re: Advertisements 0.5.5
Reply With Quote #1340

Did you really put it like that in your server.cfg?

If you don't want to change any setting you don't have to put anything in there! Also you are not supposed to add the "(" & ")" in the lines.

Code:
//Advertisements
sm_advertisements_enabled 1
sm_advertisements_file "advertisements.txt"
sm_advertisements_interval 30
Also check your Logs for errors!
__________________
brb, dishes have developed their own language and are talking to the garbage about overthrowing me... i must correct this

www.unterwasserpyromanen.de

Last edited by Sillium; 04-12-2012 at 06:40.
Sillium is offline
Reply


Thread Tools
Display Modes

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 19:53.


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