Prop spawn at server start.

Hey all.

Would anyone know how to get props spawned at the server start on the map? For example, I want a prop, blocking one area of the map, without editing the map.

http://www.facepunch.com/showthread.php?t=735138

thx… is there one for deleting props as well? cuz evocity has some useless props.

-snip-

Or, if you want something that works, try this:
[lua]function RemoveItems()
for _,ent in ipairs(ents.GetAll()) do
if ent:GetClass():find"prop_physics" then
ent:Remove()
end
end
end
hook.Add( “InitPostEntity”, “Remove All Physics Props”, RemoveItems )[/lua]
Just so you know in future, prop_statics are the unmoving props the map is made out of and are baked in to the map, prop_dynamics tend to be there for a good reason, and quite a few gmod maps use prop_physics_multiplayer rather than prop_physics.

Heh. Sorry. Im sleepy today.