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

Advertisements 2.1 (Updated 2021/02/06)


Post New Thread Reply   
 
Thread Tools Display Modes
Roel
Junior Member
Join Date: Mar 2009
Old 03-01-2009 , 08:52   Re: Advertisements 0.5.5 (Updated 05/26/08)
Reply With Quote #411

Hi Developper
I have a problem
At the moment you have 5 line's you can advert
I want to add more line
If I add more lines then nothing works
The plugin loads in the server but it doesnt read the txt fil
I have done it like this

"Advertisements"
{
"1"
{
"type" "H"
"text" "Website: www.ins-tac.com"
}
"2"
{
"type" "H"
"text" "Hlstatsx: http://tac-rank.hlstatsx.com"
}
"3"
{
"type" "H"
"text" "Hlstatsx: http://tac-rank.hlstatsx.com"
}
"4"
{
"type" "H"
"text" "Next map is {SM_NEXTMAP} in {TIMELEFT} minutes."
"flags" "cft"
}
"5"
{
"type" "H"
"text" "Report admin abuse or anything in our Forum"
}
"6"
{
"type" "H"
"text" "Help us Running, Donate Today...."
}
"7"
{
"type" "H"
"text" "Hey...After this game..Read our Forum"
}
"8"
{
"type" "H"
"text" "Forum: http://forum.ins-tac.com"
}
"9"
{
"type" "H"
"text" "Help us Running, Donate Today...."
}
}


What is wrong here !!!
Did I miss something??
Roel is offline
Roachy
Member
Join Date: Feb 2008
Old 03-02-2009 , 04:44   Re: Advertisements 0.5.5 (Updated 05/26/08)
Reply With Quote #412

Edit your post and put your config file in code tags so we can see your indentation. I'm pretty sure indentation matters with these files.
Roachy is offline
GrimGriz
Member
Join Date: Feb 2009
Location: Portland, OR GMT -8
Old 03-02-2009 , 06:47   Re: Advertisements 0.5.5 (Updated 05/26/08)
Reply With Quote #413

Quote:
Originally Posted by Roachy View Post
I glanced through the code a bit, but nothing struck me offhand. So the question is, would there be a simple way to make this plugin run two adverts at a time, instead of one, and then use the sm_advertisement_interval cvar as usual every second advert?
Have you tried squeezing one in inappropriately to see what happens?
i.e.
"1"
{
"type" "T"
"text" "Sup G?"
"type" "S"
"text" "GrimGriz is the best!"
}
GrimGriz is offline
FixX
New Member
Join Date: Nov 2007
Old 03-02-2009 , 14:18   Re: Advertisements 0.5.5 (Updated 05/26/08)
Reply With Quote #414

Having a problem. Only admins can see the ads.


What is wrong?



"Advertisements"
{
"1"
{
"type" "S"
"text" "{GREEN}http://TotalCarnage.darkstargamers.com/"
}
"2"
{
"type" "S"
"text" "{GREEN}Donate and help keep the server alive! See server MOTD for info."
}
"3"
{
"type" "S"
"text" "{GREEN}Join us on ventrilo. IP: lead.typefrag.com Port: 52535"
}
"4"
{
"type" "S"
"text" "{GREEN}We are recruiting! Visit the forums for more information."
}
}
FixX is offline
Roachy
Member
Join Date: Feb 2008
Old 03-03-2009 , 03:01   Re: Advertisements 0.5.5 (Updated 05/26/08)
Reply With Quote #415

Quote:
Originally Posted by GrimGriz View Post
Have you tried squeezing one in inappropriately to see what happens?
i.e.
"1"
{
"type" "T"
"text" "Sup G?"
"type" "S"
"text" "GrimGriz is the best!"
}
I will try this. But it also occurs to me that maybe I could squeeze another "1" in as well. I'll try both.
Roachy is offline
Chaotic Llama
SourceMod Donor
Join Date: Dec 2005
Location: Lee's Summit, MO
Old 03-03-2009 , 14:11   Re: Advertisements 0.5.5 (Updated 05/26/08)
Reply With Quote #416

