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

Advertisements 2.1 (Updated 2021/02/06)


Post New Thread Reply   
 
Thread Tools Display Modes
bubbacs
Member
Join Date: Sep 2005
Old 10-27-2012 , 16:20   Re: Advertisements 0.5.5
Reply With Quote #1491

Quote:
Originally Posted by DJ Tsunami View Post
Use \n for multiple lines in C, M and S messages.
I can't get the /n to work in creating two lines of text in CS:GO

Any Ideas?

Here is a sample of one line in my Adverts .txt file

"1"
{
"type" "S"
"text" "Best out of 20 Rounds: {GREEN} Teams Switch at 10 - The Mercy Rule is in Effect, First to 11 Wins"
}

Would like the /n to be @ "10 /n The Mercy"

Thanks,
Bubba

Last edited by bubbacs; 10-28-2012 at 03:01.
bubbacs is offline
htcarnage
Senior Member
Join Date: Oct 2009
Old 10-29-2012 , 17:19   Re: Advertisements 0.5.5
Reply With Quote #1492

Is this plugin being updated anymore? It seems to have a problem running on CS:S but no one is fixing it.
htcarnage is offline
typho
New Member
Join Date: Nov 2012
Old 11-09-2012 , 13:58   Re: Advertisements 0.5.5
Reply With Quote #1493

I need help dont know how to get a automatic message what appears when player have joined the server.

Like. Welcome to our server you can also join our group!


"Advertisements"
{
"1"
{
"type" "S"
"text" "{GREEN}Welcome to our server!"
}
"2"
{
"type" ""
"text" ""
}
"3"
{
"type" "M"
"text" "Next map is {SM_NEXTMAP} in {TIMELEFT} minutes."
"flags" "cft"
}
"4"
{
"type" "S"
"text" "{GREEN}Current {LIGHTGREEN}Map: {DEFAULT}{CURRENTMAP}"
"flags" "z"
}
"5"
{
"type" "T"
"text" "{ORANGE} Admins: friendly fire is {BOOL:MP_FRIENDLYFIRE}."
"flags" ""
}
}
typho is offline
Sillium
AlliedModders Donor
Join Date: Sep 2008
Location: Germany
Old 11-12-2012 , 01:29   Re: Advertisements 0.5.5
Reply With Quote #1494

You can't to that with Advertisements. Take a look at Connect Announce: https://forums.alliedmods.net/showthread.php?t=77306
Quote:
Allows for custom join messages eg, players can set a message that will display every time they connect to the server.
__________________
brb, dishes have developed their own language and are talking to the garbage about overthrowing me... i must correct this

www.unterwasserpyromanen.de

Last edited by Sillium; 11-12-2012 at 01:29.
Sillium is offline
Sheepdude
SourceMod Donor
Join Date: Aug 2012
Location: Chicago
Old 11-18-2012 , 18:39   Re: Advertisements 0.5.5
Reply With Quote #1495

This fixes the color problems with CS:GO:

Previous code
Code:
Line 028: static g_iSColors[4] = {1, 3, 3, 4};
Line 248: PrintToChat(i, sText);
New code
Code:
Line 028: static g_iSColors[4] = {1, 5, 3, 4};
Line 248: PrintToChat(i, "\x01\x0B%s", sText);

Advertisements.txt
Code:
"Advertisements"
{
	"1"
	{
		"type"		"S"
		"text"		"{GREEN}Testing:{DEFAULT} This should {LIGHTGREEN}fix{DEFAULT} problems with {LIGHTGREEN}LIGHTGREEN{DEFAULT}."
	}
}
Output

[img]http://img59.**************/img59/9930/ad156.png[/img]

--------------------------------------
__________________

Last edited by Sheepdude; 01-23-2013 at 19:44.
Sheepdude is offline
theflange
Member
Join Date: Feb 2012
Location: durham
Old 11-20-2012 , 12:35   Re: Advertisements 0.5.5
Reply With Quote #1496

Hoping someone uses this on hl2mp like me!!!!
works great but...........
this gives me the name of the current map in green and light green
"S"
"{GREEN}Current {LIGHTGREEN}Map: {DEFAULT}{CURRENTMAP}"

but this gives me {NEXTMAP} in green? not the next map as it should
"S"
"{GREEN}NextMap: {NEXTMAP}"
what am I doing wrong?

Last edited by theflange; 11-20-2012 at 12:36.
theflange is offline
theflange
Member
Join Date: Feb 2012
Location: durham
Old 11-20-2012 , 13:04   Re: Advertisements 0.5.5
Reply With Quote #1497

sorry!
I left the sm out
EG should be {SM_NEXTMAP}
theflange is offline
dzej dzej
Junior Member
Join Date: May 2012
Location: Chełm, Poland
Old 11-27-2012 , 05:46   Re: Advertisements 0.5.5
Reply With Quote #1498

Quote:
Originally Posted by Sheepdude View Post
This fixes the color problems with CS:GO:
Thanks a lot for this. Works great.
__________________
[IMG]http://**************/a/img594/6097/14568e76ec678c83d1c0.jpg[/IMG]
dzej dzej is offline
Avo
Senior Member
Join Date: Apr 2012
Old 12-13-2012 , 10:12   Re: Advertisements 0.5.5
Reply With Quote #1499

Quote:
Originally Posted by Sheepdude View Post
This fixes the color problems with CS:GO: (...)
Nice, really needed this ! Thx a lot
__________________

Last edited by Avo; 12-13-2012 at 10:17.
Avo is offline
Dr. Septapus
Junior Member
Join Date: Dec 2012
Old 12-29-2012 , 21:07   Re: Advertisements 0.5.5
Reply With Quote #1500

Just updated to the most recent sourcemod snapshot (1.5) and advertisements seems to have stopped working. The plugin is present when I run "rcon sm plugins list" but no messages are being shown despite the txt file being present. Any idea what is going on?
Dr. Septapus 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 09:35.


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