No spawning

First I just want to ask, can you use a lua script and put it in a map using pakrat or bspzip and then make it execute at the start of the map. The script I want to do this with is something that makes a certain room in the map so that you cant spawn props.

Secondly, could anyone either provide a walkthrough or a ready made script. I really need this fr a map im making. Is it possible?

You can make a SENT and spawn it in Hammer as any other entity if that’s what you mean.