local banname = vgui.Create( "DTextEntry", frame )
banname:SetParent( ban )
banname:SetPos( 3, 26 )
banname:SetSize( 191, 25 )
banname:SetText( "[Name]" )
banname.OnEnter = function( n )
local bframe = vgui.Create( "DFrame" )
bframe:Center()
bframe:SetSize( 103, 54 )
bframe:SetTitle( "" )
bframe:SetVisible( true )
bframe:SetDraggable( true )
bframe:ShowCloseButton( true )
bframe:MakePopup()
function bframe:Paint( w, h )
draw.RoundedBox( 0, 0, 0, w, h, Color( 1, 1, 1) )
surface.SetDrawColor( 0, 0, 0 )
surface.DrawOutlinedRect( 1, 1, w-2, h-2 )
end
local bfs = vgui.Create( "DTextEntry", bframe )
bfs:SetParent( bframe )
bfs:SetPos( 3, 26 )
bfs:SetSize( 97, 25 )
bfs:SetText( "[Minutes]" )
bfs.OnEnter = function( m )
local bframe2 = vgui.Create( "DFrame" )
bframe2:Center()
bframe2:SetSize( 103, 54 )
bframe2:SetTitle( "" )
bframe2:SetVisible( true )
bframe2:SetDraggable( true )
bframe2:ShowCloseButton( true )
bframe2:MakePopup()
function bframe2:Paint( w, h )
draw.RoundedBox( 0, 0, 0, w, h, Color( 1, 1, 1) )
surface.SetDrawColor( 0, 0, 0 )
surface.DrawOutlinedRect( 1, 1, w-2, h-2 )
end
local banm = vgui.Create( "DTextEntry", bframe2 )
banm:SetParent( bframe2 )
banm:SetPos( 3, 26 )
banm:SetSize( 97, 25 )
banm:SetText( "[Reason]" )
banm.OnEnter = function( r )
RunConsoleCommand( "ulx", "ban", n:GetValue(), m:GetValue(), r:GetValue() )
end
end
end