Switched the plugin to use SDKHooks instead of the unstable ZRTools.

This commit is contained in:
Greyscale committed 2010-01-25 02:07:39 -08:00
1 parent b66e93451c
commit 173b86f4ac
3 files changed
+6 -7

No files matched your search

+1 -4
View File
@@ -139,10 +139,7 @@ RestrictClientInit(client)
{
// Hook "Weapon_CanUse" on client.
#if defined USE_SDKHOOKS
SDKHook(client, SDKHook_WeaponEquip, RestrictCanUse);
// Note: Do we need to use WeaponSwitch too? On infection all weapons
// are removed anyways.
SDKHook(client, SDKHook_WeaponCanUse, RestrictCanUse);
// Set dummy value so it think it's hooked.
g_iCanUseHookID[client] = 1;