View Single Post
Dr. McKay
Sir Dr. SourceMod Plugin Approver Esq. Ltd. M.D. PhD
Join Date: Aug 2011
Location: Atlantis
Old 05-31-2012 , 06:39   Re: [TF2] Rainbowize!
Reply With Quote #30

Quote:
Originally Posted by Horsedick View Post
sure here ya go...
That's strange... You're running Simple Chat Colors?
Quote:
Originally Posted by FlaminSarge View Post
McKay, there's an issue where I can type
Code:
"word                      anotherword"
in chat and the ExplodeString messes up. TrimString doesn't catch that.

Repeated calls to BreakString might be the solution.

Any chance of implementing a cvar to replace the ShowActivity2 with ReplyToCommand?
Also, any chance of implementing logging/activity like so? (Instead of 'toggled')
Code:
        ShowActivity2(client, "[SM] ", "%s rainbow chat on self.",  isRainbowized[client] ? "Enabled" : "Disabled");
        ReplyToCommand(client, "[SM] Rainbow chat %s.", isRainbowized[client] ? "enabled" : "disabled");
        LogAction(client, client, "%L %s rainbow chat on themself", client, isRainbowized[client] ? "enabled" : "disabled");
In addition, there's a MAX_MESSAGE_LENGTH define. I don't know why SimpleChat defines it again under MAXLENGTH_MESSAGE.
I'll add that in when I can. The way I understand it, there's a limit on the number of characters you can have in a single chat message, which is MAXLENGTH_MESSAGE. The engine halves this value and gives half of the available space to the name and half to the message, MAX_MESSAGE_LENGTH. Check out the comments in scp.inc.
__________________
Dr. McKay is offline