Raised This Month: $ Target: $400
 0% 

Disable weapon pick up


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
NiHiLaNTh
Way Past Expiration
Join Date: May 2009
Location: Latvia
Old 03-08-2013 , 12:58   Re: Disable weapon pick up
Reply With Quote #10

Code above blocks only touch. To block
Quote:
Originally Posted by Podarok
having and buying
you also need
Code:
RegisterHam(Ham_AddPlayerItem, "player", "fw_AddPlayerItem");
....

public fw_AddPlayerItem(id, ent)
{
      if (your_variable[id] && cs_get_weapon_id(ent) != CSW_KNIFE)
               return HAM_SUPERCEDE;
 
      return HAM_IGNORED;
}
__________________

NiHiLaNTh is offline
Send a message via Skype™ to NiHiLaNTh
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 21:42.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode