Adverts system
2 Attachment(s)
Adverts
version 1.0.1 by Wiebbe (with alot of help from Ferrets code) Description This plugin is just like the BAT SourceMOD plugin which can show adverts on the server. This plugin will read a ini file with all adverts located on a single line and display them in a linear order. The ads are rotated on a time basis which is set using a Cvar. It also allows to use certain replaceable texts to fill up the ads and make them more dynamic. Before i receive alot of flaming, i am kinda new to this sort of plugin coding and i used code from other pieces of plugins. The adverts system was not available yet so i decided to use different parts from different coders. I used the "message type" part from the Exclusion chat, i used the variable code from Mapchooser and Nextmap. I dont claim i wrote everything from scratch but it works like a charm for me and i wanted to share it. It can most likely be made a lot better but this works for me! So credit where credit is due! Cvars
You NEED the adverts.ini, place this in the: "configs/" directory from sourcemod! Just add a new ad on each time. Each ad can be 192 characters because this is the maximum the chat can be itself. there is a Maximum of 128 ads which i thougt would be enought. Optional If you have the nextmap plugin installed the advert plugin will be able to read the "nextmap" from the Cvar and use it as an Dynamic. Nextmap: http://forums.alliedmods.net/showthread.php?t=56689 Changelog
|
Re: Adverts system
And i wanted to post a question, this plugin works like a charm, but during compile it does give out a warning. Could anyone tell me how to fix this?
Even with the warning it never crashed in the 2/3 hours i had it running so it does work.. |
Re: Adverts system
Warnings are allowed. They usually say something is not used. Good job. :)
|
Re: Adverts system
Just some suggestions:
|
Re: Adverts system
Quote:
Sounds like a good idea for the nextmap plugin, ill implement those idea's. |
Re: Adverts system
can you add a {tickrate} command so it can read what the tickrate of your server is? thanks
|
Re: Adverts system
well, have it like mani. add tikrate, nextmap etc.
but actually i really would like to see to specify the timerate it will be displayed. otherwise its a great plugin. once we really need. Quote:
|
Re: Adverts system
Instead of only having one display location, perhaps multiple locations at once?
|
Re: Adverts system
Quote:
Nextmap is already in btw ;) I will see if i can work the location stuff.. |
Re: Adverts system
I'd also like the ability for adverts to be shown in multiple positions.
But that top panel placement often obscures the radar so I'd love it if you could make the top panel advert only display for dead players (or spectators) whilst the other advert positions are displayed to all. |
All times are GMT -4. The time now is 13:45. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.