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

Advertisements 2.1 (Updated 2021/02/06)


Post New Thread Reply   
 
Thread Tools Display Modes
picknroll
New Member
Join Date: Nov 2015
Old 11-14-2015 , 08:24   Re: Advertisements
Reply With Quote #1951

Quote:
Originally Posted by FrostbyteX View Post
Excellent plugin! It's short and concise and efficient. I'll be using this.

And for chat colors, precede the text you want colored with the color code (i.e. PrintToChatAll("%cThis is green", COLOR_GREEN), where COLOR_GREEN is defined as 4).

Steve
Could you help me with colors in chat?

{GREEN}Example Text
{LIGHTGREEN}Example Text

does not work

{TEAM}Example Text

does work

I would like to use as many colors as possible for chat messages.
picknroll is offline
franketv
New Member
Join Date: Nov 2015
Old 11-17-2015 , 11:08   Re: Advertisements 0.6 (Updated 2013/03/08)
Reply With Quote #1952

I got the same issue.. anyone know how to fix it?
franketv is offline
SimplyJpk
Member
Join Date: Oct 2013
Location: Just Jump
Old 11-17-2015 , 18:44   Re: Advertisements
Reply With Quote #1953

Quote:
Originally Posted by franketv View Post
I got the same issue.. anyone know how to fix it?
Quote:
Originally Posted by picknroll View Post
Could you help me with colors in chat?

I would like to use as many colors as possible for chat messages.
Try using https://forums.alliedmods.net/showthread.php?p=1994861 It's updated to have more colours, not sure if there are to many other differences.

Also if only team is working, may have grabbed the source version, not the cs:go version? (Assuming you're using cs:go), Just grab the .sxm instead of using 'getplugin' button.

Edit: Mysql is kinda pointless if you only run 1 server. But if your colours aren't working you much be formatting them wrong, only regular say text will be coloured. I think it also supports basic csay styled text as colour, but only 1 colour.
__________________
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).

Last edited by SimplyJpk; 11-17-2015 at 18:47. Reason: Shortsightederrorsinassumingnextversionisbetterversion
SimplyJpk is offline
franketv
New Member
Join Date: Nov 2015
Old 11-18-2015 , 06:18   Re: Advertisements 0.6 (Updated 2013/03/08)
Reply With Quote #1954

I did not just press "get plugin", the red text told me not too :i
I will look at the link, but i only run 1 server and have never tried mysql.

I have choosen Type = S where {green} should work but it dosent. :s I dont think i can format wrong that way? But maybe i can.. Sorry for bad English :-)
franketv is offline
SimplyJpk
Member
Join Date: Oct 2013
Location: Just Jump
Old 11-18-2015 , 22:07   Re: Advertisements 0.6 (Updated 2013/03/08)
Reply With Quote #1955

Quote:
Originally Posted by franketv View Post
I did not just press "get plugin", the red text told me not too :i
I will look at the link, but i only run 1 server and have never tried mysql.

I have choosen Type = S where {green} should work but it dosent. :s I dont think i can format wrong that way? But maybe i can.. Sorry for bad English :-)
I've taken it straight out of my config, but, yours should look similar.
So your sourcemod/configs/advertisements.txt file looks like

PHP Code:
"Advertisements"
{
    
"1"
    
{
        
"type"        "S"
        "text"        "{LIMEGREEN}[SimplyTF]{SNOW} Need a hand? Try using {LIGHTGREEN}!showme{SNOW}. If we have a recording, a bot will show you how to do the jump!"
    
}

__________________
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
franketv
New Member
Join Date: Nov 2015
Old 11-19-2015 , 02:18   Re: Advertisements 0.6 (Updated 2013/03/08)
Reply With Quote #1956

Yeah still not working.. found another plugin that works better, but still not 100%, will do for my needs tho. I can't link it since it's not on alliedmodders.
franketv is offline
glub
AlliedModders Donor
Join Date: Feb 2015
Old 11-27-2015 , 20:46   Re: Advertisements 0.6 (Updated 2013/03/08)
Reply With Quote #1957

The plugin doesn't work well with multiple server installations (ie. multiple advertisements.txt files). It always loads the default file, not the one specified in the convar.

I've attached my fixed version, basically delaying the file parsing by a few seconds on map start. It works now.

PHP Code:
public OnMapStart()
{
    
CreateTimer(5.0ParseAdsLateLoad);
}

public 
Action:ParseAdsLateLoad(Handle:timer)
{
    
ParseAds();

Attached Files
File Type: sp Get Plugin or Get Source (advertisements_fixed-glub.sp - 371 views - 11.0 KB)

Last edited by glub; 11-27-2015 at 20:48.
glub is offline
Nolongerinthegame
AlliedModders Donor
Join Date: Sep 2005
Old 12-05-2015 , 07:47   Re: Advertisements 0.6 (Updated 2013/03/08)
Reply With Quote #1958

Anyone else got a good working Advertisements working?

Lightgreen is not working from me, and the advert colour comes out purple
Nolongerinthegame is offline
ESK0
BANNED
Join Date: May 2014
Location: Czech Republic
Old 12-11-2015 , 22:19   Re: Advertisements 0.6 (Updated 2013/03/08)
Reply With Quote #1959

Quote:
Originally Posted by nelioneil View Post
Anyone else got a good working Advertisements working?

Lightgreen is not working from me, and the advert colour comes out purple
https://forums.alliedmods.net/showthread.php?t=248314
ESK0 is offline
couldbepurplecouldbepink
Member
Join Date: Aug 2011
Old 01-11-2016 , 11:20   Re: Advertisements 0.6 (Updated 2013/03/08)
Reply With Quote #1960

Light green and green worked. 'Team' color worked as well. No luck on red, orange, or purple. Running latest sourcemod and metamod on my TF2 server.
__________________
I'm feeling skinny Tony!
couldbepurplecouldbepink 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 13:06.


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