Complete redirect native function, not only in AMX
#9

Quote:
Originally Posted by xeeZ
Посмотреть сообщение
I think you have to hook each native with something like your AssemblyRedirect() function or subhook (the library that I use in my plugins) to make them work with GDK.
If using `_sampgdk_amxhooks_hook_native`the sampgdk will still use the old function because sampgdk saves the addresses to function on register, right?

Also what is the difference between subhook and `hook.h/c` from sampgdk?

Quote:
Originally Posted by kurta999
Посмотреть сообщение
No, I don't want to give option to use original function, beucase i completly replaced the pPickupPool pointer, and every original function which use it, would result in crash.
As Zeex said, because sampgdk saves the addresses to function on register and ignores the run time native function changes, you will need to use Zeex's subhook.

If you need help with subhook you can PM me and I will help you
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 3 Guest(s)