Dropping weapons in TF2 works differently than in other games.
Having said that, psychonic
already wrote the hard part. It just needs to be put into an actual plugin, and remove the weapon from the player dropping it (unless you really wanted to let them just create copies of the weapon they have).
__________________