public function(index) { new iWeaponEntity = fm_find_ent_by_owner(entity, szclassname, owner) } stock fm_find_ent_by_owner(entity, const classname[], owner) { while ((entity = engfunc(EngFunc_FindEntityByString, entity, "classname", classname)) && pev(entity, pev_owner) != owner) { /* keep looping */ } return entity; }
public function(index) { new iWeaponEntity ??? ??? ??? }