For the ammo system you would need to use triggers that track a variable that's acting as the ammo and have it deplete each time the unit attacks. As for the attachments, you would need to make a model using some kind of software like 3DSMax, Gmax, or Blender.