You can't. The only way you can set the amount of ammo a unit has is by using the Ammo slider in the units properties, but that sets the initial amount of ammo for the unit. You can't change it later in the game like you can change the amount of fuel a unit has. I seriously think BIS should add a setAmmo command into the next patch for OFP.