Ok im making a script that i would like to click a button in derma like
[CODE]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 )
GodModeButton:SetSize( 100, 30 )
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",[I][U] SelectedPlayer[/U][/I] )
end
end
concommand.Add("+1Main", MainFrame)
function Close()
MainFrame:Remove()
end
concommand.Add("-1Main",Close)
[/CODE]
And as commented and underlined and italicized can anybody help me with this?
Your question was answered in your first thread [url]http://www.facepunch.com/threads/1151076[/url]
I just gave you the answer to this? Why did you make another thread?
I made this thread like 1 minute after the previous one because the first was the wrong section but it was moved so I'm sorry for the misunderstanding and you have helped me thank you
Sorry, you need to Log In to post a reply to this thread.