Storeing players and using them?

Ok im making a script that i would like to click a button in derma like


function MainFrame()
        MainFrame = vgui.Create("DFrame")
 
        MainFrame:SetPos(25,25)
    	MainFrame:SetSize(300,400)
        MainFrame:SetTitle("AdminPanel")
        MainFrame:MakePopup()

		GodModeButton = vgui.Create( "DButton", MainFrame )
		GodModeButton:SetPos( 5, 25 ) -- Setting the position.
		GodModeButton:SetSize( 100, 30 ) -- Setting the size
		GodModeButton:SetText( "GodMode On/Off")
		GodModeButton.DoClick = function()
			//Here i want it to come up with a list below the button with all of the players
                       //And then whatever player i click it will store it as selected player 
			
			RunConsoleCommand("god",* SelectedPlayer* )
		end
		 
			
	

	end
		concommand.Add("+1Main", MainFrame)

function Close()
	MainFrame:Remove()
end

concommand.Add("-1Main",Close)	


And as commented and underlined and italicized can anybody help me with this?

[editline]29th December 2011[/editline]

Sorry wrong section please close this

do a loop and use player.GetAll()

[lua]
for k,p in pairs( player.GetAll() ) do
end
[/lua]

And how do i call that and put it into a list right below it

[editline]29th December 2011[/editline]

Below it as in below the buttonwhen clicked

**[G.DermaMenu

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

Can someone please close both of kine this is solved thankyou