Call me crazy but...

I've been running this plugin across tf2, ff, hl2mp, l4d and css. For whatever reason the adverts stopped working in css. I've checked everything and was curious if anyone else running css had an issue?

For testing purposes I ran the default advertisements.txt out of the configs/ dir to see if any of the messages cycled, none.

12:286 sm plugins list
12:286 [SM] Listing 29 plugins:

05 "Advertisements" (0.5.5) by Tsunami

12:28:52 sm_advertisements_enabled
12:28:53 "sm_advertisements_enabled" = "1"
- Enable/disable displaying advertisements.

121:45 sm_advertisements_file
121:45 "sm_advertisements_file" = "advertisements.txt"
- File to read the advertisements from.
__________________
In a League of it's own ~ OneWorldOn-line.com
Chaotic Llama is offline
Send a message via AIM to Chaotic Llama
narutoramen
Junior Member
Join Date: Jan 2009
Location: UK
Old 03-03-2009 , 22:04   Re: Advertisements 0.5.5 (Updated 05/26/08)
Reply With Quote #417

Quote:
Originally Posted by Chaotic Llama View Post
Call me crazy but...

I've been running this plugin across tf2, ff, hl2mp, l4d and css. For whatever reason the adverts stopped working in css. I've checked everything and was curious if anyone else running css had an issue?

For testing purposes I ran the default advertisements.txt out of the configs/ dir to see if any of the messages cycled, none.

12:286 sm plugins list
12:286 [SM] Listing 29 plugins:

05 "Advertisements" (0.5.5) by Tsunami

12:28:52 sm_advertisements_enabled
12:28:53 "sm_advertisements_enabled" = "1"
- Enable/disable displaying advertisements.

121:45 sm_advertisements_file
121:45 "sm_advertisements_file" = "advertisements.txt"
- File to read the advertisements from.
same here - no error logs or errors, just doesn't show up at all... works with my Left4Dead server tho.
narutoramen is offline
Chaotic Llama
SourceMod Donor
Join Date: Dec 2005
Location: Lee's Summit, MO
Old 03-03-2009 , 22:28   Re: Advertisements 0.5.5 (Updated 05/26/08)
Reply With Quote #418

Quote:
Originally Posted by narutoramen View Post
same here - no error logs or errors, just doesn't show up at all... works with my Left4Dead server tho.
Indeed...

Loads fine, no errors reported, compiles fine (even tried sm's compiled version), the adverts just don't show.

*Edit*

What I found was a conflict between Tsunami's advertisement plugin and counter-strike:source death match mod by Bailopan. If I don't load cssdm the adverts work fine, grrr.


Finally tracked it down...
__________________
In a League of it's own ~ OneWorldOn-line.com

Last edited by Chaotic Llama; 03-04-2009 at 16:24. Reason: update - plugin conflict
Chaotic Llama is offline
Send a message via AIM to Chaotic Llama
Roachy
Member
Join Date: Feb 2008
Old 03-04-2009 , 16:59   Re: Advertisements 0.5.5 (Updated 05/26/08)
Reply With Quote #419

I've found that sometimes, if you use the sm_advertisements_reload command, and maybe sometimes if you just reload the plugin, you will not see the advertisements until you reconnect to the server. I made a bunch of changes and reloaded a bunch of times once, without reconnecting to my server, before I finally realized that other people were seeing the ads. Once I "retry"ed I saw them.
Roachy is offline
narutoramen
Junior Member
Join Date: Jan 2009
Location: UK
Old 03-04-2009 , 22:20   Re: Advertisements 0.5.5 (Updated 05/26/08)
Reply With Quote #420

Quote:
Originally Posted by Chaotic Llama View Post
What I found was a conflict between Tsunami's advertisement plugin and counter-strike:source death match mod by Bailopan. If I don't load cssdm the adverts work fine, grrr.


Finally tracked it down...
I don't actually have that deathmatch plugin on my server, and it still didn't show...
narutoramen 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 18:08.


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