View Single Post
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 05-07-2019 , 14:35   Re: [H3LP] Hooking CBasePlayer::StartObserver
Reply With Quote #8

From okapi thread:
Quote:
When you use signatures to use functions, after you attach the module to a function, it modifies the bytes of the functions.
That means that if you use the same signature twice, the second will fail. This means that if you use the same signature in two
plugins, it will fail in one. To avoid this you can as an example, just to signature search in plugin_precache and hooking in plugin_init.
It doesn't have to be precache and init. The point is to build the functions at one point and hook later, so the addresses are not modified and all hooks will succeed.
__________________

Last edited by HamletEagle; 05-07-2019 at 14:36.
HamletEagle is offline