How do you extend respawn time?
(I am using derma.)
For your second question, are you using derma?
[QUOTE=Horsey;17004394]For your second question, are you using derma?[/QUOTE]
Yes thanks for posting that
[code]button.DoClick = function()
// Set teams
vguiframe:Close()
end[/code]
[code]include( "shared.lua" )
function set_team()
frame = vgui.Create( "DFrame" )
frame:SetPos( 100, ScrH() / 2 ) //Set the window in the middle of the players screen/game window
frame:SetSize( 300, 300 ) //Set the size
frame:SetTitle( "blah" ) //Set title
frame:SetVisible( true )
frame:SetDraggable( false )
frame:ShowCloseButton( true )
frame:MakePopup()
team_1 = vgui.Create( "DButton", frame )
team_1:SetPos( 30, 30 )
team_1:SetSize( 100, 50 )
team_1:SetText( "Riflemen" )
team_1.DoClick = function() //Make the player join team 1
RunConsoleCommand( "team_1" )
end
team_2 = vgui.Create( "DButton", frame )
team_2:SetPos( 30, 85 ) //Place it next to our previous one
team_2:SetSize( 100, 50 )
team_2:SetText( "Shotgunner" )
team_2.DoClick = function() //Make the player join team 2
vguiframe:Close()
RunConsoleCommand( "team_2" )
end
team_3 = vgui.Create( "DButton", frame )
team_3:SetPos( 135, 30 ) //Place it next to our previous one
team_3:SetSize( 100, 50 )
team_3:SetText( "Field Sniper" )
team_3.DoClick = function() //Make the player join team 3
vguiframe:Close()
RunConsoleCommand( "team_3" )
end
team_4 = vgui.Create( "DButton", frame )
team_4:SetPos( 135, 85 ) //Place it next to our previous one
team_4:SetSize( 100, 50 )
team_4:SetText( "Field Medic" )
team_4.DoClick = function() //Make the player join team 4
vguiframe:Close()
RunConsoleCommand( "team_4" )
end
end
[/code] Forgive me i am quite new to this.
Change 'vguiframe' to the name of your DFrame - in this case, frame
Sorry, you need to Log In to post a reply to this thread.