unit addMagazine weaponname
unit addWeapon weaponname
for example:
crate1 addMagazine "M16"
crate2 addWeapon "AK47"
ps: when adding ammo and weapons, add magazines first and weapons later.
this way the weapons you take out of a crate will already be loaded, the other way around they will be empty.
(I think this is the case though I am not 100% sure, I am convinced someone will correct me if I am wrong)
You can also use these: (better suited for crates or vehicles IMO)
unit addMagazineCargo weaponName
unit addWeaponCargo weaponName
for example:
ammocrate4 addMagazineCargo ["M16",8]
ammoTruck1 addWeaponCargo ["LAWLauncher",3]
this way the number behind the , will be the number placed into your crate/vehicle/whatever
I hope this helps you out.
Mad