View Single Post
nicekill
Junior Member
Join Date: Dec 2011
Old 12-12-2011 , 23:08   Re: [request] Infection Bomb
Reply With Quote #8

Quote:
Originally Posted by rhelgeby View Post
You can't override stuff in ZR from other plugins.
Well, I don't believe that. I'll wait for more coders to give their opinion.
And when I said "override", I meant "replace" ZR's SDKHooks by doing the following:
Code:
// replace hooks
SDKUnhook(client, SDKHook_WeaponCanUse, RestrictCanUse);  // from ZR plugin
SDKHook(client, SDKHook_WeaponCanUse, zr_nade_RestrictCanUse); // to my plugin
I should also mention that ZR's callback function RestrictCanUse is public. I only need a reference to it.
Attached Files
File Type: txt zr_infect_nade.txt (459 Bytes, 275 views)
File Type: sp Get Plugin or Get Source (zr_infect_nade.sp - 225 views - 5.6 KB)
__________________

Last edited by nicekill; 12-12-2011 at 23:19.
nicekill is offline