• Help please with derma
    1 replies, posted
Hi all, how can make background, like a first screen on OA? [T]http://img9.imageshack.us/img9/2483/2011102200002.jpg[/T]
This is how Id do it [CODE] function Intro() local Bg = vgui.Create("DFrame") Bg:SetPos(0,0) Bg:SetSize(ScrW(),ScrH()) Bg:SetTitle("") Bg:SetVisible(true) Bg:ShowCloseButton(true) -- Change to false to remove the close button Bg:MakePopup() Bg.Paint = function(w,h) surface.SetDrawColor(0,0,0) surface.DrawRect(0,0,w,h) end end hook.Add("PlayerConnect","Whatever",Intro) [/CODE] Thats how I would do it, untested and Im uncertain about that hook.
Sorry, you need to Log In to post a reply to this thread.