Thread
:
[CSGO] Prevent picking up weapons
View Single Post
Neuro Toxin
Veteran Member
Join Date: Oct 2013
Location: { closing the void; }
08-30-2017 , 18:25 Re: [CSGO] Prevent picking up weapons
#
3
Quote:
Originally Posted by
yash1441
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.
__________________
Donate
|
AUS-TG
|
Console
|
Dynamic Objects
Last edited by Neuro Toxin; 08-30-2017 at
18:28
.
Neuro Toxin
View Public Profile
Send a private message to Neuro Toxin
Visit Neuro Toxin's homepage!
Find More Posts by Neuro Toxin