Switched the plugin to use SDKHooks instead of the unstable ZRTools.
This commit is contained in:
@ -26,7 +26,7 @@
|
||||
*/
|
||||
|
||||
// Comment to use ZR Tools Extension, otherwise SDK Hooks Extension will be used.
|
||||
//#define USE_SDKHOOKS
|
||||
#define USE_SDKHOOKS
|
||||
|
||||
#pragma semicolon 1
|
||||
#include <sourcemod>
|
||||
|
@ -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;
|
||||
|
Reference in New Issue
Block a user