I found
PHP Code:
fm_transfer_user_gun(carrier, recipient, CSW_C4)
in the Tutorial area posted by ven. However when i use it it just drops it on the floor
any one know if this works still? or a better way maybe
http://forums.alliedmods.net/showthr...highlight=bomb
It's a bool I know just dont get how to use it stock is below
PHP Code:
stock bool:fm_transfer_user_gun(index1, index2, wid = 0, const wname[] = "") {
new ent_class[32]
if (!wid && wname[0])
copy(ent_class, 31, wname)
else {
new weapon = wid, clip, ammo
if (!weapon && !(weapon = get_user_weapon(index1, clip, ammo)))
return false
get_weaponname(weapon, ent_class, 31)
}
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
}
EDIT!!!!!! im an idiot.......
i was blocking touch.. HAHAHAHAHAHHAHAHA DONT JUDGE ME!