Quote:
Originally Posted by CrimsonGT
Im a bit confused, I wrote a plugin that hooks all TF2 usermessages and creates a 0.1 second timer and then prints to chat when they are called. Some usermessages which I KNOW are being called are not printing out to chat. For example SayText2, I have another plugin that uses SayText2 but when I use it, nothing prints to chat.
My other question is how the hell do you find out what the args for a usermessage are? The first post says it will be covered later but never goes over it so im a bit clueless.
|
Not sure why your hook isn't working. That's the only way I know of to get a good guess of the format, but this is what I use for SayText2 in TF2
PHP Code:
BfWriteByte(hBf, clientid);
BfWriteByte(hBf, 0);
BfWriteString(hBf, message);
EndMessage();
Use \x03 in the message for the team color of the specified clientid.