Capture a point.

Hey.
Can anybody help me make a capture point?

What i need help to:
-It needs to be an Ent so I can place it in a Map.
-when it is captured it needs to run this:
[lua]
timer.Create( “capture”, 60, 0, function()
GiveGold()
end )
[/lua]
-when i player is in a “range” it is being captured
-if another player enters and the first player isn’t there, he can capture.
-if the first player is there he needs to kill the first player before he can capture it.

I know it’s a lot, but can anybody help me?

Thanks

-Trivkz

how to find if players are in x units away
[lua]
for k,v in pairs(ents.FindInSphere( self:GetPos(), size around )) do --I think I wrote the getpos wrong
if(v:IsPlayer)then
–it’s a player, so start capturing
end
end

[/lua]

Hmm, one part of it done :smiley: Thanks

For the Capture part chould i add a timer and when the timer is 30sec, the “Building” goes to the owner? Can anybody help with that?