Fixed a bug with item swapping

A check was looking for "ammo" in all items not just weapon items in
order to determine whether or not to remove a player's weapon.
Added a debug for a possible y_iterate issue

Problem mentioned here: http://forum.sa-mp.com/showpost.php?p=3246045