If you didn't search any results, use
Advanced search
Signature
stock hl_get_weapon_id(entity){ return get_ent_data(entity, "CBasePlayerItem", "m_iId");}
Description
Get weapon type. Corresponds to HLW_* in hlsdk_const.inc: 1 is HLW_CROWBAR, 2 is HLW_GLOCK and so on...