Copied and pasted directly from
The Valve developer community WikiA resupply consists of two entities:
* A prop_dynamic, representing the resupply locker.
* A func_regenerate, which gives it functionality.
Create a prop_dynamic somewhere in the room, set its model to models/props_gameplay/resupply_locker.mdl, and give it a name such as resup1. Now create a func_regenerate brush-based entity with material tools/toolstrigger, making sure it occupies a larger area around the prop. However note that you might need to make the volume a certain size, so that it does not create exploits in anyway. Set its Associated Model to the name given to the dynamic prop (resup1, in this article), and set its team to RED.
---Without knowing what the error is... I can't help you any further. My suggestion is to delete what you have and follow the above. It's only two things anyway.