Подведи собственные итоги года совместно с YOUGAME и забери ценные призы! Перейти

Хэлп с луа.

не играю хвх и вам не советую
Участник
Участник
Статус
Оффлайн
Регистрация
15 Дек 2018
Сообщения
864
Реакции
213
Код:
Expand Collapse Copy
function StringDraw()
draw.Color( 220, 50, 50 );

    draw.Text( 128, 500, flickticks );
    
    if (lastreal == gui.GetValue("rbot_antiaim_stand_desync")) then
    
    draw.Color( 50, 255, 50 );
    draw.Text( 128, 630, "Real : " ..desyncs[lastreal] );
    draw.Color( 255, 50, 50 );
    draw.Text( 128, 570, "Fake : " ..desyncs[lastfake] );
    
                else
        
    draw.Color( 50, 255, 50 );
    draw.Text( 128, 570, "Fake : " ..desyncs[lastfake] );
    draw.Color( 255, 50, 50 );
    draw.Text( 128, 630, "Real : " ..desyncs[lastreal] );
    draw.Color( 225, 50, 50 );
    end
end

callbacks.Register( "Draw", "StringDraw", StringDraw );
Нужно вставить вот это:
Код:
Expand Collapse Copy
local textWidth, textHeight = draw.GetTextSize(text);
            local top = 1050
            draw.Color(226, 113, 0, 255);
            draw.FilledRect(0, top, textWidth + 30, top + textHeight + 20);
            draw.Color(16, 0, 0, 255);
            draw.FilledRect(0, top, textWidth + 20, top + textHeight + 20);
            draw.Color(255, 255, 255, 255);
            draw.Text(10, top + 10, text);
end
 
в начало кода блять
Код:
Expand Collapse Copy
function StringDraw()
local textWidth, textHeight = draw.GetTextSize(text);
            local top = 1050
            draw.Color(226, 113, 0, 255);
            draw.FilledRect(0, top, textWidth + 30, top + textHeight + 20);
            draw.Color(16, 0, 0, 255);
            draw.FilledRect(0, top, textWidth + 20, top + textHeight + 20);
            draw.Color(255, 255, 255, 255);
            draw.Text(10, top + 10, text);
end

draw.Color( 220, 50, 50 );

    draw.Text( 128, 500, flickticks );
   
    if (lastreal == gui.GetValue("rbot_antiaim_stand_desync")) then
   
    draw.Color( 50, 255, 50 );
    draw.Text( 128, 630, "Real : " ..desyncs[lastreal] );
    draw.Color( 255, 50, 50 );
    draw.Text( 128, 570, "Fake : " ..desyncs[lastfake] );
   
                else
       
    draw.Color( 50, 255, 50 );
    draw.Text( 128, 570, "Fake : " ..desyncs[lastfake] );
    draw.Color( 255, 50, 50 );
    draw.Text( 128, 630, "Real : " ..desyncs[lastreal] );
    draw.Color( 225, 50, 50 );
    end
end

callbacks.Register( "Draw", "StringDraw", StringDraw );
??
 
Код:
Expand Collapse Copy
local textWidth, textHeight = draw.GetTextSize(text);

            local top = 1050

            draw.Color(226, 113, 0, 255);

            draw.FilledRect(0, top, textWidth + 30, top + textHeight + 20);

            draw.Color(16, 0, 0, 255);

            draw.FilledRect(0, top, textWidth + 20, top + textHeight + 20);

            draw.Color(255, 255, 255, 255);

            draw.Text(10, top + 10, text);

end

function StringDraw()

draw.Color( 220, 50, 50 );



    draw.Text( 128, 500, flickticks );

    

    if (lastreal == gui.GetValue("rbot_antiaim_stand_desync")) then

    

    draw.Color( 50, 255, 50 );

    draw.Text( 128, 630, "Real : " ..desyncs[lastreal] );

    draw.Color( 255, 50, 50 );

    draw.Text( 128, 570, "Fake : " ..desyncs[lastfake] );

    

                else

        

    draw.Color( 50, 255, 50 );

    draw.Text( 128, 570, "Fake : " ..desyncs[lastfake] );

    draw.Color( 255, 50, 50 );

    draw.Text( 128, 630, "Real : " ..desyncs[lastreal] );

    draw.Color( 225, 50, 50 );

    end

