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

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-17-2016 , 06:48   Re: Advertisements 2.0 (Updated 2016/03/23)
Reply With Quote #1991

I tested just the 8 adverts on one map in CS:GO and they loop just fine. Maybe you have another plugin breaking it.
__________________
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
Jcrr
Senior Member
Join Date: Jul 2015
Old 05-18-2016 , 03:58   Re: Advertisements 2.0 (Updated 2016/03/23)
Reply With Quote #1992

Quote:
Originally Posted by DJ Tsunami View Post
I tested just the 8 adverts on one map in CS:GO and they loop just fine. Maybe you have another plugin breaking it.
Can it be problem, that i use:

[01] SourceMod (1.7.3-dev+5229) by AlliedModders LLC
[02] CS Tools (1.7.3-dev+5229) by AlliedModders LLC
[03] SDK Tools (1.7.3-dev+5229) by AlliedModders LLC
[04] SDK Hooks (1.7.3-dev+5229) by AlliedModders LLC

instead of latest builds?
__________________


Last edited by Jcrr; 05-18-2016 at 03:58.
Jcrr is offline
errorisgod
New Member
Join Date: May 2016
Old 05-26-2016 , 08:03   Re: Advertisements 2.0 (Updated 2016/03/23)
Reply With Quote #1993

i have downloaded your plugin and added it to all the right folders and when i do sm plugins list it on on the list but when i try to use the commands it says unknown command. any ideas why? (im new to this)
errorisgod is offline
Fabeyy
New Member
Join Date: May 2016
Old 05-28-2016 , 21:05   Re: Advertisements 2.0 (Updated 2016/03/23)
Reply With Quote #1994

The colors are not working for me, any idea why?

It looks like this:



EDIT: Yes I've read the posts before, but adding spaces does not help and neither does disabling other plugins. What am I doing wrong?

This is my advertisements.txt:

Quote:
"Advertisements"
{
"1"
{
"chat" " {green} Current {lightgreen} Map: {default}{currentmap}"
}
}

Last edited by Fabeyy; 05-29-2016 at 18:13. Reason: I've read the posts
Fabeyy is offline
N3X15
Junior Member
Join Date: Nov 2012
Location: Seattle, WA
Old 05-29-2016 , 00:26   Re: Advertisements 2.0 (Updated 2016/03/23)
Reply With Quote #1995

I have an advertisement teaching people how to make a keybind for building dispensers, since our server lets people build two. The command contains some quotation marks, so I escaped them with \". The advertisement in question is listed below:

Code:
    "2"
    {
        "chat"        "{ORANGE}Reserved Slots:{GREEN} Engineers can build an extra dispenser! Type in {LIGHTGREEN}bind KP_5 \"build 0\"{GREEN} in the developer console (~), then press keypad 5."
    }
Unfortunately, this fails to parse:

Code:
05/29/2016 04:12:47 AM [INFO    ]: [srcds] KeyValues Error: RecursiveLoadFromBuffer:  got } in key in file addons/sourcemod/configs/advertisements.txt
05/29/2016 04:12:47 AM [INFO    ]: [srcds] Advertisements, 2,
What's the correct escape character? If it's not supported, is there a workaround?

EDIT: Fixed by adding
Code:
    g_hAdvertisements.SetEscapeSequences(true);
to ParseAds().

Last edited by N3X15; 05-29-2016 at 01:29.
N3X15 is offline
dustydevil
Member
Join Date: Feb 2016
Old 06-03-2016 , 16:18   Re: Advertisements 2.0 (Updated 2016/03/23)
Reply With Quote #1996

Question DJ Tsunami
Could you not change how the Advert file is read and have it more Simple Like Mani admin Adverts Were?

Quote:
{GREEN}xxxxxxxxxxxxxxxxx
{blue}xxxxxxxxxxxxxx
Instead of the "1"
"2" ?
dustydevil is offline
DJ Tsunami
DJ Post Spammer
Join Date: Feb 2008
Location: The Netherlands
Old 06-04-2016 , 13:38   Re: Advertisements 2.0 (Updated 2016/03/23)
Reply With Quote #1997

No, this plugin has more options for each advertisement, so it would be really confusing to put that all on one line.
__________________
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
Tabajara 7.7
Junior Member
Join Date: Apr 2013
Location: Brazil
Old 06-05-2016 , 15:38   Re: Advertisements 2.0 (Updated 2016/03/23)
Reply With Quote #1998

Hello there!
For some reason, the {green} and {lightgreen} colors don't work in this new Advertisements 2.0 (I were using an old one back in 2012 - the v0.5 and v0.6; both were working fine). And now that I decided to head back with my ZPS server, I setup everything fine with this new version but only the colors are not working. Zombie Panic! Source uses Source Engine 2007 yet and only works/supports these types of colors ( green and lightgreen ).
Do you know what might be the problem?

Cheers!

Last edited by Tabajara 7.7; 06-05-2016 at 15:44.
Tabajara 7.7 is offline
DJ Tsunami
DJ Post Spammer
Join Date: Feb 2008
Location: The Netherlands
Old 06-07-2016 , 05:30   Re: Advertisements 2.0 (Updated 2016/03/23)
Reply With Quote #1999

I would suggest posting in [INC] ColorVariables, I don't handle color support other than what's provided there.
__________________
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
krikus62
Senior Member
Join Date: Jan 2015
Old 06-29-2016 , 09:17   Re: Advertisements 2.0 (Updated 2016/03/23)
Reply With Quote #2000

Made an advert in cs:go using \n but it did not make it a new line, it doesn't support cs:go newline?

"chat" " \n {gold} TEST \n"
__________________
My plugins:
Spoiler
krikus62 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 20:24.


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