Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- include( 'shared.lua' );
- include( 'vgui/hud.lua' );
- include( 'vgui/extras.lua' );
- include( 'vgui/3d2dtexts.lua' );
- include( 'vgui/gmodlegs.lua' );
- -- Clientside only stuff goes here
- surface.CreateFont ("Myriad Pro", 70, 0, true, false, "IntroFontDork");
- surface.CreateFont ("Myriad Pro", 250, 0, true, false, "IntroductionRP");
- surface.CreateFont ("Myriad Pro", 20, 400, true, false, "IntroSmallCredits");
- surface.CreateFont ("Myriad Pro", 70, 0, true, false, "IntroBiglCredit");
- local tex = surface.GetTextureID("pathtotexture") -- <<----EDIT ME!!!!!!!!
- local fadeA = 50;
- local fadeB = 0;
- local introEnabled = true
- local up = true;
- hook.Add("HUDPaint","DrawMyIntroText",function()
- if introEnabled == true then
- if fadeA < 255 and up then
- fadeA = Lerp(0.05,fadeA,255);
- elseif fadeB > 254 and not up then
- fadeA = Lerp(0.1,fadeA,0);
- end
- if fadeA > 254 and up then
- fadeB = Lerp(0.05,fadeB,255);
- if fadeA < 1 and not up then
- fadeB = Lerp(0.1,fadeB,0);
- end
- if fadeB < 1 and not up then
- intoEnabled = false;
- end
- surface.SetDrawColor(0,0,0,255);
- surface.DrawRect(0,0,ScrW(),ScrH());
- if tex then
- surface.SetTexture(tex);
- surface.DrawTexturedRect(0,0,ScrW(),ScrH());
- end
- draw.DrawText("Dork", "IntroFontDork", ScrW() / 2 - 60, ScrH() - 777, Color(0, 96, 255, fadeA),TEXT_ALIGN_CENTER)
- draw.DrawText("RP", "IntroductionRP", ScrW() / 2 + 60, ScrH() - 822, Color(255, 255, 255, fadeA),TEXT_ALIGN_CENTER)
- draw.DrawText("A Gamemode by", "IntroSmallCredits", ScrW() - 1400, ScrH() - 400, Color(255, 255, 255, fadeB),TEXT_ALIGN_CENTER)
- draw.DrawText("Dorkslayz", "IntroBiglCredit", ScrW() - 1300, ScrH() - 370, Color(0, 96, 255, fadeB),TEXT_ALIGN_CENTER)
- else
- end
- end);
Add Comment
Please, Sign In to add comment