Neverlose.cc TS Keybinds(Team skeet Keybind)

  • 13
  • 0
Прикольные Keybinds для NL в стиле скита.

Код:
local screen = EngineClient.GetScreenSize()



local keybindscheck = Menu.SwitchColor("Keybinds", "Enable Keybinds", false, Color.new(1.0, 1.0, 1.0, 1.0))

local gradientcheck = Menu.Switch("Keybinds", "Gradient", false, "Gradient")

local key2 = {Menu.SliderInt("Keybinds", "keybinds x", 300, 1, screen.x), Menu.SliderInt("Keybinds", "keybinds y", 10, 1, screen.y)}

 

local function render_conteiner(x, y, w, h, name, color, box_alpha, font_size, font)

    local name_size = Render.CalcTextSize(name, font_size, font)

    local line_col = keybindscheck:GetColor()

 

    local r, g, b

    r = (math.floor(math.sin(GlobalVars.realtime * 1) * 127 + 128)) / 1000 * 3.92

    g = (math.floor(math.sin(GlobalVars.realtime * 1 + 2) * 127 + 128)) / 1000 * 3.92

    b = (math.floor(math.sin(GlobalVars.realtime * 1 + 4) * 127 + 128)) / 1000 * 3.92



    local color = keybindscheck:GetColor()

 

    local add_y_box = 0

 

    local binds = Cheat.GetBinds()

    for i = 1, #binds do

        add_y_box = add_y_box + 16

    end



    if gradientcheck:GetBool() then

        Render.GradientBoxFilled(Vector2.new(x, y), Vector2.new(x + w/2, y - 1), Color.RGBA(55, 177, 218, 255), Color.RGBA(203, 70, 205, 255), Color.RGBA(55, 177, 218, 255), Color.RGBA(203, 70, 205, 255))

        Render.GradientBoxFilled(Vector2.new(x + w/2, y), Vector2.new(x + w, y - 1), Color.RGBA(203, 70, 205, 255), Color.RGBA(204, 227, 53, 255), Color.RGBA(203, 70, 205, 255), Color.RGBA(204, 227, 53, 255))

    else

        Render.BoxFilled(Vector2.new(x, y), Vector2.new(x + w, y - 1), color)

    end

    Render.BoxFilled(Vector2.new(x, y), Vector2.new(x + w, y + h + 3), Color.RGBA(20, 20, 20, 255))

    Render.BoxFilled(Vector2.new(x, y + h + add_y_box + 7), Vector2.new(x + w, y + h + 3), Color.RGBA(25, 25, 25, 255))

 

    Render.Text(name, Vector2.new(x + w / 2 - name_size.x / 2, y + 2), Color.new(280, 280, 280), font_size, font, false)

end





local font_size = 10

local font = Render.InitFont("Smallest Pixel-7", 10)

local drag = false

local width = 0

local m_alpha = 0



local function keybinds()

    local x, y = key2[1]:GetInt(), key2[2]:GetInt()

    local max_width = 0



    local add_y = 0

 

    local mouse = Cheat.GetMousePos()

 

    width = math.max(200, max_width)

    if keybindscheck:GetBool() then

        render_conteiner(x, y, width, 12, "keybinds", color, Color.new(0, 0, 0, 0.3), font_size, font, add_pizda)

    end



    if Cheat.IsKeyDown(1) then

        if mouse.x >= x and mouse.y >= y and mouse.x <= x + width and mouse.y <= y + 18 or drag then

            if not drag then

                drag = true

            else

                key2[1]:SetInt(mouse.x - math.floor(width / 2))

                key2[2]:SetInt(mouse.y - 8)

            end

        end

    else

        drag = false

    end

 

    if keybindscheck:GetBool() then

        local function render_binds(binds)

            if not binds:IsActive() then return end

            local bind_name = binds:GetName()

            local bind_state = binds:GetMode()

        

            local statetext = string.format("")

        

            if bind_state == 0 then

                statetext = string.format("toggled")

            else

                statetext = string.format("hold")

            end



            add_y = add_y + 16

        

            local bind_state_size = Render.CalcTextSize(statetext, font_size, font)

            local bind_name_size = Render.CalcTextSize(bind_name, font_size, font)

        

            local color = keybindscheck:GetColor()

        

            if gradientcheck:GetBool() then

                Render.Text(bind_name, Vector2.new(x + 5, y + add_y + 2), Color.RGBA(100, 200, 255, 255), font_size, font, false)

                Render.Text(statetext, Vector2.new(x - 10 + (width - bind_state_size.x), y + add_y + 2), Color.RGBA(175, 255, 0, 255), font_size, font, false)

            else

                Render.Text(bind_name, Vector2.new(x + 5, y + add_y + 2), color, font_size, font, false)

                Render.Text(statetext, Vector2.new(x - 10 + (width - bind_state_size.x), y + add_y + 2), Color.new(1, 1, 1, 1), font_size, font, false)

            end



            local bind_width = bind_state_size.x + bind_name_size.x + 10

            if bind_width > 80 then

                if bind_width > max_width then

                    max_width = bind_width

                end

            end

        end



        local binds = Cheat.GetBinds()

        for i = 1, #binds do

            render_binds(binds[i])

        end

    end

