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

[TF2] update old advertisements plugin


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
AeroAcrobat
AlliedModders Donor
Join Date: Apr 2011
Location: lives in a circus
Old 03-31-2014 , 16:03   [TF2] update old advertisements plugin
Reply With Quote #1

I'm using this since release: https://forums.alliedmods.net/showth...21#post1708121
It's working very well but there's just this one thing that I don't like.
It shows the hex color in the console and in 0.6 there have been "bug fixes", not sure about them.

Advertisements 0.6 (Updated 2013/03/0


There's also:
[ANY|Source 2009] Advanced Advertisements

but it seems to be a bit buggy and I remember having problems with it while testing.


TL;DR: Please add hex colors support for advertisements 0.6 without showing it in console. See source: https://forums.alliedmods.net/showth...21#post1708121
__________________

Last edited by AeroAcrobat; 03-31-2014 at 16:04.
AeroAcrobat is offline
Mitchell
~lick~
Join Date: Mar 2010
Old 03-31-2014 , 17:33   Re: [TF2] update old advertisements plugin
Reply With Quote #2

I've change 'PrintToChat' with 'CPrintToChat' hope it works.
Attached Files
File Type: smx advertisements.smx (16.1 KB, 158 views)
File Type: sp Get Plugin or Get Source (advertisements.sp - 83 views - 13.0 KB)
Mitchell is offline
Powerlord
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
Old 03-31-2014 , 17:45   Re: [TF2] update old advertisements plugin
Reply With Quote #3

Quote:
Originally Posted by AeroAcrobat View Post
I'm using this since release: https://forums.alliedmods.net/showth...21#post1708121
It's working very well but there's just this one thing that I don't like.
It shows the hex color in the console and in 0.6 there have been "bug fixes", not sure about them.

Advertisements 0.6 (Updated 2013/03/0


There's also:
[ANY|Source 2009] Advanced Advertisements

but it seems to be a bit buggy and I remember having problems with it while testing.


TL;DR: Please add hex colors support for advertisements 0.6 without showing it in console. See source: https://forums.alliedmods.net/showth...21#post1708121
Like this one?
__________________
Not currently working on SourceMod plugin development.
Powerlord is offline
AeroAcrobat
AlliedModders Donor
Join Date: Apr 2011
Location: lives in a circus
Old 03-31-2014 , 19:07   Re: [TF2] update old advertisements plugin
Reply With Quote #4

Quote:
Originally Posted by Mitchell View Post
I've change 'PrintToChat' with 'CPrintToChat' hope it works.
Thanks, I'll test it later
Quote:
Originally Posted by Powerlord View Post
Like this one?
It looks like that it only supports pre-defined colors.
I prefer to define my own colors like: #FFFFFF.
__________________
AeroAcrobat is offline
Powerlord
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
Old 04-02-2014 , 15:55   Re: [TF2] update old advertisements plugin
Reply With Quote #5

Quote:
Originally Posted by AeroAcrobat View Post
Thanks, I'll test it later

It looks like that it only supports pre-defined colors.
I prefer to define my own colors like: #FFFFFF.
Then why don't you just type in \x07FFFFFF ? It's a whole 3 characters longer than what you just typed.

Having said that, remember that it only works for chat messages.
__________________
Not currently working on SourceMod plugin development.

Last edited by Powerlord; 04-02-2014 at 16:00.
Powerlord is offline
AeroAcrobat
AlliedModders Donor
Join Date: Apr 2011
Location: lives in a circus
Old 04-02-2014 , 18:42   Re: [TF2] update old advertisements plugin
Reply With Quote #6

Quote:
Originally Posted by Powerlord View Post
Then why don't you just type in \x07FFFFFF ? It's a whole 3 characters longer than what you just typed.

Having said that, remember that it only works for chat messages.
If I want to add a color that is not available in morecolors then I'd have to recompile the plugin everytime I'd want to add an unique color.
With Gh0sty's 0.5.6 version you can set any color in the config. You are not limited to the morecolor's pre-selected color palette.

Quote:
Originally Posted by Mitchell View Post
I've change 'PrintToChat' with 'CPrintToChat' hope it works.
It's working! Thanks
__________________
AeroAcrobat is offline
Powerlord
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
Old 04-03-2014 , 00:43   Re: [TF2] update old advertisements plugin
Reply With Quote #7

Quote:
Originally Posted by AeroAcrobat View Post
If I want to add a color that is not available in morecolors then I'd have to recompile the plugin everytime I'd want to add an unique color.
With Gh0sty's 0.5.6 version you can set any color in the config. You are not limited to the morecolor's pre-selected color palette.


It's working! Thanks
No, I mean literally use the text \x07FFFFFF in the ad itself. It's how you print colors using Source 2009 colors.
__________________
Not currently working on SourceMod plugin development.
Powerlord is offline
AeroAcrobat
AlliedModders Donor
Join Date: Apr 2011
Location: lives in a circus
Old 04-03-2014 , 12:59   Re: [TF2] update old advertisements plugin
Reply With Quote #8

Quote:
Originally Posted by Powerlord View Post
No, I mean literally use the text \x07FFFFFF in the ad itself. It's how you print colors using Source 2009 colors.
oh ok, that sounds awesome!
I haven't been able to get it working so far, could you give me an example ?

Code:
"Advertisements"
{
    "1"
    {
        "type"    "S"
        "text"    ""
    }
}
__________________
AeroAcrobat 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 05:05.


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