end
 
в начало кода блять
Screenshot_2.png
 
Код:
Expand Collapse Copy
local textWidth, textHeight = draw.GetTextSize(text);

            local top = 1050

            draw.Color(226, 113, 0, 255);

            draw.FilledRect(0, top, textWidth + 30, top + textHeight + 20);

            draw.Color(16, 0, 0, 255);

            draw.FilledRect(0, top, textWidth + 20, top + textHeight + 20);

            draw.Color(255, 255, 255, 255);

            draw.Text(10, top + 10, text);

end

function StringDraw()

draw.Color( 220, 50, 50 );



    draw.Text( 128, 500, flickticks );

   

    if (lastreal == gui.GetValue("rbot_antiaim_stand_desync")) then

   

    draw.Color( 50, 255, 50 );

    draw.Text( 128, 630, "Real : " ..desyncs[lastreal] );

    draw.Color( 255, 50, 50 );

    draw.Text( 128, 570, "Fake : " ..desyncs[lastfake] );

   

                else

       

    draw.Color( 50, 255, 50 );

    draw.Text( 128, 570, "Fake : " ..desyncs[lastfake] );

    draw.Color( 255, 50, 50 );

    draw.Text( 128, 630, "Real : " ..desyncs[lastreal] );

    draw.Color( 225, 50, 50 );

    end

end
Screenshot_3.png
 
Код:
Expand Collapse Copy
local textWidth, textHeight = draw.GetTextSize(text);

            local top = 1050

            draw.Color(226, 113, 0, 255);

            draw.FilledRect(0, top, textWidth + 30, top + textHeight + 20);

            draw.Color(16, 0, 0, 255);

            draw.FilledRect(0, top, textWidth + 20, top + textHeight + 20);

            draw.Color(255, 255, 255, 255);

            draw.Text(10, top + 10, text)

end

function StringDraw()

draw.Color( 220, 50, 50 );



    draw.Text( 128, 500, flickticks );

    

    if (lastreal == gui.GetValue("rbot_antiaim_stand_desync")) then

    

    draw.Color( 50, 255, 50 );

    draw.Text( 128, 630, "Real : " ..desyncs[lastreal] );

    draw.Color( 255, 50, 50 );

    draw.Text( 128, 570, "Fake : " ..desyncs[lastfake] );

    

                else

        

    draw.Color( 50, 255, 50 );

    draw.Text( 128, 570, "Fake : " ..desyncs[lastfake] );

    draw.Color( 255, 50, 50 );

    draw.Text( 128, 630, "Real : " ..desyncs[lastreal] );

    draw.Color( 225, 50, 50 );

    end

end
попробуй тогда так
 
Код:
Expand Collapse Copy
local textWidth, textHeight = draw.GetTextSize(text);

            local top = 1050

            draw.Color(226, 113, 0, 255);

            draw.FilledRect(0, top, textWidth + 30, top + textHeight + 20);

            draw.Color(16, 0, 0, 255);

            draw.FilledRect(0, top, textWidth + 20, top + textHeight + 20);

            draw.Color(255, 255, 255, 255);

            draw.Text(10, top + 10, text)

end

function StringDraw()

draw.Color( 220, 50, 50 );



    draw.Text( 128, 500, flickticks );

   

    if (lastreal == gui.GetValue("rbot_antiaim_stand_desync")) then

   

    draw.Color( 50, 255, 50 );

    draw.Text( 128, 630, "Real : " ..desyncs[lastreal] );

    draw.Color( 255, 50, 50 );

    draw.Text( 128, 570, "Fake : " ..desyncs[lastfake] );

   

                else

       

    draw.Color( 50, 255, 50 );

    draw.Text( 128, 570, "Fake : " ..desyncs[lastfake] );

    draw.Color( 255, 50, 50 );

    draw.Text( 128, 630, "Real : " ..desyncs[lastreal] );

    draw.Color( 225, 50, 50 );

    end

