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

Advertisements 2.1 (Updated 2021/02/06)


Post New Thread Reply   
 
Thread Tools Display Modes
Kalle801
Member
Join Date: May 2016
Old 06-20-2017 , 19:25   Re: Advertisements 2.0 (Updated 2016/03/23)
Reply With Quote #2041

Is there a way to let a "hint" message be shown longer than just 1 Second?
Kalle801 is offline
Ghost34
Member
Join Date: Jul 2017
Location: In the middle of nothing
Old 08-17-2017 , 17:42   Re: Advertisements 2.0 (Updated 2016/03/23)
Reply With Quote #2042

Can I use more than one color in one message?
Ghost34 is offline
Snack Patrol
Member
Join Date: Jan 2012
Location: Earth
Old 08-19-2017 , 12:56   Re: Advertisements 2.0 (Updated 2016/03/23)
Reply With Quote #2043

Hello, I am one of the many people who would really love to see functionality to randomly pick which advertisement to display. It's something I've wanted to see done for a long time, I think I even offered to throw someone some money for this functionality (I plan to just include funny quotes from like stand-up comedians, and memes and pieces of trivia). It would really make my day if someone could include a clean easy way to do this (display a random advertisement).

Honestly $15 to the guy who can figure this out if you're down.
Snack Patrol is offline
SimplyJpk
Member
Join Date: Oct 2013
Location: Just Jump
Old 08-20-2017 , 02:15   Re: Advertisements 2.0 (Updated 2016/03/23)
Reply With Quote #2044

I made the edits in this a while back for my server (Random advertisements seems better, less predictable for regulars). I've attached the source and compile to this post.

You can also !advertise 5 to show the advertisement 6th in your list of advertisements

I can't remember what else I added as I said, was a while ago, you can read through the source if you like, I've probably put in a few stupid comments to remind me of stuff, or just stupid comments because that's what I used to throw in my code.

If you want to shoot me the $15, can add me http://steamcommunity.com/id/SimplyJpk/ , won't turn down coin as I'm busy studying full time atm, however, if you get use out of it, I was glad to simply help out.

As far as I remember, it doesn't require any additional configs or setup, should work with your current config.

Take it easy,
Jpk.
Attached Files
File Type: sp Get Plugin or Get Source (advertisements.sp - 293 views - 10.0 KB)
File Type: smx advertisements.smx (16.2 KB, 350 views)
__________________
Code is Fun
If your plugin is broken, add me. If I have some free time I don't mind taking a look and fixing. (FreeTime lately is Limited).
SimplyJpk is offline
abhit17
Junior Member
Join Date: Aug 2017
Old 10-08-2017 , 12:35   Re: Advertisements 2.0 (Updated 2016/03/23)
Reply With Quote #2045

Where do i put these cvars in server cfg or somewhere else
abhit17 is offline
The enigma
Member
Join Date: Feb 2016
Old 01-06-2018 , 14:59   Re: Advertisements 2.0 (Updated 2016/03/23)
Reply With Quote #2046

How do I get this plugin to randomize the list?
Its always the same order,
And the attached files above didnt work either.
The enigma is offline
SimplyJpk
Member
Join Date: Oct 2013
Location: Just Jump
Old 01-07-2018 , 18:54   Re: Advertisements 2.0 (Updated 2016/03/23)
Reply With Quote #2047

Quote:
Originally Posted by The enigma View Post
How do I get this plugin to randomize the list?
Its always the same order,
And the attached files above didnt work either.
My attached plugin a few posts earlier works, I have 3 servers running it. Are you sure you added it and not the default one? The original plugin has no support for random ads, so long as you've set it up the same as the default one, my attached smx should work fine.
__________________
Code is Fun
If your plugin is broken, add me. If I have some free time I don't mind taking a look and fixing. (FreeTime lately is Limited).
SimplyJpk is offline
mghkli
New Member
Join Date: Jan 2018
Old 01-12-2018 , 07:31   Re: Advertisements 2.0 (Updated 2016/03/23)
Reply With Quote #2048

hi , something is wrong with topcolors.sp . when i try to compile it , it shows me 26 error!
Help pls
mghkli is offline
kot4404
Senior Member
Join Date: Mar 2013
Old 01-13-2018 , 06:09   Re: Advertisements 2.0 (Updated 2016/03/23)
Reply With Quote #2049

Quote:
Originally Posted by SimplyJpk View Post
My attached plugin a few posts earlier works, I have 3 servers running it. Are you sure you added it and not the default one? The original plugin has no support for random ads, so long as you've set it up the same as the default one, my attached smx should work fine.
Doesn't work for me either, nothing happens
kot4404 is offline
jouva
Senior Member
Join Date: Jan 2010
Old 03-11-2018 , 11:51   Re: Advertisements 2.0 (Updated 2016/03/23)
Reply With Quote #2050

I've installed the plugin on my TF2 server and advertisements are happening just fine. But when using the "chat" type, instead of seeing text in the color specified in the text, it spits out the color HEX code. I'm only using {green} and {default} in one instance.

Though come to think of it, only the {green} spit out a hex code and {default} did not.

Code:
"Advertisements"
{
    "1"
    {
        "chat"          "Check out our Discord chat server!\n{green}hxxps://example.com{default}"
    }
    "2"
    {
        "chat"          "Come join our Steam Group for announcements about our server!\n{green}hxxp://example.com{default}"
    }
    "3"
    {
        "chat"          "(Redacted message about server using no colors)"
    }
    "4"
    {
        "chat"          "(Redacted message for members using no colors)"
        "flags"         "a"
    }
}
URL and some text redacted.

Any thoughts?

Last edited by jouva; 03-11-2018 at 11:52.
jouva 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 19:08.


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