Hi everyone,
I would like to detect messages
before being received by clients. In my plugin, I need to hook every messages with
HookUserMessage so that I can also detect plugin messages. This is my code so far :
PHP Code:
public OnPluginStart()
{
g_textmsg = GetUserMessageId("TextMsg");
HookUserMessage(g_textmsg, UserMessageHook, true);
}
public Action:UserMessageHook(UserMsg:msg_id, Handle:bf, const players[], playersNum, bool:reliable, bool:init)
{
...
}
I would like to know
which client the message is sent to ? Can I find this in bf variable ? const players[] array ?
Thk you for your help,