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

[ANY|Source 2009] Advanced Advertisements


Post New Thread Reply   
 
Thread Tools Display Modes
nanswery
Junior Member
Join Date: Apr 2015
Old 05-22-2015 , 07:46   Re: [ANY|Source 2009] Advanced Advertisements
Reply With Quote #261

hey guys

can anyone tell me how to add lightgreen color to the "S" text please
nanswery is offline
Disrupted_Hunter
Member
Join Date: Apr 2012
Old 05-26-2015 , 16:33   Re: [ANY|Source 2009] Advanced Advertisements
Reply With Quote #262

Anyone having a problem where the advertisements stop showing up and need to be refreshed every few hours?
Disrupted_Hunter is offline
MyWarthog
Senior Member
Join Date: Feb 2013
Old 06-07-2015 , 00:20   Re: [ANY|Source 2009] Advanced Advertisements
Reply With Quote #263

Idgi. Shouldn't this be working?

Code:
	"2"
	{
		"type"		"S"
		"text"		"{DARKORANGE}CURRENT SERVER DATE: {unique}{SERVER_DATE}\n {DARKORANGE}CURRENT SERVER TIME: {unique}{SERVER_TIME}" 
	}
Code:
// This file will not function if your server is not a TF2 server
// TF2 is the only mod (as of now) that has support for extra custom colors
"Extra Chat Colors"
{
	"palepink" //The name of the color without the "{" and "}" tags.
	{
		"hex"		"0xcc9999" // "Hexadecimal representation of the color" - Directly taken off of the morecolors documentation
	}
	"greenishyellow"
	{
		"hex"		"0x999966"
	}
  "unique"
  {
    "hex"   "0xFFD700"
  }
}
Code:
// This file was auto-generated by SourceMod (v1.7.2)
// ConVars for plugin "adv_adverts_tf2.smx"


// What is the directory of the "Extra Top Colors" config?
// -
// Default: "configs/extra_top_colors.txt"
sm_extended_advertisement_extratopcolors_file "configs/extra_top_colors.txt"

// The delay time between each advertisement
// -
// Default: "30.0"
sm_extended_advertisements_delay "60.0"

// Is plugin enabled?
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
sm_extended_advertisements_enabled "1"

// In "M" type menus, can clients close the menu with the press of any button?
// -
// Default: "1"
sm_extended_advertisements_exitmenu "1"

// What is the directory of the "Extra Chat Colors" config?
// -
// Default: "configs/extra_chat_colors.txt"
sm_extended_advertisements_extrachatcolors_file "configs/extra_chat_colors.txt"

// What is the file directory of the advertisements file
// -
// Default: "configs/extended_advertisements.txt"
sm_extended_advertisements_file "configs/extended_advertisements.txt"
The custom color does not print. It just prints out {unique}, showing in Dark Orange.

Last edited by MyWarthog; 06-07-2015 at 00:25.
MyWarthog is offline
Synthax
Member
Join Date: Mar 2015
Old 07-05-2015 , 11:15   Re: [ANY|Source 2009] Advanced Advertisements
Reply With Quote #264

My advertisements aren't showing in TF2 after Gun Mettle update.
__________________

Synthax is offline
The German Player
Member
Join Date: Aug 2014
Location: Germany/Sachsen
Old 07-14-2015 , 16:17   Re: [ANY|Source 2009] Advanced Advertisements
Reply With Quote #265

Dosen't work with morecolors in CS:GO?

I use colors from: https://www.doctormckay.com/morecolors.php like {lime} and {fullred} but every time it shows the default color from the team (terrorists: brown and counter terrorists blue) and its not {default} before it...

Error:
[SM] Plugin encountered error 25: Call was aborted
[SM] Native "ThrowError" reported: Using two team colors in one message is not allowed
[SM] Displaying call stack trace for plugin "adv_adverts_nontf2.smx":
[SM] [0] Line 341, C:\Users\Mini\Desktop\SM_1.4.3\include\colors _ads.inc::CFormat()
[SM] [1] Line 136, C:\Users\Mini\Desktop\SM_1.4.3\include\colors _ads.inc::CPrintToChatEx()
[SM] [2] Line 878, C:\Users\Mini\Documents\Repositories\SM-TF2-Advanced-Ads\scripting\adv_adverts.sp::AdvertisementTi mer()

Any fix?

EDIT: every advert is in S style

Last edited by The German Player; 07-14-2015 at 19:47.
The German Player is offline
eraserhead
Veteran Member
Join Date: Nov 2009
Old 07-16-2015 , 21:16   Re: [ANY|Source 2009] Advanced Advertisements
Reply With Quote #266

-snip-
__________________

Last edited by eraserhead; 07-16-2015 at 21:32.
eraserhead is offline
Send a message via Skype™ to eraserhead
The German Player
Member
Join Date: Aug 2014
Location: Germany/Sachsen
Old 07-20-2015 , 16:22   Re: [ANY|Source 2009] Advanced Advertisements
Reply With Quote #267

-PUSH-
The German Player is offline
The German Player
Member
Join Date: Aug 2014
Location: Germany/Sachsen
Old 08-06-2015 , 05:25   Re: [ANY|Source 2009] Advanced Advertisements
Reply With Quote #268

nobody a fix?
The German Player is offline
DarkDeviL
SourceMod Moderator
Join Date: Apr 2012
Old 08-06-2015 , 08:52   Re: [ANY|Source 2009] Advanced Advertisements
Reply With Quote #269

Quote:
Originally Posted by The German Player View Post
nobody a fix?
Have you tried reading the error messages you posted above?

Quote:
Originally Posted by The German Player View Post
Error:
Code:
[SM] Plugin encountered error 25: Call was aborted
[SM] Native "ThrowError" reported: Using two team colors in one message is not allowed
[SM] Displaying call stack trace for plugin "adv_adverts_nontf2.smx":
[SM]   [0]  Line 341, C:\Users\Mini\Desktop\SM_1.4.3\include\colors_ads.inc::CFormat()
[SM]   [1]  Line 136, C:\Users\Mini\Desktop\SM_1.4.3\include\colors_ads.inc::CPrintToChatEx()
[SM]   [2]  Line 878,  C:\Users\Mini\Documents\Repositories\SM-TF2-Advanced-Ads\scripting\adv_adverts.sp::AdvertisementTimer()
Any fix?
I highlighted the text specially for you, in the hope that you will now follow the AlliedModders Rules, and not bump this thread further as you have had the answer all the time - due to a so very well explained error.

If you'd care to read what it tells you, you could have saved 3 weeks of waiting time.
__________________
Mostly known as "DarkDeviL".

Dropbox FastDL: Public folder will no longer work after March 15, 2017!
For more info, see the [SRCDS Thread], or the [HLDS Thread].
DarkDeviL is offline
The German Player
Member
Join Date: Aug 2014
Location: Germany/Sachsen
Old 08-07-2015 , 17:54   Re: [ANY|Source 2009] Advanced Advertisements
Reply With Quote #270

The problem is i have only one color :/

Spoiler

Last edited by The German Player; 08-07-2015 at 17:57.
The German Player 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 11:47.


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