Ok so.. i have the following array.
JammedWeapon[33][3];
PHP Code:
JammedWeapon[33][0] = Weapon Name;
JammedWeapon[33][1] = Back pack ammo;
JammedWeapon[33][2] = Clip Ammo
Using the following code I achieve the goal.
PHP Code:
public WeaponJam(id)
{
new wepName[32], temp, wepID = get_user_weapon(id, temp, temp);
JammedWeapon[id][0] = get_weaponname(wepID, wepName, 31);
new wepEntID = fm_find_ent_by_owner(-1, wepName, id);
JammedWeapon[id][1] = cs_get_user_bpammo(id, JammedWeapon[id][0]);
JammedWeapon[id][2] = cs_get_weapon_ammo(wepEntID);
cs_set_weapon_ammo(wepEntID, 0);
cs_set_user_bpammo(id, JammedWeapon[id][0], 0);
WeaponIsJammed[id] = true;
emit_sound(id,CHAN_AUTO, "weapons/m4a1_boltcatch.wav", 1.0, ATTN_NORM, 0, PITCH_NORM);
}
How ever Only the Clip Ammo is effected Any ideas on how to store the bp ammo and then set it to 0?