AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Unapproved/Old Plugins (https://forums.alliedmods.net/forumdisplay.php?f=27)
-   -   Hud Sync Advertisements (1.2)(12.25.2015) (https://forums.alliedmods.net/showthread.php?t=274059)

redivcram 10-31-2015 21:13

Hud Sync Advertisements (1.2)(12.25.2015)
 
3 Attachment(s)
Hud Sync Advertisements


Description

With this plugin, multiple ads can sync through on one location, one by one. They can be edited in hudsyncads.ini. Clients also have an option to disable them for themselves, through a cvar, the option could be set only accessible for privileged clients or could be completely disabled.

Cvars

hud_ads_time <float any> Default: 3.0 Time between Advertisements
hud_ads_hide <0-2> Default: 1 Option for clients to hide ads (0 - Off | 1 - Admins only | 2 - On for everyone)
hud_ads_showhostname <0-1> Default: 1 Display host name above advertisement (0 - Off | 1 - On)
hud_ads_color <RRR GGG BBB> Default: 255 255 255 Color of the advertisement in RGB format
hud_ads_time <X Y> Default: -1.0 0.2 Position of the advertisement

Hartmann 10-31-2015 21:48

Re: Hud Sync Advertisements (1.0)(11.1.2015)
 
Quote:

Originally Posted by Rules
• Do not post plugins "just for the sake of it". eg. A fulfilled request may have been useful for one or a few people, but that does not necessarily mean that it has a place in the Approved section. Please take the time to expand your knowledge and produce some quality work.


Blizzard_87 11-01-2015 02:35

Re: Hud Sync Advertisements (1.0)(11.1.2015)
 
GHW is better then this. Yours doesn't have a config file.
Having to recompile a plugin every time you change a ad is Ludacris.

redivcram 11-01-2015 03:48

Re: Hud Sync Advertisements (1.1)(11.1.2015)
 
Updated, not necessary anymore.

Blizzard_87 11-01-2015 05:39

Re: Hud Sync Advertisements (1.1)(11.1.2015)
 
Quote:

Originally Posted by redivcram (Post 2358719)
Updated, not necessary anymore.

you still have to recompile if you wanna add more ad's.

you also didnt add a config file. you have just use the multilang feature and used it wrong.

do you know what your doing?

redivcram 11-01-2015 06:37

Re: Hud Sync Advertisements (1.1)(11.1.2015)
 
Ads are inside the multilang file. So It basically works as a config file. Thus Max ads are 7.. if you look at cvars

And just because I posted it, doesn't mean I wont update it... you know?

Blizzard_87 11-01-2015 20:09

Re: Hud Sync Advertisements (1.1)(11.1.2015)
 
This will not get approved as I've already stated GHW plugin is far better in every way.

Your plugin can also be far more optimised.

For 1. You need to use a real config file setup and read file then loop thru all ads saving them into a dynamic array then display them randomly.

But GHW plugin does that. So...

redivcram 11-02-2015 04:51

Re: Hud Sync Advertisements (1.1)(11.1.2015)
 
I'm still learning.. so I'll need some time until I add it to another update. I just need to know how to get size of the file, to read the file, but I tried different ways and nothing... I don't know.

Blizzard_87 11-02-2015 18:56

Re: Hud Sync Advertisements (1.1)(11.1.2015)
 
There are plenty of tutorials that explain how to read and write to files.

redivcram 11-03-2015 05:47

Re: Hud Sync Advertisements (1.1)(11.1.2015)
 
Alright..
Just give me some time.. I thought you can just post this and let others see the idea until I make It's code qualified


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

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