Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- include( 'init.lua' )
- include( 'shared.lua' )
- // Spawn-menu
- function teamselect()
- local DermaPanel = vgui.Create( "DFrame" )
- DermaPanel:Center()
- DermaPanel:SetSize( 400, 300 )
- DermaPanel:SetTitle( "Information" )
- DermaPanel:SetVisible( true )
- DermaPanel:SetDraggable( false )
- DermaPanel:ShowCloseButton( false )
- DermaPanel:MakePopup()
- DermaPanel.Paint = function() -- The paint function
- surface.SetDrawColor( 30, 30, 30, 200 ) -- What color ( R, B, G, A )
- surface.DrawRect( 0, 0, 400, 700 ) -- How big is it (cords)
- end
- local TestingPanel = vgui.Create( "DPanel", DermaPanel )
- TestingPanel:SetPos( 25, 50 )
- TestingPanel:SetSize( 350, 225 )
- TestingPanel.Paint = function()
- surface.SetDrawColor( 127, 127, 127, 255 )
- surface.DrawRect( 0, 0, TestingPanel:GetWide(), TestingPanel:GetTall() )
- end
- local button = vgui.Create( "DButton", TestingPanel )
- button:SetSize( 100, 50 )
- button:SetPos( 25, 75 )
- button:SetText( "Spawn" )
- button.DoClick = function( button )
- soldierspawn()
- DermaPanel:Close()
- end
- local buttonx = vgui.Create( "DButton", TestingPanel )
- buttonx:SetSize( 100, 50 )
- buttonx:SetPos( 225, 75 )
- buttonx:SetText( "Spectate" )
- buttonx.DoClick = function( button )
- DermaPanel:Close()
- end
- end
- concommand.Add( "nazi_teammenu", teamselect )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement