Auto Prop spawn on map (Like from those stranded mods)

Can someone give me full instructions on making such lua script?
(And tell me where to put it too)
Thank you.