end



Cheat.RegisterCallback("draw", function()

    keybinds()

end)



local ui_callback       = function()

    if keybindscheck:GetBool() then

        gradientcheck:SetVisible(true)

        key2[1]:SetVisible(true)

        key2[2]:SetVisible(true)

    else

        gradientcheck:SetVisible(false)

        key2[1]:SetVisible(false)

        key2[2]:SetVisible(false)

    end

end



ui_callback()



keybindscheck:RegisterCallback(ui_callback
 
Последнее редактирование:
  • 230
  • 56
Контакты для связи отсутствуют.
1641469981467.png
 
  • 594
  • 136
Обратите внимание, пользователь заблокирован на форуме. Не рекомендуется проводить сделки.
Прикольные Keybinds для NL в стиле скита.

Код:
local screen = EngineClient.GetScreenSize()



local keybindscheck = Menu.SwitchColor("Keybinds", "Enable Keybinds", false, Color.new(1.0, 1.0, 1.0, 1.0))

local gradientcheck = Menu.Switch("Keybinds", "Gradient", false, "Gradient")

local key2 = {Menu.SliderInt("Keybinds", "keybinds x", 300, 1, screen.x), Menu.SliderInt("Keybinds", "keybinds y", 10, 1, screen.y)}

 

local function render_conteiner(x, y, w, h, name, color, box_alpha, font_size, font)

    local name_size = Render.CalcTextSize(name, font_size, font)

    local line_col = keybindscheck:GetColor()

 

    local r, g, b

    r = (math.floor(math.sin(GlobalVars.realtime * 1) * 127 + 128)) / 1000 * 3.92

    g = (math.floor(math.sin(GlobalVars.realtime * 1 + 2) * 127 + 128)) / 1000 * 3.92

    b = (math.floor(math.sin(GlobalVars.realtime * 1 + 4) * 127 + 128)) / 1000 * 3.92



    local color = keybindscheck:GetColor()

 

    local add_y_box = 0

 

    local binds = Cheat.GetBinds()

    for i = 1, #binds do

        add_y_box = add_y_box + 16

    end



    if gradientcheck:GetBool() then

        Render.GradientBoxFilled(Vector2.new(x, y), Vector2.new(x + w/2, y - 1), Color.RGBA(55, 177, 218, 255), Color.RGBA(203, 70, 205, 255), Color.RGBA(55, 177, 218, 255), Color.RGBA(203, 70, 205, 255))

        Render.GradientBoxFilled(Vector2.new(x + w/2, y), Vector2.new(x + w, y - 1), Color.RGBA(203, 70, 205, 255), Color.RGBA(204, 227, 53, 255), Color.RGBA(203, 70, 205, 255), Color.RGBA(204, 227, 53, 255))

    else

        Render.BoxFilled(Vector2.new(x, y), Vector2.new(x + w, y - 1), color)

    end

    Render.BoxFilled(Vector2.new(x, y), Vector2.new(x + w, y + h + 3), Color.RGBA(20, 20, 20, 255))

    Render.BoxFilled(Vector2.new(x, y + h + add_y_box + 7), Vector2.new(x + w, y + h + 3), Color.RGBA(25, 25, 25, 255))

 

    Render.Text(name, Vector2.new(x + w / 2 - name_size.x / 2, y + 2), Color.new(280, 280, 280), font_size, font, false)

end





local font_size = 10

local font = Render.InitFont("Smallest Pixel-7", 10)

local drag = false

local width = 0

local m_alpha = 0



local function keybinds()

    local x, y = key2[1]:GetInt(), key2[2]:GetInt()

    local max_width = 0



    local add_y = 0

 

    local mouse = Cheat.GetMousePos()

 

    width = math.max(200, max_width)

    if keybindscheck:GetBool() then

        render_conteiner(x, y, width, 12, "keybinds", color, Color.new(0, 0, 0, 0.3), font_size, font, add_pizda)

    end



    if Cheat.IsKeyDown(1) then

        if mouse.x >= x and mouse.y >= y and mouse.x <= x + width and mouse.y <= y + 18 or drag then

            if not drag then

                drag = true

            else

                key2[1]:SetInt(mouse.x - math.floor(width / 2))

                key2[2]:SetInt(mouse.y - 8)

            end

        end

    else

        drag = false

    end

 

    if keybindscheck:GetBool() then

        local function render_binds(binds)

            if not binds:IsActive() then return end

            local bind_name = binds:GetName()

            local bind_state = binds:GetMode()

       

            local statetext = string.format("")

       

            if bind_state == 0 then

                statetext = string.format("toggled")

            else

                statetext = string.format("hold")

            end



            add_y = add_y + 16

       

            local bind_state_size = Render.CalcTextSize(statetext, font_size, font)

            local bind_name_size = Render.CalcTextSize(bind_name, font_size, font)

       

            local color = keybindscheck:GetColor()

       

            if gradientcheck:GetBool() then

                Render.Text(bind_name, Vector2.new(x + 5, y + add_y + 2), Color.RGBA(100, 200, 255, 255), font_size, font, false)

                Render.Text(statetext, Vector2.new(x - 10 + (width - bind_state_size.x), y + add_y + 2), Color.RGBA(175, 255, 0, 255), font_size, font, false)

            else

                Render.Text(bind_name, Vector2.new(x + 5, y + add_y + 2), color, font_size, font, false)

                Render.Text(statetext, Vector2.new(x - 10 + (width - bind_state_size.x), y + add_y + 2), Color.new(1, 1, 1, 1), font_size, font, false)

            end



            local bind_width = bind_state_size.x + bind_name_size.x + 10

            if bind_width > 80 then

                if bind_width > max_width then

                    max_width = bind_width

                end

            end

        end



        local binds = Cheat.GetBinds()

        for i = 1, #binds do

            render_binds(binds[i])

        end

    end

end



Cheat.RegisterCallback("draw", function()

    keybinds()

end)



local ui_callback       = function()

    if keybindscheck:GetBool() then

        gradientcheck:SetVisible(true)

        key2[1]:SetVisible(true)

        key2[2]:SetVisible(true)

    else

        gradientcheck:SetVisible(false)

        key2[1]:SetVisible(false)

        key2[2]:SetVisible(false)

    end

end



ui_callback()



keybindscheck:RegisterCallback(ui_callback
Может просто стиль кода такой, но зачем ты через каждый вар, функцию и т.д делаешь пробел а то и 2? Это во первых фпс может есть, во вторых ты на 1 бинды уделяешь почти 300 строк кода
 
  • ZAPE
  • Агент sugo
  • 884
  • 3
  • 175
Может просто стиль кода такой, но зачем ты через каждый вар, функцию и т.д делаешь пробел а то и 2? Это во первых фпс может есть, во вторых ты на 1 бинды уделяешь почти 300 строк кода
Этот код вроде взят с другого форума
 
  • Scora
  • чапаю на кавказ
  • 339
  • 71
  • 81
Прикольные Keybinds для NL в стиле скита.

Код:
local screen = EngineClient.GetScreenSize()



local keybindscheck = Menu.SwitchColor("Keybinds", "Enable Keybinds", false, Color.new(1.0, 1.0, 1.0, 1.0))

local gradientcheck = Menu.Switch("Keybinds", "Gradient", false, "Gradient")

local key2 = {Menu.SliderInt("Keybinds", "keybinds x", 300, 1, screen.x), Menu.SliderInt("Keybinds", "keybinds y", 10, 1, screen.y)}

 

local function render_conteiner(x, y, w, h, name, color, box_alpha, font_size, font)

    local name_size = Render.CalcTextSize(name, font_size, font)

    local line_col = keybindscheck:GetColor()

 

    local r, g, b

    r = (math.floor(math.sin(GlobalVars.realtime * 1) * 127 + 128)) / 1000 * 3.92

    g = (math.floor(math.sin(GlobalVars.realtime * 1 + 2) * 127 + 128)) / 1000 * 3.92

    b = (math.floor(math.sin(GlobalVars.realtime * 1 + 4) * 127 + 128)) / 1000 * 3.92



    local color = keybindscheck:GetColor()

 

    local add_y_box = 0

 

    local binds = Cheat.GetBinds()

    for i = 1, #binds do

        add_y_box = add_y_box + 16

    end



    if gradientcheck:GetBool() then

        Render.GradientBoxFilled(Vector2.new(x, y), Vector2.new(x + w/2, y - 1), Color.RGBA(55, 177, 218, 255), Color.RGBA(203, 70, 205, 255), Color.RGBA(55, 177, 218, 255), Color.RGBA(203, 70, 205, 255))

        Render.GradientBoxFilled(Vector2.new(x + w/2, y), Vector2.new(x + w, y - 1), Color.RGBA(203, 70, 205, 255), Color.RGBA(204, 227, 53, 255), Color.RGBA(203, 70, 205, 255), Color.RGBA(204, 227, 53, 255))

    else

        Render.BoxFilled(Vector2.new(x, y), Vector2.new(x + w, y - 1), color)

    end

    Render.BoxFilled(Vector2.new(x, y), Vector2.new(x + w, y + h + 3), Color.RGBA(20, 20, 20, 255))

    Render.BoxFilled(Vector2.new(x, y + h + add_y_box + 7), Vector2.new(x + w, y + h + 3), Color.RGBA(25, 25, 25, 255))

 

    Render.Text(name, Vector2.new(x + w / 2 - name_size.x / 2, y + 2), Color.new(280, 280, 280), font_size, font, false)

end





local font_size = 10

local font = Render.InitFont("Smallest Pixel-7", 10)

local drag = false

local width = 0

local m_alpha = 0



local function keybinds()

    local x, y = key2[1]:GetInt(), key2[2]:GetInt()

    local max_width = 0



    local add_y = 0

 

    local mouse = Cheat.GetMousePos()

 

    width = math.max(200, max_width)

    if keybindscheck:GetBool() then

        render_conteiner(x, y, width, 12, "keybinds", color, Color.new(0, 0, 0, 0.3), font_size, font, add_pizda)

    end



    if Cheat.IsKeyDown(1) then

        if mouse.x >= x and mouse.y >= y and mouse.x <= x + width and mouse.y <= y + 18 or drag then

            if not drag then

                drag = true

            else

                key2[1]:SetInt(mouse.x - math.floor(width / 2))

                key2[2]:SetInt(mouse.y - 8)

            end

        end

    else

        drag = false

    end

 

    if keybindscheck:GetBool() then

        local function render_binds(binds)

            if not binds:IsActive() then return end

            local bind_name = binds:GetName()

            local bind_state = binds:GetMode()

       

            local statetext = string.format("")

       

            if bind_state == 0 then

                statetext = string.format("toggled")

            else

                statetext = string.format("hold")

            end



            add_y = add_y + 16

       

            local bind_state_size = Render.CalcTextSize(statetext, font_size, font)

            local bind_name_size = Render.CalcTextSize(bind_name, font_size, font)

       

            local color = keybindscheck:GetColor()

       

            if gradientcheck:GetBool() then

                Render.Text(bind_name, Vector2.new(x + 5, y + add_y + 2), Color.RGBA(100, 200, 255, 255), font_size, font, false)

                Render.Text(statetext, Vector2.new(x - 10 + (width - bind_state_size.x), y + add_y + 2), Color.RGBA(175, 255, 0, 255), font_size, font, false)

            else

                Render.Text(bind_name, Vector2.new(x + 5, y + add_y + 2), color, font_size, font, false)

                Render.Text(statetext, Vector2.new(x - 10 + (width - bind_state_size.x), y + add_y + 2), Color.new(1, 1, 1, 1), font_size, font, false)

            end



            local bind_width = bind_state_size.x + bind_name_size.x + 10

            if bind_width > 80 then

                if bind_width > max_width then

                    max_width = bind_width

                end

            end

        end



        local binds = Cheat.GetBinds()

        for i = 1, #binds do

            render_binds(binds[i])

        end

    end

end



Cheat.RegisterCallback("draw", function()

    keybinds()

end)



local ui_callback       = function()

    if keybindscheck:GetBool() then

        gradientcheck:SetVisible(true)

        key2[1]:SetVisible(true)

        key2[2]:SetVisible(true)

    else

        gradientcheck:SetVisible(false)

        key2[1]:SetVisible(false)

        key2[2]:SetVisible(false)

    end

end



ui_callback()



keybindscheck:RegisterCallback(ui_callback
Дак это и так лежит в ДСе Rollmops Leaking
 
Сверху Снизу