Derma Panel doesnt allow RunConsoleCommands or i am i doing it wrong?

Hay guys im trying to make a derma panel connect to a another server

i replaced the password and ip:port so no one bugs me/hacks the community
so i hope you guys know what im trying to do if you don’t here

what im trying to do is put me in a server besides the server im in and then put the password in so i can log in without having “BAD PASSWORD”
Thanks



function PServerlist()


local DermaPanel = vgui.Create( "DFrame" )
DermaPanel:SetPos( 50,50 )
DermaPanel:SetSize( 200, 250 )
DermaPanel:SetTitle( "Public Server List:" )
DermaPanel:SetVisible( true )
DermaPanel:SetDraggable( false )
DermaPanel:ShowCloseButton( true )
DermaPanel:MakePopup()
 
 local DermaButton = vgui.Create( "DButton" )
DermaButton:SetParent( DermaPanel ) -- Set parent to our "DermaPanel"
DermaButton:SetText( "HIT THIS BUTTON FIRST! " )
DermaButton:SetPos( 25, 150 )
DermaButton:SetSize( 150, 50 )
DermaButton.DoClick = function (  )
RunConsoleCommand("password", "passwordiwillnottellyou;D")
end
 
local DermaButton = vgui.Create( "DButton" )
DermaButton:SetParent( DermaPanel ) -- Set parent to our "DermaPanel"
DermaButton:SetText( "Connected to: Team DeathMatch: Map:DM_Nuketown.bsp " )
DermaButton:SetPos( 25, 50 )
DermaButton:SetSize( 150, 50 )
DermaButton.DoClick = function (  )
    RunConsoleCommand("connect", "ip:port")
	DermaPanel:Close()
end

end



[editline]2nd February 2014[/editline]

ok i found out it first lets me in for a sec then puts me in the main menu.
i did go in it just now with using the right port