For Inf. Ammo function, weapons with over 30 shots per clip are not affected.
Maybe because of the nature of ammunition item in the backpack (30 shots per magazine), those weapons would exhaust the item.
If you keep reloading before exhaustion of 30 bullets, the cheat would be in effect (Yet...