end
попробуй тогда так
не нихуя такая же
 
+ мне нужно вставить что бы отображался текст Fake: , Real:
блять уроки ппастинга на луа я сделаю когда выучу апи луа поляка тогда будет ок дайте мне его апи все сделаю как надо а так посмотри в уроке пастинга глуа там похоже немного
 
Код:
Expand Collapse Copy
local textWidth, textHeight = draw.GetTextSize(text);

            local top = 1050

            draw.Color(226, 113, 0, 255);

            draw.FilledRect(0, top, textWidth + 30, top + textHeight + 20);

            draw.Color(16, 0, 0, 255);

            draw.FilledRect(0, top, textWidth + 20, top + textHeight + 20);

            draw.Color(255, 255, 255, 255);

            draw.Text(10, top + 10, text)

end

function StringDraw()

draw.Color( 220, 50, 50 );



    draw.Text( 128, 500, flickticks );

   

    if (lastreal == gui.GetValue("rbot_antiaim_stand_desync")) then

   

    draw.Color( 50, 255, 50 );

    draw.Text( 128, 630, "Real : " ..desyncs[lastreal] );

    draw.Color( 255, 50, 50 );

    draw.Text( 128, 570, "Fake : " ..desyncs[lastfake] );

   

                else

       

    draw.Color( 50, 255, 50 );

    draw.Text( 128, 570, "Fake : " ..desyncs[lastfake] );

    draw.Color( 255, 50, 50 );

    draw.Text( 128, 630, "Real : " ..desyncs[lastreal] );

    draw.Color( 225, 50, 50 );

    end

end
попробуй тогда так
Код:
Expand Collapse Copy
local flickticks = 0;-- Dont change
local breakticks = 0;-- Dont change

local lastfake = 1;-- Dont change
local lastreal = 1;-- Dont change

local flickpertick = 100; -- If tick = then flick

local clearflicks = 145; -- Fake Desync time in ticks

local realontick = 1; -- Time to set real after reset either it will set fake

local desyncfake = 2; -- Set fake desync mode still/balance/stretch/jitter
local desyncreal = 1; -- Set real desync mode still/balance/stretch/jitter



desyncs = {
   "Still",
   "Balance",
   "Stretch",
   "Jitter"
}


function DesyncFlick()
 
  if (flickticks > flickpertick) then
 
        gui.SetValue("rbot_antiaim_stand_desync", desyncfake);
        lastfake = gui.GetValue("rbot_antiaim_stand_desync");
        desync = 2;
        if( flickticks == clearflicks) then
        
        flickticks = 0;
        end
            else
        if (breakticks > realontick) then
        
       gui.SetValue("rbot_antiaim_stand_desync", desyncreal);
        lastreal = gui.GetValue("rbot_antiaim_stand_desync");
        
        
        desync = 3;
        breakticks = 0;
        end   
          
    
    
    end

    flickticks = flickticks + 1;
    breakticks = breakticks + 1;

end
function StringDraw()
draw.Color( 220, 50, 50 );

    draw.Text( 128, 500, flickticks );
    
    if (lastreal == gui.GetValue("rbot_antiaim_stand_desync")) then
    
    draw.Color( 50, 255, 50 );
    draw.Text( 128, 630, "Real : " ..desyncs[lastreal] );
    draw.Color( 255, 50, 50 );
    draw.Text( 128, 570, "Fake : " ..desyncs[lastfake] );
    
                else
        
    draw.Color( 50, 255, 50 );
    draw.Text( 128, 570, "Fake : " ..desyncs[lastfake] );
    draw.Color( 255, 50, 50 );
    draw.Text( 128, 630, "Real : " ..desyncs[lastreal] );
    draw.Color( 225, 50, 50 );

    end
end

callbacks.Register( "Draw", "StringDraw", StringDraw );

callbacks.Register( "Draw", "DesyncFlick", DesyncFlick);
Вот весь код
 
Назад
Сверху Снизу