Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- include( 'shared.lua' )
- include("cl_hud.lua")
- local function Initialize()
- local Ready = vgui.Create( "DFrame" )
- Ready:SetPos( 625, 450 )
- Ready:SetSize( 175, 250 )
- Ready:SetTitle( "Are you ready to build?" )
- Ready:SetVisible( true )
- Ready:SetDraggable( true )
- Ready:ShowCloseButton( false )
- Ready:SetMouseInputEnabled(true)
- Ready:MakePopup()
- local HellYeah = vgui.Create( "DButton", Ready )
- HellYeah:SetPos( 20, 25 )
- HellYeah:SetSize( 140, 40 )
- HellYeah:SetText( "Hell Yeah!" )
- HellYeah.DoClick = function() Ready:Close()
- RunConsoleCommand( "sb_agree" )
- end
- end
- local function Agreement()
- local Rules = vgui.Create( "DFrame" )
- Rules:SetSize(850,800)
- Rules:SetPos( 300,50)
- Rules:SetTitle( "Rules Confimation" )
- Rules:SetVisible( true )
- Rules:SetDraggable( true )
- Rules:ShowCloseButton( false )
- Rules:SetMouseInputEnabled(true)
- Rules:MakePopup()
- local RulesIMG = vgui.Create( "DImageButton", Rules )
- RulesIMG:SetPos( 400, 500 )
- RulesIMG:SetImage( "Rules/HSH.vtf" )
- RulesIMG:SizeToContents()
- local SubmitButton = vgui.Create( "DButton", Rules )
- SubmitButton:SetPos( 450, 700 )
- SubmitButton:SetSize( 140, 40 )
- SubmitButton:SetText( "I Agree ( 10 Seconds )" )
- SubmitButton:SetDisabled(true);
- timer.Simple(1, function ( ) SubmitButton:SetText("I Agree ( 9 Seconds )"); end);
- timer.Simple(2, function ( ) SubmitButton:SetText("I Agree ( 8 Seconds )"); end);
- timer.Simple(3, function ( ) SubmitButton:SetText("I Agree ( 7 Seconds )"); end);
- timer.Simple(4, function ( ) SubmitButton:SetText("I Agree ( 6 Seconds )"); end);
- timer.Simple(5, function ( ) SubmitButton:SetText("I Agree ( 5 Seconds )"); end);
- timer.Simple(6, function ( ) SubmitButton:SetText("I Agree ( 4 Seconds )"); end);
- timer.Simple(7, function ( ) SubmitButton:SetText("I Agree ( 3 Seconds )"); end);
- timer.Simple(8, function ( ) SubmitButton:SetText("I Agree ( 2 Seconds )"); end);
- timer.Simple(9, function ( ) SubmitButton:SetText("I Agree ( 1 Seconds )"); end);
- timer.Simple(10, function ( ) SubmitButton:SetText("I Agree"); SubmitButton:SetDisabled(false); LOADED_RULES = true; end);
- function SubmitButton:DoClick ( )
- if (LOADED_RULES) then
- Rules:Remove();
- end
- end
- local Disagree = vgui.Create( "DButton", Rules )
- Disagree:SetPos( 250, 700 )
- Disagree:SetSize( 140, 40 )
- Disagree:SetText( "I Disagree" )
- Disagree:SetDisabled(false);
- Disagree.DoClick = function( ) Rules:Close()
- RunConsoleCommand( "disconnect" )
- end
- end
- concommand.Add( "sb_agree", Agreement )
- concommand.Add( "sb_start", Initialize )
Add Comment
Please, Sign In to add comment