View Single Post
NiHiLaNTh
Way Past Expiration
Join Date: May 2009
Location: Latvia
Old 08-24-2017 , 16:02   Re: [ H3LP ] Block weapon switch?
Reply With Quote #8

Even though it won't help you.
You are wrong in here. ::CanHolster returns TRUE/FALSE, so that you need to not only block the original execution, but also provide a valid result by using SetHamReturn....

Code:
// Ham_Item_CanHolster/Ham_Item_Holster
public fw_Item_CanHolster_Pre(entity)
{
       SetHamReturnInteger(_:false);
       return HAM_SUPERCEDE;
}
__________________

NiHiLaNTh is offline
Send a message via Skype™ to NiHiLaNTh