Raised This Month: $51 Target: $400
 12% 

Advertisements 2.1 (Updated 2021/02/06)


Post New Thread Reply   
 
Thread Tools Display Modes
Snaggle
AlliedModders Donor
Join Date: Jul 2010
Location: England
Old 10-14-2010 , 09:37   Re: Advertisements 0.5.5 (Updated 05/26/08)
Reply With Quote #1031

There should be an "advertisements.txt" file in the /sourcemod/configs folder. That's the file that stores your advertisements.
Snaggle is offline
sinblaster
Grim Reaper
Join Date: Feb 2010
Location: Australia
Old 10-14-2010 , 11:42   Re: Advertisements 0.5.5 (Updated 05/26/08)
Reply With Quote #1032

Quote:
Originally Posted by boogaloo View Post
I'm having a problem with getting the sm_advertisements_reload to work.

1)I installed the .smx file in addons/sourcemod/plugins/
2) Installed the advertisements.txt file addons/sourcemod/configs
-- I didnt get a .cfg file made anywhere
3) so i made my own in cfg/sourcemod/adverts.cfg
-- i only made a config file because the .smx didnt make one for me, i dont know if its supposed to but im assuming it is, so maybe i installed it wrong? well all the cvars work besides sm_advertisements_reload.


Put this in your /cfg/server.cfg file.
I doubt your cfg/sourcemod/adverts.cfg will do anything its not a part of the process.

Code:
////// ADVERTISEMENTS 

//Enable/disable displaying advertisements(0/1, def 1) 
sm_advertisements_enabled 1 

//File to read the advertisements from.(def "advertisements.txt") 
sm_advertisements_file advertisements.txt 

//Amount of seconds between advertisements (def 30) 
sm_advertisements_interval 80 
. 
//Server command to reload the advertisements from advertisements.txt. 
sm_advertisements_reload 1
__________________
Happy Happy Joy Joy

sinblaster is offline
ssphreak
Senior Member
Join Date: Aug 2009
Old 10-17-2010 , 12:12   Re: Advertisements 0.5.5 (Updated 05/26/08)
Reply With Quote #1033

DJ T -

Is there a way to remove the callout for the color in the hintbox? In my hintbox it looks like this.

{GREEN} Follow the server rules.

And in top left it just shows.

Follow the server rules. (in green - that part works right.)

thanks - phreak

Also is it possible to make the top left view show more...a couple of my advertisements are being cut off?
ssphreak is offline
FrozDark
BANNED
Join Date: May 2010
Location: Kazakhstan, Shymkent
Old 10-18-2010 , 12:51   Re: Advertisements 0.5.5 (Updated 05/26/08)
Reply With Quote #1034

2ssphreak
Quote:
Originally Posted by +]3D[+Death View Post
Ok here is a fix and Im currently running this plugin without a issue on Firearms 1.0d for source. just upload all to correct folders in Souremod folder. Set the advertisement.txt file to what ever you want. I put 8 differnt ones in for starters.

http://www.3dclan.com/advertisements2010.zip
FrozDark is offline
Send a message via Skype™ to FrozDark
daniel1230
New Member
Join Date: Jun 2010
Old 10-21-2010 , 17:23   Re: Advertisements 0.5.5 (Updated 05/26/08)
Reply With Quote #1035

this say adverts don't work with me but the other ones do, any ideas?
Thanks
daniel1230 is offline
boogaloo
Member
Join Date: Oct 2010
Old 10-21-2010 , 18:05   Re: Advertisements 0.5.5 (Updated 05/26/08)
Reply With Quote #1036

im not using this plugin until i get a .cfg file for it. im not going to crowd my server.cfg with a whole bunch of nonsense.

i mean afterall isnt it common sense if your plugin has variables that you probide a config file? that should be a must for any plugin author.
__________________
boogaloo is offline
sinblaster
Grim Reaper
Join Date: Feb 2010
Location: Australia
Old 10-21-2010 , 20:09   Re: Advertisements 0.5.5 (Updated 05/26/08)
Reply With Quote #1037

Quote:
Originally Posted by boogaloo View Post
im not using this plugin until i get a .cfg file for it. im not going to crowd my server.cfg with a whole bunch of nonsense.

i mean afterall isnt it common sense if your plugin has variables that you probide a config file? that should be a must for any plugin author.

hey boogaloo if you don't want to "crowd your server.cfg" then don't use the plugin. It works fine just as it is made.
What is it exactly you fear about adding cvars in your server.cfg? 30% of plugins these days ask you to add something. Ive seen server.cfg files 2 pages long and it makes no difference. Your demands are un-reasonable and your threatening not to use it sounds a little futile.

Quote:
Originally Posted by daniel1230 View Post
this say adverts don't work with me but the other ones do, any ideas?
Thanks
if you followed the first post it should be fine.
try reading this small tute, its using this plugin as an example.
#9
__________________
Happy Happy Joy Joy


Last edited by sinblaster; 10-21-2010 at 20:16.
sinblaster is offline
meecrob
Senior Member
Join Date: Jan 2010
Old 10-21-2010 , 20:22   Re: Advertisements 0.5.5 (Updated 05/26/08)
Reply With Quote #1038

Quote:
Originally Posted by boogaloo View Post
im not using this plugin until i get a .cfg file for it. im not going to crowd my server.cfg with a whole bunch of nonsense.

i mean afterall isnt it common sense if your plugin has variables that you probide a config file? that should be a must for any plugin author.

For the record, all plugin have default values. You could add this plugin to your server without having any vars in your server.cfg or elsewhere. This will enable the plugin to display advertisements every 30 seconds.
__________________
meecrob is offline
sinblaster
Grim Reaper
Join Date: Feb 2010
Location: Australia
Old 10-21-2010 , 20:46   Re: Advertisements 0.5.5 (Updated 05/26/08)
Reply With Quote #1039

Quote:
Originally Posted by meecrob View Post
For the record, all plugin have default values. You could add this plugin to your server without having any vars in your server.cfg or elsewhere. This will enable the plugin to display advertisements every 30 seconds.

Exactly, well said.
And if the only thing that you want to change is how often the ads play, then all you need to add to server.cfg is
sm_advertisements_interval "place new value here" (def 30 as meecrob mentioned)
__________________
Happy Happy Joy Joy

sinblaster is offline
DJ Tsunami
DJ Post Spammer
Join Date: Feb 2008
Location: The Netherlands
Old 10-22-2010 , 02:15   Re: Advertisements 0.5.5 (Updated 05/26/08)
Reply With Quote #1040

Quote:
Originally Posted by boogaloo View Post
im not using this plugin until i get a .cfg file for it. im not going to crowd my server.cfg with a whole bunch of nonsense.

i mean afterall isnt it common sense if your plugin has variables that you probide a config file? that should be a must for any plugin author.
Nope, it isn't common sense, because automated config files break map specific config files. If you want that fixed, file a bug for SourceMod.
__________________
Advertisements | REST in Pawn - HTTP client for JSON REST APIs
Please do not PM me with questions. Post in the plugin thread.
DJ Tsunami 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 08:53.


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