Quote:
Originally Posted by HarryPotter
You can see this as an example: https://forums.alliedmods.net/showthread.php?t=339035
PHP Code:
g_umFade = GetUserMessageId("Fade");
HookUserMessage(g_umFade, FadeHook, true);
Action FadeHook(UserMsg msg_id, BfRead bf, const int[] players, int playersNum, bool reliable, bool init)
{
int client = players[0];
......
return Plugin_Handled;
}
|
It looks like the game server never sends "PZDmgMsg" to multiple clients in one message, so should be safe to do so.
If that doesn't work, I believe it's possible to do
Pl_Handled pre-hook ->
send your own one in post-hook.