Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- include( "shared.lua" )
- function set_team()
- local frame = vgui.Create( "DFrame" )
- frame:SetPos( 100, ScrH() / 2 )
- frame:SetSize( 200, 210 )
- frame:SetTitle( "Change Team" )
- frame:SetVisible( true )
- frame:SetDraggable( false )
- frame:ShowCloseButton( true )
- frame:MakePopup()
- ghost = vgui.Create( "DButton", frame )
- ghost:SetPos( frame:GetTall() / 2, 5 )
- ghost:SetSize( 50, 100 )
- ghost:SetText( "Spectators" )
- ghost.DoClick = function()
- RunConsoleCommand( "Spectator" )
- end
- death = vgui.Create( "DButton", frame )
- death:SetPos( frame:GetTall() / 2, 105 )
- death:SetSize( 50, 100 )
- death:SetText( "Death" )
- death.DoClick = function()
- RunConsoleCommand( "Death" )
- end
- surviver = vgui.Create( "DButton", frame )
- surviver:SetPos( frame:GetTall() / 2, 205 )
- surviver:SetSize( 50, 100 )
- surviver:SetText( "Survivers" )
- surviver.DoClick = function()
- RunConsoleCommand( "Surviver" )
- end
- end
- concommand.Add( "changeteam", set_team )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement