Prop cleaning script?

I need a script that removes all props, including world props, when you enter a command like “/cleanserver”

I played on a server before that had it, but I didn’t have rights to take it…

Anyone want to give me the code for one? :razz:

cant you just use the button in the “Q” Menu?

re read the first post please

[lua]
hook.Add( “PlayerSay”, “CheckChat”, function( ply, msg )
if ( msg == “/cleanup” ) then
if ply:IsAdmin() then
for k,v in pairs(ents.FindByClass(“prop_physics”)) do
v:Remove()
end
end
end
end)
[/lua]
:eng101:
Put this in “garrysmod/lua/autorun/server”

You are, amazing. :v: