shadowndacorner

Donator Guy

Oct 10th, 2011
195
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.94 KB | None | 0 0
  1. include('shared.lua')
  2.  
  3. ENT.RenderGroup = RENDERGROUP_BOTH
  4.  
  5. function ENT:Draw()
  6.     self:DrawModel()
  7. end
  8.  
  9. local function ShopMenu(html)
  10. //      LocalPlayer():ChatPrint("Coming soon!")
  11. //      chat.AddText("Shop function started...")
  12.         local MotdPanel = vgui.Create("DFrame")
  13.         MotdPanel:SetPos( 100,100 )
  14.         MotdPanel:SetSize( 850, 580 )
  15.         MotdPanel:SetTitle( "Forums" )
  16.         MotdPanel:SetVisible( false )
  17.         MotdPanel:SetDraggable( true )
  18.         MotdPanel:ShowCloseButton( true )
  19.         MotdPanel:SetDeleteOnClose( false )
  20.         MotdPanel:SetScreenLock( true )
  21.         MotdPanel:MakePopup()
  22.        
  23.         local MotdBox = vgui.Create("HTML",MotdPanel)
  24.         MotdBox:StretchToParent( 4,25,4,4 )
  25. //      chat.AddText("HTML Code: "..tostring(html))
  26.         MotdBox:SetHTML( html )
  27.         MotdPanel:SetVisible( true )
  28. end
  29. usermessage.Hook("DonatorMenu", function()
  30. //  chat.AddText("Donator Menu umsg received...  starting http.Get function...")
  31.     http.Get("http://darkergaming.com/", "", ShopMenu)
  32. end)
  33.  
Advertisement
Add Comment
Please, Sign In to add comment