Raised This Month: $32 Target: $400
 8% 

Advertisements 2.1 (Updated 2021/02/06)


Post New Thread Reply   
 
Thread Tools Display Modes
V01D1nCuB4T0R
New Member
Join Date: Aug 2015
Old 08-06-2015 , 08:51   Re: Advertisements 0.6 (Updated 2013/03/08)
Reply With Quote #1931

Guys, help! Colors ARE NOT working. What I should do?

Config:
Code:
"Advertisements"
{
	"1"
	{
		"type"		"T"
		"text"		"{GREEN}Добро пожаловать на Иркутский сервер Team Fortress 2!\n{LIGHTGREEN}Skype администратора: {GREEN}antigreefer"
	}
	"2"
	{
		"type"		"T"
		"text"		"{VIOLET}<< Вы играете на Иркутском сервере TF2 >>"
	}
	"3"
	{
		"type"		"T"
		"text"		"{OLIVE}По вопросам помощи серверу писать в скайп: {LIGHTBLUE}antigreefer"
	}
	"4"
	{
		"type"		"T"
		"text"		"{GREEN}Карта: {DEFAULT}{CURRENTMAP}"
	}
	"5"
	{
		"type"		"S"
		"text"		"{ORANGE}Главный администратор: {LIGHTBLUE}[| R41NB0W F4CT0RY |]"
	}
}

Last edited by V01D1nCuB4T0R; 08-06-2015 at 08:52.
V01D1nCuB4T0R is offline
NeoTM
AlliedModders Donor
Join Date: Feb 2013
Location: Britain
Old 08-09-2015 , 11:36   Re: Advertisements 0.6 (Updated 2013/03/08)
Reply With Quote #1932

Quote:
Originally Posted by V01D1nCuB4T0R View Post
Guys, help! Colors ARE NOT working. What I should do?

Config:
Code:
"Advertisements"
{
    "1"
    {
        "type"        "T"
        "text"        "{GREEN}Добро пожаловать на Иркутский сервер Team Fortress 2!\n{LIGHTGREEN}Skype администратора: {GREEN}antigreefer"
    }
    "2"
    {
        "type"        "T"
        "text"        "{VIOLET}<< Вы играете на Иркутском сервере TF2 >>"
    }
    "3"
    {
        "type"        "T"
        "text"        "{OLIVE}По вопросам помощи серверу писать в скайп: {LIGHTBLUE}antigreefer"
    }
    "4"
    {
        "type"        "T"
        "text"        "{GREEN}Карта: {DEFAULT}{CURRENTMAP}"
    }
    "5"
    {
        "type"        "S"
        "text"        "{ORANGE}Главный администратор: {LIGHTBLUE}[| R41NB0W F4CT0RY |]"
    }
}
For me top message ("type" "T") don't work so i can't help you. (i use the plugin on L4D2)

But for chat message ("type" "S"), you use the wrong color code.

// S: Say message
// - Colors: {DEFAULT}, {TEAM}, {GREEN}, {LIGHTGREEN}
// - Example: {GREEN}Current {LIGHTGREEN}Map: {DEFAULT}{CURRENTMAP}

You have more explanation in the advertisement.txt given with the plugin.
__________________
82.66.75.218:27015 - Walk In Dead Nightmare
82.66.75.218:27016 - Walk In Dead Rampage
82.66.75.218:27017 - Walk In Dead Vanilla
NeoTM is offline
ESK0
BANNED
Join Date: May 2014
Location: Czech Republic
Old 08-15-2015 , 21:07   Re: Advertisements 0.6 (Updated 2013/03/08)
Reply With Quote #1933

https://forums.alliedmods.net/showthread.php?t=248314
ESK0 is offline
Wormy
Senior Member
Join Date: Jan 2013
Location: 2fort
Old 08-16-2015 , 11:56   Re: Advertisements 0.6 (Updated 2013/03/08)
Reply With Quote #1934

Is it possible to somehow edit the plugin to make it show certain advertisements on a specific map? This would be useful for my server since some plugins are disabled depending on the map, and I'd like to let players know of it easily.
__________________
Wormy is offline
SimplyJpk
Member
Join Date: Oct 2013
Location: Just Jump
Old 08-17-2015 , 04:18   Re: Advertisements 0.6 (Updated 2013/03/08)
Reply With Quote #1935

Quote:
Originally Posted by Wormy View Post
Is it possible to somehow edit the plugin to make it show certain advertisements on a specific map? This would be useful for my server since some plugins are disabled depending on the map, and I'd like to let players know of it easily.
Going to assume you're after tf2, but I believe it works in most/all source games. Say you want gravelpit specific avertisements

Make a file at '/tf/maps/cfg/cp_gravelpit.cfg' and set the "sm_advertisements_file" cvar to where ever your advertisement file is, since it's default is in 'configs' (i'd suggest something like 'advert/mapname' instead of just 'mapname' would be hard to track). And just setup your advertisements like before.

