AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Unapproved Plugins (https://forums.alliedmods.net/forumdisplay.php?f=109)
-   -   Ads (https://forums.alliedmods.net/showthread.php?t=57430)

^BuGs^ 07-04-2007 14:48

Ads
 
1 Attachment(s)
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. :)

Wiebbe 07-04-2007 15:40

Re: Ads
 
if you tried to credit me atleast try to spell my name correctly :P

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 :/

tcviper 07-04-2007 15:58

Re: Ads
 
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.

^BuGs^ 07-04-2007 16:00

Re: Ads
 
Which will change shortly... :) It was just because of the released of INS that it was locked down.

Wiebbe 07-04-2007 17:59

Re: Ads
 
Quote:

Originally Posted by tcviper (Post 498679)
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 :P

^BuGs^ 07-04-2007 18:02

Re: Ads
 
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. :)

Wiebbe 07-04-2007 18:06

Re: Ads
 
i just took a look at the code (yey for no registration :P) 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.

Rebell 07-05-2007 05:04

Re: Ads
 
A sample screenshot would be nice.

cya

yester64 07-05-2007 17:48

Re: Ads
 
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.

bl4nk 07-05-2007 21:09

Re: Ads
 
I'm not sure at what you were saying there, yester64, but are you saying that it lower cases all of the text?


All times are GMT -4. The time now is 02:13.

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