Raised This Month: $23 Target: $400
 5% 

Ads


Post New Thread Reply   
 
Thread Tools Display Modes
Author
^BuGs^
Senior Member
Join Date: May 2007
Plugin ID:
62
Plugin Version:
1.0.4.0
Plugin Category:
Server Management
Plugin Game:
Any
Plugin Dependencies:
    Servers with this Plugin:
    19 
    Plugin Description:
    Shows defined server ads. If allowed, other plugins that are installed on your server will be able to register their own ad messages.
    Unapprover:
    Reason for Unapproving:
    Reported not to work and is not supported.
    Old 07-04-2007 , 14:48   Ads
    Reply With Quote #1

    This plugin is ad script. It allows messages to be disaplyed to all users depending on what they are and how long it takes them to show.

    Post all bug reports/ideas here and view current status here. Bug reports/ideas posted on the forums will not be taken. If you do not report bugs, I will not be able to fix it. Use your forums username and password to login to the system!

    CREDIT:
    • BAILOPAN - Sourcemod/Help/Issue List And SVN Hosting
    • Wiebbe - Dynamic Replacement Function
    REQUIREMENTS:
    • Min. Sourcemod Version: 1.0.0.1668 (Ads will FAIL to load if you do not have this version or above.)
    CVARS:
    • sm_ads_version - Used for stats tracking only.
    • sm_ads_status - Used to turn off/on ads.
      • 1 = on
      • 0 = off
    DEFAULTS:

    To change the defaults: configs/ads/plugin.ads.cfg

    COMMANDS:
    • None.
    FILE STRUCTURE:
    • translations/
      • ads.phrases.txt
    • plugins/
      • ads.smx
    • scripting/
      • ads.sp
      • ads/
        • All Development Files
    API:
    Code:
    /**
     * Add an ad message to the system. You can use the stock (Format_Add_Ad) for more advance formating options. 
     *
     * @param Message            The message to add to the ad system
     * @return                    True if the message was added; false if not
     */
    native bool:Add_Ads_Message(const String:message[]);
    
    stock bool:Format_Add_Ad(const String:text[], any:...);
    CHANGELOG:
    • 1.0.4.0 (11/04/07)
      • Set Chat Ads Color (FS#1108)
      • Ad msg capability in upper left-hand corner w/ color options (FS#1054)
      • Array index is out of bounds (FS#1021)
    • 1.0.3.0 (08/09/07)
      • Memory Leak Fix
    • 1.0.2.0 (07/31/07)
      • "Messages" to "AdMessages" in plugin.ads.cfg (Requires you make changes to your config file.) (FS#586)
      • Ads API Included (FS#529)
      • Using HintMessage native for the hint area (FS#547)
    • 1.0.1.0 (07/05/07)
      • Linux server cannot find "plugin.Ads.cfg" (FS#544)
    • 1.0.0.0 (07/03/07)
      • Public Release
    DOWNLOAD:
    This plugin is released under the Steamfriends.com brand name. Download it by going to the website here or here.
    Attached Files
    File Type: zip ads_1.0.4.0.zip (27.1 KB, 5018 views)
    __________________
    Sourcemod Plugin Author and Plugin Approver
    "The correct way is MAXPLAYERS + 1"
    I will not take bugs/new idea reports over the forums. Please use the issue list.

    Last edited by ^BuGs^; 11-04-2007 at 11:41. Reason: Updated to 1.0.4.0!
    ^BuGs^ is offline
    Wiebbe
    Junior Member
    Join Date: Jul 2007
    Old 07-04-2007 , 15:40   Re: Ads
    Reply With Quote #2

    if you tried to credit me atleast try to spell my name correctly

    But what does this exactly do? It allows me to show ads based on location, is that country? or something else?

    And i am not gonna download it, it sucks having to register just because i need to download 1 thing :/
    Wiebbe is offline
    tcviper
    Veteran Member
    Join Date: Oct 2005
    Location: Netherlands
    Old 07-04-2007 , 15:58   Re: Ads
    Reply With Quote #3

    Wiebbe what are you complaining? he created an advertisement plugin to display ads on specific PLACES like hintbox or chat or top left like MANI did.

    And if you dont wanna register, then dont but stop complaining you can now also download without registering.
    __________________
    tcviper is offline
    Send a message via MSN to tcviper
    ^BuGs^
    Senior Member
    Join Date: May 2007
    Old 07-04-2007 , 16:00   Re: Ads
    Reply With Quote #4

    Which will change shortly... It was just because of the released of INS that it was locked down.
    __________________
    Sourcemod Plugin Author and Plugin Approver
    "The correct way is MAXPLAYERS + 1"
    I will not take bugs/new idea reports over the forums. Please use the issue list.
    ^BuGs^ is offline
    Wiebbe
    Junior Member
    Join Date: Jul 2007
    Old 07-04-2007 , 17:59   Re: Ads
    Reply With Quote #5

    Quote:
    Originally Posted by tcviper View Post
    Wiebbe what are you complaining? he created an advertisement plugin to display ads on specific PLACES like hintbox or chat or top left like MANI did.

    And if you dont wanna register, then dont but stop complaining you can now also download without registering.
    No, i just wanted to know what it did, i didnt really understand it. Basicly i created the same ;)

    The complaning part was because i wanted to download it but it said i had to register.. which sucks!

    i dont mind competition at all, if its better, ill just use this one
    Wiebbe is offline
    ^BuGs^
    Senior Member
    Join Date: May 2007
    Old 07-04-2007 , 18:02   Re: Ads
    Reply With Quote #6

    I got the code working for Insurgency and the API are about all the differences made. Maybe the coding style, because I am keeping everything the same for all my plugins. Just need to create the API file. However, one bug in Sourcemod keeps me from supporting it.
    __________________
    Sourcemod Plugin Author and Plugin Approver
    "The correct way is MAXPLAYERS + 1"
    I will not take bugs/new idea reports over the forums. Please use the issue list.

    Last edited by ^BuGs^; 07-04-2007 at 18:04.
    ^BuGs^ is offline
    Wiebbe
    Junior Member
    Join Date: Jul 2007
    Old 07-04-2007 , 18:06   Re: Ads
    Reply With Quote #7

    i just took a look at the code (yey for no registration ) and its VERY neat. It doesnt have the dynamics yet, but if thats in ill go over to yours. Mine has some filthy bugs due to the nature of the way its coded.
    Wiebbe is offline
    Rebell
    Veteran Member
    Join Date: Nov 2004
    Location: GERMANY
    Old 07-05-2007 , 05:04   Re: Ads
    Reply With Quote #8

    A sample screenshot would be nice.

    cya
    __________________
    Rebell is offline
    yester64
    Senior Member
    Join Date: May 2007
    Old 07-05-2007 , 17:48   Re: Ads
    Reply With Quote #9

    oh very important. i noticed that your (actually i am not sure about that) add displays everything in the quickmessage.cfg

    {
    "0" "Watch your language please. Thank you."
    "1" "CT's -- Complete the Objective (Resuce Hostages)."
    "2" "CT's -- Complete the Objective (Resuce Hostages)."
    "3" "T's -- Complete the Objective (Bomb)."
    "4" "Please leave the spawn area or get kicked. Thank you."
    "5" "Please join a team or get kicked. Thank you."
    "6" "Please have all names appropriate or get kicked. Thank you."
    "7" "Visit our forum at www.div2rm.com"
    "8" "Psychostats at http://wscdiv.stats.nuclearfallout.net/"
    }
    "Key"
    {
    "0" "Language"
    "1" "CT Complete Obj (Hostages)"
    "2" "CT Complete Obj (Defuse)"
    "3" "T Complete Obj (Bomb)"
    "4" "Spawn"
    "5" "Spectators"
    "6" "Bad Name"
    "7" "DIV"
    "8" "Psychostats"
    }


    it displays as an example key 1 'ct complete obj (hostage)'
    look odd... maybe an error.
    __________________
    yester64 is offline
    bl4nk
    SourceMod Developer
    Join Date: Jul 2007
    Old 07-05-2007 , 21:09   Re: Ads
    Reply With Quote #10

    I'm not sure at what you were saying there, yester64, but are you saying that it lower cases all of the text?
    bl4nk is offline
    Reply


    Thread Tools
    Display Modes

    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:03.


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