• gm_flatgrass spawn protection
    5 replies, posted
Hi, I'm opening a sandbox server on gm_flatgrass and I wanna have a script that protects spawn around a Green HUD. If a prop goes through it, then the prop just gets removed instantly. Example: [img]http://i.imgur.com/Ld7q8.jpg[/img] (Picture made in paint :L)
try [IMG]https://nrich.maths.org/discus/messages/67613/113941.png[/IMG] [CODE] local lowercorner = Vector(....) -- A Position local uppercorner= Vector(....) -- B position timer.Create("SpawnProtect",10,0,function() for k,v in pairs(ents.FindInBox(lowercorner, uppercorner)) do if v:GetClass() == "prop_physics" or v:GetClass() == "prop_vehicle_airboat" or v:GetClass() == "prop_vehicle_jeep" do v:Remove() end end end) [/CODE] put this example into lua/autorun/client and modify the 2 vectors That should remove props (in this box) every 10 seconds
Chance would have it I made this a while ago: [img]http://puu.sh/kSls[/img] Have fun: [url]http://puu.sh/kSlE[/url]
Thanks, _Undefined! It worked perfect! Also thank you gamerpaddy, apparently I liked the way _Undefined did his.
Hmmm dosent works could a lua scripter update this and add godemode function in these area?
[QUOTE=JackBauerr;40116439]Hmmm dosent works could a lua scripter update this and add godemode function in these area?[/QUOTE] Ask one of the porting threads instead of bumping a thread that is from 2012.
Sorry, you need to Log In to post a reply to this thread.