Script For World Props

Can some one make a script that deletes all the props on the map that are built in? i need to make all the props delete before the people join.


(User was banned for this post ("Wrong forum" - mahalis))

Try this:


function Delay()
	for a , b in pairs(ents.FindByClass("prop_static")) do
		b:Remove()
	end
	for c , d in pairs(ents.FindByClass("prop_physics")) do
		d:Remove()
	end
	for e , f in pairs(ents.FindByClass("prop_dynamic")) do
		f:Remove()
	end
end
hook.Add("InitPostEntity" , "DelayUntilMapSpawn" , Delay")

Serverside, of course.

Thanks man!