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

[INC] Colors (1.0.5)


Post New Thread Reply   
 
Thread Tools Display Modes
ReFlexPoison
☠☠☠
Join Date: Jul 2011
Location: ☠☠☠
Old 03-15-2012 , 23:47   Re: [INC] Colors (1.0.5)
Reply With Quote #271

I haven't serached all of this post, but if anyone has an answer, would be awesome. How do some server get black as the color? I see an advertisement in different colors then shown here. Just curious.
ReFlexPoison is offline
TnTSCS
AlliedModders Donor
Join Date: Oct 2010
Location: Undisclosed...
Old 03-16-2012 , 01:03   Re: [INC] Colors (1.0.5)
Reply With Quote #272

search of "black" in this thread and I found this - https://forums.alliedmods.net/showth...ck#post1358490

not sure if it works though, just found it for you
__________________
View my Plugins | Donate
TnTSCS is offline
The 5th Survivor
Senior Member
Join Date: Mar 2012
Old 06-19-2012 , 15:02   Re: [INC] Colors (1.0.5)
Reply With Quote #273

I'm trying to use the "teamcolor" tag in Vote Manager 2 for L4D and it's not working.

What am I missing here?


Code:
CPrintToChatAllEx(client, "[VOTE] {teamcolor}%s {default}initiated a {green}%s {default}vote.", client, initiatorName, voteName);

Last edited by The 5th Survivor; 06-19-2012 at 15:10.
The 5th Survivor is offline
Peace-Maker
SourceMod Plugin Approver
Join Date: Aug 2008
Location: Germany
Old 06-20-2012 , 15:26   Re: [INC] Colors (1.0.5)
Reply With Quote #274

Quote:
Originally Posted by The 5th Survivor View Post
I'm trying to use the "teamcolor" tag in Vote Manager 2 for L4D and it's not working.

What am I missing here?


Code:
CPrintToChatAllEx(client, "[VOTE] {teamcolor}%s {default}initiated a {green}%s {default}vote.", client, initiatorName, voteName);
You got 2 formatters in your string, but pass 3 parameters. You don't need to pass "client" again after the formating string, if you don't use it in there.
__________________
Peace-Maker is offline
The 5th Survivor
Senior Member
Join Date: Mar 2012
Old 07-01-2012 , 11:18   Re: [INC] Colors (1.0.5)
Reply With Quote #275

Quote:
Originally Posted by Peace-Maker View Post
You got 2 formatters in your string, but pass 3 parameters. You don't need to pass "client" again after the formating string, if you don't use it in there.

Hmm, I must be doing something wrong. It's just jot working. And now the chat messages are printed twice in a row.

I'm trying to simulate what was mentioned here:

Quote:
Originally Posted by exvel View Post
You've forgot to specify argument "author". If you want {teamcolor} to be
the same color as "playerClient" you should use it like that:
PHP Code:
CPrintToChatAllEx(playerClient"{green}%N {teamcolor}joined Survivor Team."playerClient); 


For whomever starts a vote, I want that players name to have the color of the team they are in.

The original message reads:

Code:
PrintToChatAll("\x04[VOTE] \x01%s initiated a %s vote.", initiatorName, voteName);
So you're saying I should have it like this?

Code:
CPrintToChatAllEx(client, "[VOTE] {teamcolor}%s {default}initiated a {green}%s {default}vote.", initiatorName, voteName);
EDIT:
Nevermind, I got it working with the example I mentioned.

Last edited by The 5th Survivor; 07-12-2012 at 16:08. Reason: solved
The 5th Survivor is offline
The 5th Survivor
Senior Member
Join Date: Mar 2012
Old 07-12-2012 , 02:11   Re: [INC] Colors (1.0.5)
Reply With Quote #276

nvm

Last edited by The 5th Survivor; 08-29-2013 at 17:09.
The 5th Survivor is offline
WolfGang
BANNED
Join Date: Oct 2010
Old 08-01-2012 , 23:10   Re: [INC] Colors (1.0.5)
Reply With Quote #277

For Left 4 Dead 2, is there a way to add teamcolor just using \x0? instead of using codes such as
PHP Code:
CPrintToChatEx("{teamcolor}Survivor Team"); 
WolfGang is offline
Mirandor
Senior Member
Join Date: Jun 2006
Location: Ile de France
Old 08-19-2012 , 06:30   Re: [INC] Colors (1.0.5)
Reply With Quote #278

Hi,

I get troubles with using {lightgreen} and {teamcolor} in the same phrase:

Code:
CPrintToChatAllEx(client, "{green}%s {default}joined team {teamcolor}%s.", clientname, teamname);
Works...

Code:
CPrintToChatAllEx(client, "{green}%s {lightgreen}joined team {teamcolor}%s.", clientname, teamname);
Doesn't Work : nothing appears!

Also assumed that {lightgreen} and \x03 does the same result ; that's probably why this doesn't work...

Is it a bug or it is simply impossible to make it work?

Thanks.
Mirandor is offline
ntp
Member
Join Date: May 2012
Old 08-20-2012 , 08:52   Re: [INC] Colors (1.0.5)
Reply With Quote #279

is there a way to add custom colors myself to this library? (tf2)
ntp is offline
exvel
SourceMod Donor
Join Date: Jun 2006
Location: Russia
Old 08-21-2012 , 05:04   Re: [INC] Colors (1.0.5)
Reply With Quote #280

Haven't been here for a long time. Sorry.
Added a simple check for CS:GO. Now colors.inc will try to use the same colors as for CS:S.
Can somebody test it? Because I currently do not have the game and the server.
Attached Files
File Type: inc colors.inc (11.9 KB, 103 views)
__________________
For admins: My plugins

For developers: Colors library

Last edited by exvel; 08-21-2012 at 05:07.
exvel is offline
Send a message via ICQ to exvel
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 20:44.


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