Hello psychonic & blik (posting before),
Quote:
Originally Posted by psychonic
One thing I'm still not understanding is what this "call" could be. The plugins commands only have a few parameters, which can even be seen in the source.
It takes a userid, an optional "1" to enable colored messages (on by default in the perl for css and cstrike on sm, can be edited to enable tf2), and a message.
I wonder if it has to send the utf8 characters in a different way when constructing the message for sourcemod to display it correctly.
|
This is not a secret how the ingame plugin is working. You are definately right, the color parameter is an optional one:
Code:
19:38:48 hlx_sm_psay
19:38:48 Usage: hlx_sm_psay <userid><colored><message> - sends private message
But the so-called parameter handling has changed between the source and orangebox engine. Valve has stripped down the allowed charset ([a-zA-Z0-9]) and therefore the special characters (not only UTF-8 ones!) are not displayed. The correct usage for messages with special characters would be:
Code:
hlx_sm_psay "100" 1 "This is a message with special characters"
Please recognize the enclosing quoting characters around the message. If you add them within the perl daemon the characters are displayed properly again.
Hope this helps!
Bye
Tobi
__________________