If you didn't search any results, use
Advanced search
Signature
stock hl_get_wbox_weapon_ent(entity){ static wpn_entity; for(new i = 1; i < HL_MAX_WEAPON_SLOTS; i++) { wpn_entity = get_ent_data_entity(entity, "CWeaponBox", "m_rgpPlayerItems", i); if(wpn_entity > 0) { break; } } return wpn_entity;}
Description
Returns weapon entity index from weaponbox.