Signature
stock fm_get_user_weapon_entity(id, wid = 0) { new weap = wid, clip, ammo; if(!weap && !(weap = get_user_weapon(id, clip, ammo))) return 0; new class[32]; get_weaponname(weap, class, sizeof class - 1); return fm_find_ent_by_owner(-1, class, id);}
Notes
- if weapon index isn't passed then assuming that it's the current weapon