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

Advertisements 2.1 (Updated 2021/02/06)


Post New Thread Reply   
 
Thread Tools Display Modes
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Old 01-01-2011 , 12:36   Re: Advertisements 0.5.5 (Updated 05/26/08)
Reply With Quote #1071

@lhffan, this have question been asked many times, over and over again.
And answer is in first post so start read !!
Or read previous post, you found even forum "search this thread" upper right topic.
__________________
Do not Private Message @me

Last edited by Bacardi; 01-01-2011 at 12:38. Reason: GOD DAM BAD ENGLISH
Bacardi is offline
DJ Tsunami
DJ Post Spammer
Join Date: Feb 2008
Location: The Netherlands
Old 01-01-2011 , 12:39   Re: Advertisements 0.5.5 (Updated 05/26/08)
Reply With Quote #1072

Quote:
Originally Posted by DJ Tsunami View Post
Type

This field can contain the following letters:

C A center message, like sm_csay.
H A hint message, like sm_hsay.
M A menu message, like sm_msay, but without the title or the Exit-option. 0 will still hide the message though. Will block 1-9 from switching weapons as long as it's showing.
S A chat message, like sm_say. It supports the following colors: {DEFAULT}, {TEAM}, {GREEN} and {LIGHTGREEN}. {TEAM} and {LIGHTGREEN} unfortunately don't work together in a single advertisement, so it's one or the other. For example: {GREEN}Current {LIGHTGREEN}Map: {DEFAULT}{CURRENTMAP}
T A top-left message, like sm_tsay. It supports one of the following colors: {WHITE}, {RED}, {GREEN}, {BLUE}, {YELLOW}, {PURPLE}, {CYAN}, {ORANGE}, {PINK}, {OLIVE}, {LIME}, {VIOLET} and {LIGHTBLUE}. You can omit the color if you just want the normal color. For example to have an orange message, set text to: {ORANGE} Text here

Multiple types per advertisement are allowed, so you can show a single advertisement in multiple places at the same time.
__________________
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
lhffan
Senior Member
Join Date: Jul 2008
Old 01-01-2011 , 13:36   Re: Advertisements 0.5.5 (Updated 05/26/08)
Reply With Quote #1073

Id did se that after bacardi showed me the way.

No need to scream
lhffan is offline
WolfGang
BANNED
Join Date: Oct 2010
Old 01-01-2011 , 18:01   Re: Advertisements 0.5.5 (Updated 05/26/08)
Reply With Quote #1074

Is It possible to use color olive in chat message?

Last edited by WolfGang; 01-06-2011 at 19:32.
WolfGang is offline
prymal
New Member
Join Date: Jan 2011
Location: Adelaide, South Australi
Old 01-15-2011 , 02:38   Re: Advertisements 0.5.5 (Updated 05/26/08)
Reply With Quote #1075

Great plugin, thanks!
prymal is offline
Send a message via MSN to prymal Send a message via Skype™ to prymal
Falcon_72
New Member
Join Date: Jan 2011
Location: QLD, Australia
Old 01-16-2011 , 18:15   Re: Advertisements 0.5.5 (Updated 05/26/08)
Reply With Quote #1076

I just started using this plugin for my new server. One problem with it is that the interval time is 30 secs by default. I change it to 300 but everytime my server restarts it goes back to 30 secs. My server seems to restart by itself every 12 hours or so.

Is it possible to change the default interval time? Every 30 secs is too often and annoying to the players.
Falcon_72 is offline
sinblaster
Grim Reaper
Join Date: Feb 2010
Location: Australia
Old 01-16-2011 , 19:33   Re: Advertisements 0.5.5 (Updated 05/26/08)
Reply With Quote #1077

Quote:
Originally Posted by Falcon_72 View Post
I just started using this plugin for my new server. One problem with it is that the interval time is 30 secs by default. I change it to 300 but everytime my server restarts it goes back to 30 secs. My server seems to restart by itself every 12 hours or so.

Is it possible to change the default interval time? Every 30 secs is too often and annoying to the players.

Ay? Are you saying that you physically type 3000 sec into cfg
sm_advertisements_interval 3000
and it changes itself back to
sm_advertisements_interval 30

impossible

I take it you're not using a cfg?

////// ADVERTISEMENTS (place in server.cfg)
Code:
//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 3000
//Server command to reload the advertisements from advertisements.txt. 
sm_advertisements_reload 1
__________________
Happy Happy Joy Joy


Last edited by sinblaster; 01-16-2011 at 19:36.
sinblaster is offline
Falcon_72
New Member
Join Date: Jan 2011
Location: QLD, Australia
Old 01-16-2011 , 19:43   Re: Advertisements 0.5.5 (Updated 05/26/08)
Reply With Quote #1078

I just tested it once again by manually restarting the server and it went back to 30 second intervals.

No its not impossible.

EDIT: Ah ic, I didnt know I had to do that. It's done now and its all fixed. Thankyou!

When people put instructions for there plugins, they should realise that some people are noobs and need more details.
__________________

Gamer Dungeon Team Fortress 2 Server - 202.60.82.81:27018

Last edited by Falcon_72; 01-16-2011 at 19:50.
Falcon_72 is offline
sinblaster
Grim Reaper
Join Date: Feb 2010
Location: Australia
Old 01-16-2011 , 19:50   Re: Advertisements 0.5.5 (Updated 05/26/08)
Reply With Quote #1079

cool

As a rule, generally when a writer places things thing s like this in a post without stating that it generates a cfg of its own, you need to add cvars to a cfg, server.cfg or sometimes autoexec.cfg

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

sm_advertisements_file (def "advertisements.txt")
File to read the advertisements from. Useful if you're running multiple  servers from one installation, and want to use different advertisements  per server.

sm_advertisements_interval (def 30)
Amount of seconds between advertisements.

sm_advertisements_reload
Server command to reload the advertisements from advertisements.txt.
but you'll always be a noob son, youre from QLD like I am. You probably live next door for all I know.
__________________
Happy Happy Joy Joy


Last edited by sinblaster; 01-16-2011 at 19:54.
sinblaster is offline
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Old 01-17-2011 , 02:12   Re: Advertisements 0.5.5 (Updated 05/26/08)
Reply With Quote #1080

aaw.. don't add Sourcemod plugins cvars in autoexec.cfg, only srcds own cvars. *cvars what you need to change once from default value
Because that file will be executed at the very beginning when server launched,
Meta and Sourcemod are not loaded yet in that time.
Bacardi 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 09:43.


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