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

[ANY|Source 2009] Advanced Advertisements


Post New Thread Reply   
 
Thread Tools Display Modes
Ofigenski
Junior Member
Join Date: Mar 2013
Old 04-15-2013 , 00:08   Re: [ANY|Source 2009] Advanced Advertisements
Reply With Quote #221

As I understood the main difference from Advertisements 0.6 is a custom color support in this plugin. But I can't use this feature.
There is a config file \configs\extra_chat_colors.txt:

Code:
"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"
	}
}
When I'm trying to use "palepink" color in my \configs\extended_advertisements.txt than the advertisment text has default color with {palepink} prefix.
Can somebody help me to solve this issue?

Last edited by Ofigenski; 04-15-2013 at 00:09.
Ofigenski is offline
Mysteria
Member
Join Date: Aug 2010
Old 04-30-2013 , 16:51   Re: [ANY|Source 2009] Advanced Advertisements
Reply With Quote #222

Ofigenski: In Advertisement 0.6 you can use custom colors too very easy.

All what you need is easy edit of source code, if you add this:
Code:
    if(StrContains(sText, "{fRED}") != -1)
    {
        ReplaceString(sText, sizeof(sText), "{fRED}", "\x07FF0000");
    }
You can use {fRED} tag in adverts and make them full red (255,0,0).
Mysteria is offline
Shrek
Junior Member
Join Date: Apr 2013
Old 05-03-2013 , 07:28   Re: [ANY|Source 2009] Advanced Advertisements
Reply With Quote #223

Does this work on CSGO?
Shrek is offline
MON@H Rasta
Junior Member
Join Date: Dec 2010
Location: Kyiv, Ukraine
Old 05-06-2013 , 12:00   Re: [ANY|Source 2009] Advanced Advertisements
Reply With Quote #224

Russian translation. Place it to:
Code:
*YOUR SERVER DIR*\orangebox\tf\addons\sourcemod\translations\ru\extended_advertisements.phrases.txt
Attached Files
File Type: txt extended_advertisements.phrases.txt (1.1 KB, 180 views)
MON@H Rasta is offline
Send a message via ICQ to MON@H Rasta Send a message via Skype™ to MON@H Rasta
doroemon
Senior Member
Join Date: Dec 2009
Location: TF2 AFK Server
Old 05-21-2013 , 00:15   Re: [ANY|Source 2009] Advanced Advertisements
Reply With Quote #225

Hello everyone,
I have a problem for using this plugin in TF2...
When I using "type S" advertisement,
it will Double message...
how can I fix it?Thanks a lot!
doroemon is offline
AeroAcrobat
AlliedModders Donor
Join Date: Apr 2011
Location: lives in a circus
Old 05-21-2013 , 03:52   Re: [ANY|Source 2009] Advanced Advertisements
Reply With Quote #226

Are these all available options ?
Code:
    "type",
    "text",
    "flags",
    "noflags"
reminder: "noflags" is not documented in the first page or somewhere else besides the .sp file ^^
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

Any possibility to add "viewcount" ?
take a look at this one: http://forums.alliedmods.net/showpos...&postcount=953

I would like to use it like this:
Code:
    "1"
    {
        "type"      "S"
        "text"      "Hey {CLIENT_NAME}, welcome to our server! Have a look at our !rules & enjoy your time."
        "showcount" "1"
        "noflag"
    }

    "2"
    {
        "type"      "S"
        "text"      "Hey {CLIENT_NAME}, Thanks for donating! Wish you an awesome day."
        "showcount" "1"
        "flags"     "a"
    }
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

is " {#RGBHexCode}MyText " supported for TF2 or only via "extra_chat_colors.txt" ?
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

{SERVER_HOSTNAME} - just random idea
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

I hope you will find some time to read this
Thanks!
__________________

Last edited by AeroAcrobat; 05-21-2013 at 03:58.
AeroAcrobat is offline
Lukas320
Member
Join Date: Jan 2011
Old 06-26-2013 , 10:56   Re: [ANY|Source 2009] Advanced Advertisements
Reply With Quote #227

Is there any possibility to use RGB values in chat adverts on CS:S? OR atleast mix white and purple?
Lukas320 is offline
vodka00
Veteran Member
Join Date: Jun 2012
Location: Los Angeles
Old 07-13-2013 , 02:53   Re: [ANY|Source 2009] Advanced Advertisements
Reply With Quote #228

Is it possible to use colors in chat for this in CS:S?
__________________
cw main:

cw speedruns:
vodka00 is offline
Dr. McKay
Sir Dr. SourceMod Plugin Approver Esq. Ltd. M.D. PhD
Join Date: Aug 2011
Location: Atlantis
Old 07-13-2013 , 03:32   Re: [ANY|Source 2009] Advanced Advertisements
Reply With Quote #229

Quote:
Originally Posted by vodka00 View Post
Is it possible to use colors in chat for this in CS:S?
Yes.
__________________
Dr. McKay is offline
Hurrican
Member
Join Date: Feb 2013
Old 07-17-2013 , 12:23   Re: [ANY|Source 2009] Advanced Advertisements
Reply With Quote #230

This plugin doesnt work for me in CS:S....
No error logs, nothing.

I am sure, i installed it correctly!!!

But it shows always ingame:
Spoiler
__________________

Hurrican 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 14:40.


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