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

Advertisements 2.1 (Updated 2021/02/06)


Post New Thread Reply   
 
Thread Tools Display Modes
DJ Tsunami
DJ Post Spammer
Join Date: Feb 2008
Location: The Netherlands
Old 05-28-2013 , 15:01   Re: Advertisements 0.6 (Updated 2013/02/07)
Reply With Quote #1621

Quote:
Originally Posted by DJ Tsunami View Post
Don't use the Get Plugin link for CS:GO, use the attached advertisements.smx.
__________________
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
Powerlord
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
Old 05-28-2013 , 15:28   Re: Advertisements 0.6 (Updated 2013/02/07)
Reply With Quote #1622

Quote:
Originally Posted by DJ Tsunami View Post
Don't use the Get Plugin link for CS:GO, use the attached advertisements.smx.
I'm surprised you did it using ifdef instead of just attaching the compiled .smx file which works across all games if compiled on SourceMod 1.5.
__________________
Not currently working on SourceMod plugin development.

Last edited by Powerlord; 05-28-2013 at 15:30.
Powerlord is offline
DJ Tsunami
DJ Post Spammer
Join Date: Feb 2008
Location: The Netherlands
Old 05-28-2013 , 18:00   Re: Advertisements 0.6 (Updated 2013/03/08)
Reply With Quote #1623

Well, I had the choice between breaking the Get Plugin link for all games, or only for a game that is not yet officially supported by SourceMod. Most people know they have to jump through hoops for CS:GO until 1.5 is released.
__________________
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
N3X15
Junior Member
Join Date: Nov 2012
Location: Seattle, WA
Old 05-30-2013 , 04:15   Re: Advertisements 0.6 (Updated 2013/03/08)
Reply With Quote #1624

I found the need to use quotation marks in one of the notices on my server, but it appears the KeyValues parser doesn't process escaped characters correctly until told to do so. Counter-intuitive, but there's probably a reason for it. Anyway, here's the necessary modification to enable escaping quotation marks and other characters, for those who need it:

Under this line (line 354 on 0.6):
Code:
    g_hAdvertisements = CreateKeyValues("Advertisements");
Add:
Code:
    KvSetEscapeSequences(g_hAdvertisements,true);
Now adding \" to an advertisement will insert a quotation mark.

Hope someone finds this helpful.
N3X15 is offline
Phil7789
Junior Member
Join Date: Mar 2011
Old 06-04-2013 , 18:13   Re: Advertisements 0.6 (Updated 2013/03/08)
Reply With Quote #1625

Hey guys,

i've read about the fix for the colors for CS:GO but unfortunately it does not seem to work for me.

Whenever I use {LIGHTGREEN} I get some kind of purple instead of green ^^

I'm using the advertisements.smx that can be downloaded seperately.

Hope anybody has a hint for me.

Phil7789
Phil7789 is offline
Floody
Member
Join Date: Jan 2012
Old 06-13-2013 , 13:53   Re: Advertisements 0.6 (Updated 2013/03/08)
Reply With Quote #1626

Is it possible to add own colors?
Floody is offline
Doulos
AlliedModders Donor
Join Date: Aug 2007
Old 06-15-2013 , 14:48   Re: Advertisements 0.6 (Updated 2013/03/08)
Reply With Quote #1627

Windows CS:S server, Metamod, Sourcemod 1.5.0-hg3841.

Users are reporting they are unable to use their number keys while this plugin is loaded. No sourcemod errors show. As soon as I unload the plugin they can again buy weapons using their number keys.

Any ideas? Thanks.
Doulos is offline
DJ Tsunami
DJ Post Spammer
Join Date: Feb 2008
Location: The Netherlands
Old 06-16-2013 , 15:43   Re: Advertisements 0.6 (Updated 2013/03/08)
Reply With Quote #1628

The first post explains that the menu advertisement blocks weapon switching with 1-9, since those numbers are used to select options in a menu. If you care about that, don't use the M type.
__________________
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
segmonjon96
Junior Member
Join Date: Dec 2012
Old 06-22-2013 , 10:49   Re: Advertisements 0.6 (Updated 2013/03/08)
Reply With Quote #1629

HELP! do i need to make my own "advertisements.txt" in confugs folder? :O
segmonjon96 is offline
dv9unknown
Senior Member
Join Date: Aug 2009
Old 06-23-2013 , 15:48   Re: Advertisements 0.6 (Updated 2013/03/08)
Reply With Quote #1630

Is it just me or does this plugin not work for 1.5? I upgraded yesterday and now this plugin does not work.
dv9unknown 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 18:29.


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