View Single Post
Neuro Toxin
Veteran Member
Join Date: Oct 2013
Location: { closing the void; }
Old 08-30-2017 , 18:25   Re: [CSGO] Prevent picking up weapons
Reply With Quote #3

Quote:
Originally Posted by yash1441 View Post
HookEvent("item_pickup", OnItemPickUp, EventHookMode_Pre);

Last time I checked this method was working.
Events are to late. An event fires after the action has taken place. You can't block the events trigger from processing from an event.

Edit: https://sm.alliedmods.net/new-api/sdkhooks/__raw

I believe you should be hooking SDKHook_WeaponEquip.
__________________

Last edited by Neuro Toxin; 08-30-2017 at 18:28.
Neuro Toxin is offline