Quote:
Originally Posted by Peace-Maker
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
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.