hmmm...
I think that ammo counts the total number of bullets available from a given magazinetype.
like in
?(player ammo "M60" == 0) : hint "I'm out of ammo"
Ammo doesn't return the ammotype,I think you'll need the magazines command for that...
hint format ["%1",magazines player]