For unlimited Ammo, you should take out a gun, scan for unknown initial value. (unless you wanna multiply to find the exact value)
Fire some bullets, scan for decreased value, find the address that corresponds to how much ammo you have left, set value to whatever (you don't have to) freeze value. Shoot, if value stays the same, the step has been completed succesfully.
This should work.