Raised This Month: $ Target: $400
 0% 

[INC] Colors (1.0.5)


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
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 #1

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 #2

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 #3

nvm

Last edited by The 5th Survivor; 08-29-2013 at 17:09.
The 5th Survivor 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 17:28.


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