Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if SERVER then
- util.AddNetworkString("open_boost_menu") -- Типа функции для - открытия fps menu
- end
- stop = false
- r = 200
- pause = false
- if CLIENT then
- function FPSBoost()
- local frame = vgui.Create("DFrame")
- frame:SetSize(ScrW(),ScrH())
- frame:Center()
- frame:SetVisible(true)
- frame:ShowCloseButton(false)
- frame:SetDraggable(false)
- frame:SetTitle("")
- frame.Paint = function(s , w , h)
- draw.RoundedBox(0,0,0,w,h,Color(0,0,0,0))
- end
- frame:MakePopup()
- local startBut = vgui.Create("DButton", frame)
- startBut:SetText( "" )
- startBut:SetSize(ScrW(),ScrH())
- startBut:SetPos(0, 0)
- startBut.DoClick = function()
- RunConsoleCommand("props_break_max_pieces", "0" )
- RunConsoleCommand("cl_cmdrate", "66" )
- RunConsoleCommand("cl_interp_ratio", "2" )
- RunConsoleCommand("r_threaded_particles", "1" )
- RunConsoleCommand("cl_updaterate", "66" )
- RunConsoleCommand("r_drawtracers", "0")
- RunConsoleCommand("r_eyegloss", "0")
- RunConsoleCommand("r_eyemove", "0")
- RunConsoleCommand("r_dynamic", "0")
- RunConsoleCommand("r_teeth", "0")
- RunConsoleCommand("cl_smooth", "0")
- RunConsoleCommand("r_propsmaxdist", "0")
- RunConsoleCommand("rate", "100000")
- RunConsoleCommand("cl_interp", "0.3")
- RunConsoleCommand("r_threaded_client_shadow_manager", "1")
- RunConsoleCommand("cl_detaildist", "0")
- RunConsoleCommand("r_decal_cullsize", "1")
- RunConsoleCommand("violence_ablood", "0")
- RunConsoleCommand("rope_smooth", "0")
- RunConsoleCommand("r_waterdrawreflection", "0")
- RunConsoleCommand("r_waterforcereflectentities", "0")
- RunConsoleCommand("r_decals", "0")
- RunConsoleCommand("studio_queue_mode", "1")
- RunConsoleCommand("r_ropetranslucent", "0")
- RunConsoleCommand("r_drawmodeldecals", "0")
- RunConsoleCommand("r_3dsky", "1")
- RunConsoleCommand("r_maxmodeldecal", "0")
- RunConsoleCommand("r_drawflecks", "0")
- RunConsoleCommand("cl_threaded_client_leaf_system", "1")
- RunConsoleCommand("cl_show_splashes", "0")
- RunConsoleCommand("r_worldlights", "0")
- RunConsoleCommand("r_threaded_renderables", "1")
- RunConsoleCommand("cl_forcepreload", "1")
- RunConsoleCommand("mat_queue_mode", "2")
- RunConsoleCommand("snd_mix_async", "1")
- RunConsoleCommand("cl_phys_props_enable", "0")
- RunConsoleCommand("muzzleflash_light", "0")
- RunConsoleCommand("cl_wpn_sway_interp", "0")
- RunConsoleCommand("in_usekeyboardsampletime", "0")
- RunConsoleCommand("cl_detailfade", "800")
- RunConsoleCommand("r_lod", "0")
- RunConsoleCommand("r_fastzreject", "-1")
- RunConsoleCommand("r_flex", "0")
- RunConsoleCommand("cl_ejectbrass", "0")
- RunConsoleCommand("r_maxdlights", "0")
- RunConsoleCommand("violence_agibs", "0")
- RunConsoleCommand("r_shadowmaxrendered", "0")
- RunConsoleCommand("r_shadowrendertotexture", "0")
- RunConsoleCommand("r_queued_ropes", "1")
- RunConsoleCommand("mat_shadowstate", "0")
- RunConsoleCommand("r_drawdetailprops", "0")
- RunConsoleCommand("cl_phys_props_max", "0")
- RunConsoleCommand("r_waterdrawrefraction", "1")
- RunConsoleCommand("r_shadows", "1")
- RunConsoleCommand("gmod_mcore_test", "1")
- RunConsoleCommand("violence_hgibs", "0")
- RunConsoleCommand("cl_threaded_bone_setup", "1")
- RunConsoleCommand("datacachesize", "2048")
- RunConsoleCommand("mem_max_heapsize_dedicated", "4096")
- RunConsoleCommand("sv_forcepreload", "1")
- RunConsoleCommand("ppm2_reload")
- RunConsoleCommand("ppm2_require")
- RunConsoleCommand("SprayMesh_EnableVideos", "1")
- frame:Remove()
- startBut:Remove()
- end
- startBut.Paint = function(s , w , h)
- if !stop then
- stop = true
- timer.Simple(0.01 , function()
- if !pause then
- r = r - 1
- if r == 60 then
- r = 60
- pause = true
- end
- end
- if pause then
- r = r + 1
- if r == 200 then
- r = 200
- pause = false
- end
- end
- stop = false
- end)
- end
- colors = Color(255,97,0,255)
- draw.RoundedBox(0,0,0,w,h,Color(0,0,0,200))
- draw.Text( {
- text = "Нажмите в любую точку, чтобы начать играть.",
- pos = { ScrW()/2, ScrH()/2 },
- setsize = {100,100},
- color = colors,
- font = "SuperPuperFontByCitizen",
- xalign = TEXT_ALIGN_CENTER, -- Horizontal Alignment
- yalign = TEXT_ALIGN_CENTER, -- Vertical Alignment
- } )
- end
- end
- net.Receive("open_boost_menu",FPSBoost)
- end
- if SERVER then -- Серверная часть
- concommand.Add( "fpsboost", function( ply, cmd, args ) -- Команда fpsboost для консоли
- net.Start("open_boost_menu") -- Принятие переменной на серверной части
- net.Send( ply )
- end )
- concommand.Add( "checknumber", function( ply, cmd, args ) -- Команда была создана для проверки переменной, у какого игрока, какая
- for k , v in pairs(player.GetAll()) do
- print(v:Nick().." "..v:GetPData("OUR_ADDON_FPSBOOST", 1))
- end
- end )
- hook.Add( "PlayerSay", "FPSBoost", function( ply, text, public )
- text = string.lower( text ) -- Команда !fpsboost в чате
- if ( text == "!fpsboost" ) then
- net.Start("open_boost_menu") -- Принятие переменной на серверной части
- net.Send( ply )
- return ""
- end
- end )
- net.Receive( "SendDataFPS", SendDataFPS )
- end
- local function spawn( ply )
- net.Start("open_boost_menu") -- Принятие переменной на серверной части
- net.Send( ply )
- end
- hook.Add( "PlayerInitialSpawn", "PlayerInitialSpawnsome_unique_name", spawn )
- surface.CreateFont( "SuperPuperFontByCitizen", {
- font = "Arial", -- Use the font-name which is shown to you by your operating system Font Viewer, not the file name
- extended = false,
- size = 30,
- weight = 500,
- blursize = 0,
- scanlines = 0,
- antialias = true,
- underline = false,
- italic = false,
- strikeout = false,
- symbol = false,
- rotary = false,
- shadow = false,
- additive = false,
- outline = false,
- } )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement