Greets,
Returning a soldiers Primary Weapon is fairly easy:
_weap = primaryWeapon _unit
hint format ["%1's Primary Weapon = %2", _unit, _weap]
Returning magazines can be done using the magazines command, which returns an array of all the magazines a unit has.
eg:
_mags = magazines _unit
hint format ["%1's magazines: %2", _unit, _mags]
I've attatched a demo script for you. I've initialised all the variables at the top, so you can see what I'm doing...
It should pop up a hint in the corner of the screen giving the primary weapon, secondary weapon and mags of the unit, with a 6 second delay.
Untested at the moment, so try it and see...
-Supr. Cmdr. PsyWarrior
-Psychic Productions
UPDATE: Fixed attatchment. Missed out a bracket...