Adv. Duplicator Autorun!

Hey.
Basically, I want the adv-duplicator to automatically spawn a saved base (not complicated, only some welds, ropes and elastics), when loading the correct map.
How could I approach this?

You would use this hook, http://wiki.garrysmod.com/?title=Gamemode.Initialize
And this function, http://wiki.garrysmod.com/?title=Game.GetMap
Then you would use the adv duplicators function to open your file, and then send all the neccessary arguments to the adv duplicators spawn function.

[lua]
local maps = { “gm_construct” }
function AutorunDupe ()
if ( Game.GetMap() == maps ) then
//whatever you do for duplicator
end
end

hook.Add ( "Initialize", "AutorunDupe", AutorunDupe) [/lua]

something like that

**[Gamemode.InitPostEntity

http://wiki.garrysmod.com/favicon.ico](wiki.garrysmod.com/?title=Gamemode.InitPostEntity)**