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

Advertisements 2.1 (Updated 2021/02/06)


Post New Thread Reply   
 
Thread Tools Display Modes
xancara
Junior Member
Join Date: Jan 2014
Old 01-18-2014 , 17:55   Re: Advertisements 0.6 (Updated 2013/03/08)
Reply With Quote #1731

I am having issues with the flags component of the ads. The flags are not being honored when set on messages.

Code:
"1"
    {
        "type"        "C"
        "text"        "<message>"
        "flag"        "o"
    }
    "2"
    {
        "type"        "CH"
        "text"        "<message>"
        "flag"        "o"
    }
    "3"
    {
        "type"        "S"
        "text"        "<message>"
        "flag"        "o"
    }
    "4"
    {
        "type"        "CS"
        "text"        "<message>"
        "flag"        "o"
    }
    "5"
    {
        "type"        "CS"
        "text"        "<message>"
        "flag"        "o"
    }
    "6"
    {
        "type"        "CS"
        "text"        "<message>"
        "flag"        "o"
    }
I use sourcebans to manage all my admin and I have the "o" flag set on all of the groups to make the ads not visible to the admin. I am using a version of the plugin compiled on 1.5.3-hg3954 to make sure that it wasn't just a compiler issue. From what I understand this is correct.

My ads are displaying, but to everyone rather than to just those without the flag. Any suggestions or ideas?
xancara is offline
DJ Tsunami
DJ Post Spammer
Join Date: Feb 2008
Location: The Netherlands
Old 01-18-2014 , 22:39   Re: Advertisements 0.6 (Updated 2013/03/08)
Reply With Quote #1732

It's "flags", not "flag".
__________________
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
404UserNotFound
BANNED
Join Date: Dec 2011
Old 01-18-2014 , 22:50   Re: Advertisements 0.6 (Updated 2013/03/08)
Reply With Quote #1733

Hey DJ, any plans to make a TF2 version of this that uses MoreColors for the say messages? You could even use gamedir checks to check for TF2 and include MoreColors no matter the gamedir, then run CPrintToChatAll for TF2.
404UserNotFound is offline
sheng
Member
Join Date: Jan 2013
Old 01-19-2014 , 17:57   Re: Advertisements 0.6 (Updated 2013/03/08)
Reply With Quote #1734

Quote:
Originally Posted by abrandnewday View Post
Hey DJ, any plans to make a TF2 version of this that uses MoreColors for the say messages? You could even use gamedir checks to check for TF2 and include MoreColors no matter the gamedir, then run CPrintToChatAll for TF2.

Maybe this; https://forums.alliedmods.net/showthread.php?t=186340 (?)

__________________
sheng is offline
Saitrus
New Member
Join Date: Oct 2013
Old 01-20-2014 , 11:12   Re: Advertisements 0.6 (Updated 2013/03/08)
Reply With Quote #1735

i dont know what i do wrong but last time when i have css server it work but not anymore O.o
Saitrus is offline
Ronin78
Member
Join Date: Jan 2011
Old 01-20-2014 , 11:28   Re: Advertisements 0.6 (Updated 2013/03/08)
Reply With Quote #1736

Hi ppl

the adverts works fine its just the colors that dont work . This is on csgo ive seen other server running the plugin and it seems to be the same on there as well .
Ronin78 is offline
Donski
Senior Member
Join Date: Sep 2012
Old 01-20-2014 , 15:18   Re: Advertisements 0.6 (Updated 2013/03/08)
Reply With Quote #1737

Does anyone have any idea if this would work with L4D2 or NMRIH?
Donski is offline
Munch
Senior Member
Join Date: May 2012
Location: Liverpool UK
Old 01-21-2014 , 17:51   Re: Advertisements 0.6 (Updated 2013/03/08)
Reply With Quote #1738

Advertisements work on Left 4 Dead 2 except for the colours.
Don't know what or if NMRIH works.

Edit: Actually the Colours do work for Left 4 Dead 2

{GREEN} green
{LIGHTGREEN} which IS in fact Orange
(DEFAULT} white
__________________
Dead Men Fighting L4D2 8 Man Dead Men Fighting UK

Last edited by Munch; 04-15-2014 at 21:32.
Munch is offline
thoren
Junior Member
Join Date: Jan 2014
Old 01-22-2014 , 16:06   Re: Advertisements 0.6 (Updated 2013/03/08)
Reply With Quote #1739

It works with CS:GO, I made a mistake. Sorry.

Continue good work ;)
thoren is offline
Ronin78
Member
Join Date: Jan 2011
Old 01-23-2014 , 08:21   Re: Advertisements 0.6 (Updated 2013/03/08)
Reply With Quote #1740

Quote:
Originally Posted by thoren View Post
It works with CS:GO, I made a mistake. Sorry.

Continue good work ;)
you mean you got the colors to work ? if so how because following the instructions they dont .
Ronin78 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 21:36.


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