hl_remove_wbox

Signature
stock hl_remove_wbox(entity){ new pWeapon; // destroy the weapons inside the box for(new i = 0 ; i < HL_MAX_WEAPON_SLOTS; i++) { pWeapon = get_ent_data_entity(entity, "CWeaponBox", "m_rgpPlayerItems", i); while(pWeapon != FM_NULLENT) { set_pev(pWeapon, pev_flags, FL_KILLME); pWeapon = get_ent_data_entity(pWeapon, "CBasePlayerItem", "m_pNext"); } } // remove the box set_pev(entity, pev_flags, FL_KILLME);}
Description

Removes weapon box with proper handling of all entities inside.

Назад
Верх