 |
|
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
|

10-23-2021
, 06:40
Re: Block MSG_ALL SVC_TEMPENTITY for a player
|
#2
|
You can try to hook pfnMessageBegin, check if the second argument(msg_type) is SVC_TEMPENTITY and block the call. Then, block all subsequent calls of pfnWriteByte, pfnWriteChar, pfnWriteShort, pfnWriteLong, pfnWriteAngle, pfnWriteCoord, pfnWriteString, pfnWriteEntity until you encounter a pfnMessageEnd and then stop blocking messages. This is because the start of a message is signaled by pfnMessageBegin and the end by pfnMessageEnd. Between begin and end there are calls to pass arguments that also need to be blocked.
You can do this with orpheu, the same way you hooked pfnSetModel.
__________________
Last edited by HamletEagle; 10-23-2021 at 06:44.
|
|
|
|