Make a system that gives you points for killing zombies. Then just give each individual weapon a value for use in the system, this will function as the weapon's "cost" so make it relative to the power/usefulness of the weapon/item. From here you can now make a system which handles the points and gives you the weapon you asked for. Simple stuff.