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;
}
__________________