Dead Gun Drop

Is there a script that when a weapon is dropped by an enemy, it can’t be picked up? But if you spawn/find it, you can pick it up?

I know there is a script that when you press the “Use” button it picks it up instead of an auto-pickup but it breaks all my Entity SWeps.

Drop Weapon Tutorial.