fm_transfer_user_gun
- Синтаксис
-
stock bool:fm_transfer_user_gun(index1, index2, wid = 0, const wname[] = "") { new ent_class[32]; if (!wid && wname[0]) copy(ent_class, sizeof ent_class - 1, wname); else { new weapon = wid, clip, ammo; if (!weapon && !(weapon = get_user_weapon(index1, clip, ammo))) return false; get_weaponname(weapon, ent_class, sizeof ent_class - 1); } new ent_weap = fm_find_ent_by_owner(-1, ent_class, index1); if (!ent_weap) return false; engclient_cmd(index1, "drop", ent_class); new ent_box = pev(ent_weap, pev_owner); if (!ent_box || ent_box == index1) return false; set_pev(ent_box, pev_flags, pev(ent_box, pev_flags) | FL_ONGROUND); dllfunc(DLLFunc_Touch, ent_box, index2); if (pev(ent_weap, pev_owner) != index2) return false; return true; }
Переменная | Описание |
---|---|
Нет агрументов |
- Описание
- This function has no description.