I haven't used this functionality before, so it might be slightly different.
__________________
Code is Fun
If your plugin is broken, add me. If I have some free time I don't mind taking a look and fixing. (FreeTime lately is Limited).
SimplyJpk is offline
Wormy
Senior Member
Join Date: Jan 2013
Location: 2fort
Old 08-19-2015 , 07:46   Re: Advertisements 0.6 (Updated 2013/03/08)
Reply With Quote #1936

Quote:
Originally Posted by SimplyJpk View Post
Going to assume you're after tf2, but I believe it works in most/all source games. Say you want gravelpit specific avertisements

Make a file at '/tf/maps/cfg/cp_gravelpit.cfg' and set the "sm_advertisements_file" cvar to where ever your advertisement file is, since it's default is in 'configs' (i'd suggest something like 'advert/mapname' instead of just 'mapname' would be hard to track). And just setup your advertisements like before.

I haven't used this functionality before, so it might be slightly different.
Oh, that's useful. Didn't know such a cvar existed, thanks for the tip.

I had issues getting this to work properly, but reloading the plugin after every map change seems to have fixed it.
__________________

Last edited by Wormy; 08-19-2015 at 14:20.
Wormy is offline
zuzs980
Junior Member
Join Date: Mar 2013
Old 08-24-2015 , 13:17   Re: Advertisements 0.6 (Updated 2013/03/08)
Reply With Quote #1937

For the Links can you make it so they are clickable?

Last edited by zuzs980; 08-24-2015 at 14:01.
zuzs980 is offline
SimplyJpk
Member
Join Date: Oct 2013
Location: Just Jump
Old 08-25-2015 , 03:30   Re: Advertisements 0.6 (Updated 2013/03/08)
Reply With Quote #1938

Quote:
Originally Posted by zuzs980 View Post
For the Links can you make it so they are clickable?
As far as I'm aware, no source game supports clickable links? (Confirmation welcome) You could always use WebShortcuts https://forums.alliedmods.net/showthread.php?p=1607261 to open an MOTD when a player uses a command.

ie; Advertise your links as !forum or !help, !rank etc and setup the WebShortcut to hook onto it. That's what I do. Works pretty well.
__________________
Code is Fun
If your plugin is broken, add me. If I have some free time I don't mind taking a look and fixing. (FreeTime lately is Limited).
SimplyJpk is offline
DoctorFink
New Member
Join Date: Aug 2015
Location: Orlando, FL
Old 08-26-2015 , 12:41   Re: Advertisements 0.6 (Updated 2013/03/08)
Reply With Quote #1939

So I have the plugin installed and the announcements themselves are working great; however, I can't get any of the console commands (ie. sm_advertisements_reload) to work.

I put the .smx file in the plugins folder and the .txt file in the configs file and again, the announcements are working great.

Do I need to download the .sp file and put it in the scripting file in order for my console commands to work?

This is on an Insurgency Dedicated Server running SourceMod 1.7.3.

Thanks!
__________________


Last edited by DoctorFink; 08-26-2015 at 13:45.
DoctorFink is offline
DoctorFink
New Member
Join Date: Aug 2015
Location: Orlando, FL
Old 08-26-2015 , 13:50   Re: Advertisements 0.6 (Updated 2013/03/08)
Reply With Quote #1940

Quote:
Originally Posted by DoctorFink View Post
So I have the plugin installed and the announcements themselves are working great; however, I can't get any of the console commands (ie. sm_advertisements_reload) to work.

I put the .smx file in the plugins folder and the .txt file in the configs file and again, the announcements are working great.

Do I need to download the .sp file and put it in the scripting file in order for my console commands to work?

This is on an Insurgency Dedicated Server running SourceMod 1.7.3.

Thanks!
So I found the posts saying I needed to manually create an advertisements.cfg file or just add the CVARs to my server.cfg file - I opted for the latter, as the fewer CFG files I have to worry about, the better.

Here is what I added to my server.cfg file to start with...

Code:
//////// PLUGIN STUFF

////Advertisements
//Enable/disable advertisements(0/1, def 1) 
sm_advertisements_enabled 1 
//Advertisements file
sm_advertisements_file advertisements.txt
//Amount of seconds between advertisements (def 30)
sm_advertisements_interval 3600
//Server command to reload the advertisements from advertisements.txt
sm_advertisements_reload 1
This, though, broke the advertisements altogether.

So I modified the additions to:

Code:
//////// PLUGIN STUFF

////Advertisements
//Enable/disable advertisements(0/1, def 1) 
sv_advertisements_enabled 1 
//Advertisements file 
sv_advertisements_file advertisements.txt 
//Amount of seconds between advertisements (def 30) 
sv_advertisements_interval 3600
//Server command to reload the advertisements from advertisements.txt. 
sv_advertisements_reload 1
That got the advertisements working again, but the interval is still set to the default of 30 seconds and I can't get the reload command to work.

Oiy vey.
__________________


Last edited by DoctorFink; 08-26-2015 at 13:50.
DoctorFink 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 19:42.


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