Hooking hooked functions - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Hooking hooked functions (
/showthread.php?tid=665077)
Hooking hooked functions -
Marshas - 21.03.2019
Hello everyone, is it possible to hook for example GivePlayerWeapon function in my gamemode (main .pwn file) if this functions is already hooked in other include? I tried to hook that function, but unfortunately it won't work. Maybe there is special way to hook hooked functions or sth? Waiting for answer.
Re: Hooking hooked functions -
Kaliber - 21.03.2019
The short answer, yes.
Just the normal way, just the name has to be diffrent then in the other hooks.
https://sampforum.blast.hk/showthread.php?tid=392061
Re: Hooking hooked functions -
Marshas - 21.03.2019
Alright, I will try it again. Thanks for response!