- Статус
- Оффлайн
- Регистрация
- 15 Дек 2018
- Сообщения
- 864
- Реакции
- 213
Код:
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 );
Код:
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