Submitted by Mjr.Phule, based on a script by DS.Ivanova as modified by DS.Poker and Mjr.Phule (and reformatted by me), this script will result in your dropping all weapons you have no ammo for, and all ammo you have no weapon for.

It binds to the zero key on your numpad..

Add exec("WeaponAndAmmoCleanup"); to your autoexec.cs