Quote:
Originally Posted by Depresie
Any idea how you write this without a stock ?
PHP Code:
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; }
|
Easy. Just move the code from the stock into your plugin. Done. OR, just use the stock (this is the better idea).
__________________