21.02.2013, 04:14

In a module based script, there's times where I need to hook a native function more than once.. I've been trying to figure out a way to keep the actual SetPlayerArmor intact, then have additional code hooked onto that function. My idea was to have main.pwn basically be a header hook that has the actual function inside it; then the rest acting as added code. I'm curious to see what others think of this. It's almost like turning SetPlayerArmor into a callback; with additional hooks added.