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.
I have...
Code:
HookUserMessage(GetUserMessageId("SayText2"), fn_SayText2, true);
public Action:fn_SayText2(UserMsg:msg_id, Handle:bf, const players[], playersNum, bool:reliable, bool:init)
{
CreateTimer(0.1, Timer_SayText2);
}
public Action:Timer_SayText2(Handle:hndl)
{
PrintToChatAll("UserMessage: SayText2 was Called");
}
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.
__________________