JS-скрипт [otc3] no-trashcode watermark

Дизайнер
Статус
Оффлайн
Регистрация
18 Авг 2017
Сообщения
1,931
Реакции[?]
2,258
Поинты[?]
146K
Товары в продаже
1
1628619149971.png

в этом скрипте нет UI элементов, всё управляется через код

также здесь нет (надеюсь) говнокода и гигантских строк, чтобы новичкам было проще понять код

JavaScript:
if (settings & (1 << 0))
    {
         text  += ("      | " +get.string("Custom Nick Name"));
    }

    if (settings & (1 << 11))
    {
         text  += ("      | " +usernamea);
    }

    if (settings & (1 << 1))
    {
         text  += ( " | "+fps+ " fps");
    }

    if (settings & (1 << 2))
    {
         text  += (" | " +ping+"ms");
    }

    if (settings & (1 << 5))
    {
         text  += (" | " +current_map+"");
    }

    if (settings & (1 << 6))
    {
         text  += (" | delay: " +tickrate+" ");
    }

    if (settings & (1 << 7))
    {
         text  += (" | speed: " +velstr+"");
    }

    if (settings & (1 << 10))
    {
         text  += (" | server ip: " +server+"");
    }

    if (settings & (1 << 8))
    {
         text  += (" | duck amount: " +duckAmountStr+"");
    }

    if (settings & (1 << 9))
    {
         text  += (" | enemies: " +enemyCountStr+"");
    }

    if (settings & (1 << 3))
    {
         text  += (" | "+get_kd+ " kdr ");
    }

    if (settings & (1 << 4))
    {
         text  += ( "| "+hours + minutes);
    }

    if (settings & (1 << 12))
    {
         text  += ( "| "+ hours + minutes + ":" + seconds);
    }
JavaScript:
var TextArray = [
        "onetap",
        USERNAME,
        "delay: " + Latency + "ms",
        "fps: " + FPS,
        "K/D: " + KDR.toFixed(2),
        "V: " + (Speed <= 1 ? "(s)" : (Speed + " u/s"))
    ];

var Text = TextArray.join (" | ");


JavaScript:
// / enQ /////////////////////////////////////////////////////////////

const SCREEN = Render.GetScreenSize();

const COLOR = {
    Main:   [ 32,  32,  36,  255 ],
    Dark:   [ 6,   6,   10,  255 ],
    Light:  [ 54,  54,  60,  255 ],
    Text:   [ 232, 232, 232, 255 ],
    Accent: [ 88,  66,  199 ],  // ONLY 3 NUMBERS
}

// ///////////////////////////////////////////////////////////////////

const USERNAME = Cheat.GetUsername();

const MARGIN = {x: 8, y: 8}  // You can change this

//

var LocalPlayer = Entity.GetLocalPlayer();

var Time; var Hours; var Minutes;
var Kills; var Deaths; var KDR;

var Velocity; var Speed;

var FPS; var Latency;

var TextArray = [];

// ///////////////////////////////////////////////////////////////////

function update () {
    Time = new Date();
    Hours = Time.getHours() <= 9 ? "0" + Time.getHours() + ":" : Time.getHours()+ ":";
    Minutes = Time.getMinutes() <= 9 ? "0" + Time.getMinutes() + "" : Time.getMinutes();

    Kills = Entity.GetProp (LocalPlayer, "CPlayerResource", "m_iKills");
    Deaths = Entity.GetProp (LocalPlayer, "CPlayerResource", "m_iDeaths");
    KDR = Kills / (Deaths == 0 ? 1 : Deaths);

    Velocity = Entity.GetProp (LocalPlayer, "CBasePlayer", "m_vecVelocity[0]");
    Speed = Math.round (Math.sqrt (Velocity[0] * Velocity[0] + Velocity[1] * Velocity[1]));

    FPS = Math.round (1 / Globals.Frametime());
    Latency = Math.round (Local.Latency());

    // ---------------------------------------
    // Comment something you don't want to see

    TextArray = [
        "onetap",
        USERNAME,
        "delay: " + Latency + "ms",
        "fps: " + FPS,
        "K/D: " + KDR.toFixed(2),
        "V: " + (Speed <= 1 ? "(s)" : (Speed + " u/s"))
    ]
}

// ///////////////////////////////////////////////////////////////////

function draw () {
    var Font = Render.AddFont ("Bahnschrift", 10, 500);
    var Text = TextArray.join (" | ") // You can change this, but leave spaces from both sides

    var Size = Render.TextSizeCustom (Text, Font)[0] + 16;
    
    Render.FilledRect   (SCREEN[0] - Size - MARGIN.x, MARGIN.y, Size, 24, COLOR.Main);
    Render.Rect         (SCREEN[0] - Size - MARGIN.x, MARGIN.y, Size, 24, COLOR.Light);
    Render.Rect         (SCREEN[0] - Size - MARGIN.x - 1, MARGIN.y - 1, Size + 2, 26,   COLOR.Dark);
    Render.GradientRect (SCREEN[0] - Size - MARGIN.x + 1, MARGIN.y + 22, Size - 2, 1, 1, COLOR.Accent.concat(120), COLOR.Accent.concat(255)); // The numbers in concat() stand for alpha
    Render.StringCustom (SCREEN[0] - Size - MARGIN.x + 8, MARGIN.y + 3, 0,  Text, COLOR.Text, Font);
}

// ///////////////////////////////////////////////////////////////////

if (UI.GetValue("Misc", "PERFORMANCE & INFORMATION", "Information", "Watermark")) {
    UI.SetValue("Misc", "PERFORMANCE & INFORMATION", "Information", "Watermark", false)
}

// ///////////////////////////////////////////////////////////////////

Cheat.RegisterCallback ("Draw", "update");
Cheat.RegisterCallback ("Draw", "draw");
 
Дизайнер со стажем 30 лет Говард подтвердит
Забаненный
Статус
Оффлайн
Регистрация
13 Май 2021
Сообщения
235
Реакции[?]
101
Поинты[?]
0
Обратите внимание, пользователь заблокирован на форуме. Не рекомендуется проводить сделки.
Посмотреть вложение 165588

в этом скрипте нет UI элементов, всё управляется через код

также здесь нет (надеюсь) говнокода и гигантских строк, чтобы новичкам было проще понять код

JavaScript:
if (settings & (1 << 0))
    {
         text  += ("      | " +get.string("Custom Nick Name"));
    }

    if (settings & (1 << 11))
    {
         text  += ("      | " +usernamea);
    }

    if (settings & (1 << 1))
    {
         text  += ( " | "+fps+ " fps");
    }

    if (settings & (1 << 2))
    {
         text  += (" | " +ping+"ms");
    }

    if (settings & (1 << 5))
    {
         text  += (" | " +current_map+"");
    }

    if (settings & (1 << 6))
    {
         text  += (" | delay: " +tickrate+" ");
    }

    if (settings & (1 << 7))
    {
         text  += (" | speed: " +velstr+"");
    }

    if (settings & (1 << 10))
    {
         text  += (" | server ip: " +server+"");
    }

    if (settings & (1 << 8))
    {
         text  += (" | duck amount: " +duckAmountStr+"");
    }

    if (settings & (1 << 9))
    {
         text  += (" | enemies: " +enemyCountStr+"");
    }

    if (settings & (1 << 3))
    {
         text  += (" | "+get_kd+ " kdr ");
    }

    if (settings & (1 << 4))
    {
         text  += ( "| "+hours + minutes);
    }

    if (settings & (1 << 12))
    {
         text  += ( "| "+ hours + minutes + ":" + seconds);
    }
JavaScript:
var TextArray = [
        "onetap",
        USERNAME,
        "delay: " + Latency + "ms",
        "fps: " + FPS,
        "K/D: " + KDR.toFixed(2),
        "V: " + (Speed <= 1 ? "(s)" : (Speed + " u/s"))
    ];

var Text = TextArray.join (" | ");


JavaScript:
// / enQ /////////////////////////////////////////////////////////////

const SCREEN = Render.GetScreenSize();

const COLOR = {
    Main:   [ 32,  32,  36,  255 ],
    Dark:   [ 6,   6,   10,  255 ],
    Light:  [ 54,  54,  60,  255 ],
    Text:   [ 232, 232, 232, 255 ],
    Accent: [ 88,  66,  199 ],  // ONLY 3 NUMBERS
}

// ///////////////////////////////////////////////////////////////////

const USERNAME = Cheat.GetUsername();

const MARGIN = {x: 8, y: 8}  // You can change this

//

var LocalPlayer = Entity.GetLocalPlayer();

var Time; var Hours; var Minutes;
var Kills; var Deaths; var KDR;

var Velocity; var Speed;

var FPS; var Latency;

var TextArray = [];

// ///////////////////////////////////////////////////////////////////

function update () {
    Time = new Date();
    Hours = Time.getHours() <= 9 ? "0" + Time.getHours() + ":" : Time.getHours()+ ":";
    Minutes = Time.getMinutes() <= 9 ? "0" + Time.getMinutes() + "" : Time.getMinutes();

    Kills = Entity.GetProp (LocalPlayer, "CPlayerResource", "m_iKills");
    Deaths = Entity.GetProp (LocalPlayer, "CPlayerResource", "m_iDeaths");
    KDR = Kills / (Deaths == 0 ? 1 : Deaths);

    Velocity = Entity.GetProp (LocalPlayer, "CBasePlayer", "m_vecVelocity[0]");
    Speed = Math.round (Math.sqrt (Velocity[0] * Velocity[0] + Velocity[1] * Velocity[1]));

    FPS = Math.round (1 / Globals.Frametime());
    Latency = Math.round (Local.Latency());

    // ---------------------------------------
    // Comment something you don't want to see

    TextArray = [
        "onetap",
        USERNAME,
        "delay: " + Latency + "ms",
        "fps: " + FPS,
        "K/D: " + KDR.toFixed(2),
        "V: " + (Speed <= 1 ? "(s)" : (Speed + " u/s"))
    ]
}

// ///////////////////////////////////////////////////////////////////

function draw () {
    var Font = Render.AddFont ("Bahnschrift", 10, 500);
    var Text = TextArray.join (" | ") // You can change this, but leave spaces from both sides

    var Size = Render.TextSizeCustom (Text, Font)[0] + 16;
   
    Render.FilledRect   (SCREEN[0] - Size - MARGIN.x, MARGIN.y, Size, 24, COLOR.Main);
    Render.Rect         (SCREEN[0] - Size - MARGIN.x, MARGIN.y, Size, 24, COLOR.Light);
    Render.Rect         (SCREEN[0] - Size - MARGIN.x - 1, MARGIN.y - 1, Size + 2, 26,   COLOR.Dark);
    Render.GradientRect (SCREEN[0] - Size - MARGIN.x + 1, MARGIN.y + 22, Size - 2, 1, 1, COLOR.Accent.concat(120), COLOR.Accent.concat(255)); // The numbers in concat() stand for alpha
    Render.StringCustom (SCREEN[0] - Size - MARGIN.x + 8, MARGIN.y + 3, 0,  Text, COLOR.Text, Font);
}

// ///////////////////////////////////////////////////////////////////

if (UI.GetValue("Misc", "PERFORMANCE & INFORMATION", "Information", "Watermark")) {
    UI.SetValue("Misc", "PERFORMANCE & INFORMATION", "Information", "Watermark", false)
}

// ///////////////////////////////////////////////////////////////////

Cheat.RegisterCallback ("Draw", "update");
Cheat.RegisterCallback ("Draw", "draw");
Ты пойман за руку как дешевка 1628620103394.png
 
Участник
Статус
Оффлайн
Регистрация
21 Сен 2019
Сообщения
1,003
Реакции[?]
183
Поинты[?]
9K
Посмотреть вложение 165588

в этом скрипте нет UI элементов, всё управляется через код

также здесь нет (надеюсь) говнокода и гигантских строк, чтобы новичкам было проще понять код

JavaScript:
if (settings & (1 << 0))
    {
         text  += ("      | " +get.string("Custom Nick Name"));
    }

    if (settings & (1 << 11))
    {
         text  += ("      | " +usernamea);
    }

    if (settings & (1 << 1))
    {
         text  += ( " | "+fps+ " fps");
    }

    if (settings & (1 << 2))
    {
         text  += (" | " +ping+"ms");
    }

    if (settings & (1 << 5))
    {
         text  += (" | " +current_map+"");
    }

    if (settings & (1 << 6))
    {
         text  += (" | delay: " +tickrate+" ");
    }

    if (settings & (1 << 7))
    {
         text  += (" | speed: " +velstr+"");
    }

    if (settings & (1 << 10))
    {
         text  += (" | server ip: " +server+"");
    }

    if (settings & (1 << 8))
    {
         text  += (" | duck amount: " +duckAmountStr+"");
    }

    if (settings & (1 << 9))
    {
         text  += (" | enemies: " +enemyCountStr+"");
    }

    if (settings & (1 << 3))
    {
         text  += (" | "+get_kd+ " kdr ");
    }

    if (settings & (1 << 4))
    {
         text  += ( "| "+hours + minutes);
    }

    if (settings & (1 << 12))
    {
         text  += ( "| "+ hours + minutes + ":" + seconds);
    }
JavaScript:
var TextArray = [
        "onetap",
        USERNAME,
        "delay: " + Latency + "ms",
        "fps: " + FPS,
        "K/D: " + KDR.toFixed(2),
        "V: " + (Speed <= 1 ? "(s)" : (Speed + " u/s"))
    ];

var Text = TextArray.join (" | ");


JavaScript:
// / enQ /////////////////////////////////////////////////////////////

const SCREEN = Render.GetScreenSize();

const COLOR = {
    Main:   [ 32,  32,  36,  255 ],
    Dark:   [ 6,   6,   10,  255 ],
    Light:  [ 54,  54,  60,  255 ],
    Text:   [ 232, 232, 232, 255 ],
    Accent: [ 88,  66,  199 ],  // ONLY 3 NUMBERS
}

// ///////////////////////////////////////////////////////////////////

const USERNAME = Cheat.GetUsername();

const MARGIN = {x: 8, y: 8}  // You can change this

//

var LocalPlayer = Entity.GetLocalPlayer();

var Time; var Hours; var Minutes;
var Kills; var Deaths; var KDR;

var Velocity; var Speed;

var FPS; var Latency;

var TextArray = [];

// ///////////////////////////////////////////////////////////////////

function update () {
    Time = new Date();
    Hours = Time.getHours() <= 9 ? "0" + Time.getHours() + ":" : Time.getHours()+ ":";
    Minutes = Time.getMinutes() <= 9 ? "0" + Time.getMinutes() + "" : Time.getMinutes();

    Kills = Entity.GetProp (LocalPlayer, "CPlayerResource", "m_iKills");
    Deaths = Entity.GetProp (LocalPlayer, "CPlayerResource", "m_iDeaths");
    KDR = Kills / (Deaths == 0 ? 1 : Deaths);

    Velocity = Entity.GetProp (LocalPlayer, "CBasePlayer", "m_vecVelocity[0]");
    Speed = Math.round (Math.sqrt (Velocity[0] * Velocity[0] + Velocity[1] * Velocity[1]));

    FPS = Math.round (1 / Globals.Frametime());
    Latency = Math.round (Local.Latency());

    // ---------------------------------------
    // Comment something you don't want to see

    TextArray = [
        "onetap",
        USERNAME,
        "delay: " + Latency + "ms",
        "fps: " + FPS,
        "K/D: " + KDR.toFixed(2),
        "V: " + (Speed <= 1 ? "(s)" : (Speed + " u/s"))
    ]
}

// ///////////////////////////////////////////////////////////////////

function draw () {
    var Font = Render.AddFont ("Bahnschrift", 10, 500);
    var Text = TextArray.join (" | ") // You can change this, but leave spaces from both sides

    var Size = Render.TextSizeCustom (Text, Font)[0] + 16;
   
    Render.FilledRect   (SCREEN[0] - Size - MARGIN.x, MARGIN.y, Size, 24, COLOR.Main);
    Render.Rect         (SCREEN[0] - Size - MARGIN.x, MARGIN.y, Size, 24, COLOR.Light);
    Render.Rect         (SCREEN[0] - Size - MARGIN.x - 1, MARGIN.y - 1, Size + 2, 26,   COLOR.Dark);
    Render.GradientRect (SCREEN[0] - Size - MARGIN.x + 1, MARGIN.y + 22, Size - 2, 1, 1, COLOR.Accent.concat(120), COLOR.Accent.concat(255)); // The numbers in concat() stand for alpha
    Render.StringCustom (SCREEN[0] - Size - MARGIN.x + 8, MARGIN.y + 3, 0,  Text, COLOR.Text, Font);
}

// ///////////////////////////////////////////////////////////////////

if (UI.GetValue("Misc", "PERFORMANCE & INFORMATION", "Information", "Watermark")) {
    UI.SetValue("Misc", "PERFORMANCE & INFORMATION", "Information", "Watermark", false)
}

// ///////////////////////////////////////////////////////////////////

Cheat.RegisterCallback ("Draw", "update");
Cheat.RegisterCallback ("Draw", "draw");
ну получается я пидарас
 
..................................................
Участник
Статус
Оффлайн
Регистрация
13 Авг 2020
Сообщения
990
Реакции[?]
249
Поинты[?]
25K
А можно быть нормальным, но как пидорас?
 
Участник
Статус
Оффлайн
Регистрация
29 Дек 2019
Сообщения
381
Реакции[?]
168
Поинты[?]
3K
Посмотреть вложение 165588

в этом скрипте нет UI элементов, всё управляется через код

также здесь нет (надеюсь) говнокода и гигантских строк, чтобы новичкам было проще понять код

JavaScript:
if (settings & (1 << 0))
    {
         text  += ("      | " +get.string("Custom Nick Name"));
    }

    if (settings & (1 << 11))
    {
         text  += ("      | " +usernamea);
    }

    if (settings & (1 << 1))
    {
         text  += ( " | "+fps+ " fps");
    }

    if (settings & (1 << 2))
    {
         text  += (" | " +ping+"ms");
    }

    if (settings & (1 << 5))
    {
         text  += (" | " +current_map+"");
    }

    if (settings & (1 << 6))
    {
         text  += (" | delay: " +tickrate+" ");
    }

    if (settings & (1 << 7))
    {
         text  += (" | speed: " +velstr+"");
    }

    if (settings & (1 << 10))
    {
         text  += (" | server ip: " +server+"");
    }

    if (settings & (1 << 8))
    {
         text  += (" | duck amount: " +duckAmountStr+"");
    }

    if (settings & (1 << 9))
    {
         text  += (" | enemies: " +enemyCountStr+"");
    }

    if (settings & (1 << 3))
    {
         text  += (" | "+get_kd+ " kdr ");
    }

    if (settings & (1 << 4))
    {
         text  += ( "| "+hours + minutes);
    }

    if (settings & (1 << 12))
    {
         text  += ( "| "+ hours + minutes + ":" + seconds);
    }
JavaScript:
var TextArray = [
        "onetap",
        USERNAME,
        "delay: " + Latency + "ms",
        "fps: " + FPS,
        "K/D: " + KDR.toFixed(2),
        "V: " + (Speed <= 1 ? "(s)" : (Speed + " u/s"))
    ];

var Text = TextArray.join (" | ");


JavaScript:
// / enQ /////////////////////////////////////////////////////////////

const SCREEN = Render.GetScreenSize();

const COLOR = {
    Main:   [ 32,  32,  36,  255 ],
    Dark:   [ 6,   6,   10,  255 ],
    Light:  [ 54,  54,  60,  255 ],
    Text:   [ 232, 232, 232, 255 ],
    Accent: [ 88,  66,  199 ],  // ONLY 3 NUMBERS
}

// ///////////////////////////////////////////////////////////////////

const USERNAME = Cheat.GetUsername();

const MARGIN = {x: 8, y: 8}  // You can change this

//

var LocalPlayer = Entity.GetLocalPlayer();

var Time; var Hours; var Minutes;
var Kills; var Deaths; var KDR;

var Velocity; var Speed;

var FPS; var Latency;

var TextArray = [];

// ///////////////////////////////////////////////////////////////////

function update () {
    Time = new Date();
    Hours = Time.getHours() <= 9 ? "0" + Time.getHours() + ":" : Time.getHours()+ ":";
    Minutes = Time.getMinutes() <= 9 ? "0" + Time.getMinutes() + "" : Time.getMinutes();

    Kills = Entity.GetProp (LocalPlayer, "CPlayerResource", "m_iKills");
    Deaths = Entity.GetProp (LocalPlayer, "CPlayerResource", "m_iDeaths");
    KDR = Kills / (Deaths == 0 ? 1 : Deaths);

    Velocity = Entity.GetProp (LocalPlayer, "CBasePlayer", "m_vecVelocity[0]");
    Speed = Math.round (Math.sqrt (Velocity[0] * Velocity[0] + Velocity[1] * Velocity[1]));

    FPS = Math.round (1 / Globals.Frametime());
    Latency = Math.round (Local.Latency());

    // ---------------------------------------
    // Comment something you don't want to see

    TextArray = [
        "onetap",
        USERNAME,
        "delay: " + Latency + "ms",
        "fps: " + FPS,
        "K/D: " + KDR.toFixed(2),
        "V: " + (Speed <= 1 ? "(s)" : (Speed + " u/s"))
    ]
}

// ///////////////////////////////////////////////////////////////////

function draw () {
    var Font = Render.AddFont ("Bahnschrift", 10, 500);
    var Text = TextArray.join (" | ") // You can change this, but leave spaces from both sides

    var Size = Render.TextSizeCustom (Text, Font)[0] + 16;
   
    Render.FilledRect   (SCREEN[0] - Size - MARGIN.x, MARGIN.y, Size, 24, COLOR.Main);
    Render.Rect         (SCREEN[0] - Size - MARGIN.x, MARGIN.y, Size, 24, COLOR.Light);
    Render.Rect         (SCREEN[0] - Size - MARGIN.x - 1, MARGIN.y - 1, Size + 2, 26,   COLOR.Dark);
    Render.GradientRect (SCREEN[0] - Size - MARGIN.x + 1, MARGIN.y + 22, Size - 2, 1, 1, COLOR.Accent.concat(120), COLOR.Accent.concat(255)); // The numbers in concat() stand for alpha
    Render.StringCustom (SCREEN[0] - Size - MARGIN.x + 8, MARGIN.y + 3, 0,  Text, COLOR.Text, Font);
}

// ///////////////////////////////////////////////////////////////////

if (UI.GetValue("Misc", "PERFORMANCE & INFORMATION", "Information", "Watermark")) {
    UI.SetValue("Misc", "PERFORMANCE & INFORMATION", "Information", "Watermark", false)
}

// ///////////////////////////////////////////////////////////////////

Cheat.RegisterCallback ("Draw", "update");
Cheat.RegisterCallback ("Draw", "draw");
хорош топ луашка!
 
Нестандартное звание?
Пользователь
Статус
Оффлайн
Регистрация
23 Июл 2021
Сообщения
421
Реакции[?]
81
Поинты[?]
2K
Посмотреть вложение 165588

в этом скрипте нет UI элементов, всё управляется через код

также здесь нет (надеюсь) говнокода и гигантских строк, чтобы новичкам было проще понять код

JavaScript:
if (settings & (1 << 0))
    {
         text  += ("      | " +get.string("Custom Nick Name"));
    }

    if (settings & (1 << 11))
    {
         text  += ("      | " +usernamea);
    }

    if (settings & (1 << 1))
    {
         text  += ( " | "+fps+ " fps");
    }

    if (settings & (1 << 2))
    {
         text  += (" | " +ping+"ms");
    }

    if (settings & (1 << 5))
    {
         text  += (" | " +current_map+"");
    }

    if (settings & (1 << 6))
    {
         text  += (" | delay: " +tickrate+" ");
    }

    if (settings & (1 << 7))
    {
         text  += (" | speed: " +velstr+"");
    }

    if (settings & (1 << 10))
    {
         text  += (" | server ip: " +server+"");
    }

    if (settings & (1 << 8))
    {
         text  += (" | duck amount: " +duckAmountStr+"");
    }

    if (settings & (1 << 9))
    {
         text  += (" | enemies: " +enemyCountStr+"");
    }

    if (settings & (1 << 3))
    {
         text  += (" | "+get_kd+ " kdr ");
    }

    if (settings & (1 << 4))
    {
         text  += ( "| "+hours + minutes);
    }

    if (settings & (1 << 12))
    {
         text  += ( "| "+ hours + minutes + ":" + seconds);
    }
JavaScript:
var TextArray = [
        "onetap",
        USERNAME,
        "delay: " + Latency + "ms",
        "fps: " + FPS,
        "K/D: " + KDR.toFixed(2),
        "V: " + (Speed <= 1 ? "(s)" : (Speed + " u/s"))
    ];

var Text = TextArray.join (" | ");


JavaScript:
// / enQ /////////////////////////////////////////////////////////////

const SCREEN = Render.GetScreenSize();

const COLOR = {
    Main:   [ 32,  32,  36,  255 ],
    Dark:   [ 6,   6,   10,  255 ],
    Light:  [ 54,  54,  60,  255 ],
    Text:   [ 232, 232, 232, 255 ],
    Accent: [ 88,  66,  199 ],  // ONLY 3 NUMBERS
}

// ///////////////////////////////////////////////////////////////////

const USERNAME = Cheat.GetUsername();

const MARGIN = {x: 8, y: 8}  // You can change this

//

var LocalPlayer = Entity.GetLocalPlayer();

var Time; var Hours; var Minutes;
var Kills; var Deaths; var KDR;

var Velocity; var Speed;

var FPS; var Latency;

var TextArray = [];

// ///////////////////////////////////////////////////////////////////

function update () {
    Time = new Date();
    Hours = Time.getHours() <= 9 ? "0" + Time.getHours() + ":" : Time.getHours()+ ":";
    Minutes = Time.getMinutes() <= 9 ? "0" + Time.getMinutes() + "" : Time.getMinutes();

    Kills = Entity.GetProp (LocalPlayer, "CPlayerResource", "m_iKills");
    Deaths = Entity.GetProp (LocalPlayer, "CPlayerResource", "m_iDeaths");
    KDR = Kills / (Deaths == 0 ? 1 : Deaths);

    Velocity = Entity.GetProp (LocalPlayer, "CBasePlayer", "m_vecVelocity[0]");
    Speed = Math.round (Math.sqrt (Velocity[0] * Velocity[0] + Velocity[1] * Velocity[1]));

    FPS = Math.round (1 / Globals.Frametime());
    Latency = Math.round (Local.Latency());

    // ---------------------------------------
    // Comment something you don't want to see

    TextArray = [
        "onetap",
        USERNAME,
        "delay: " + Latency + "ms",
        "fps: " + FPS,
        "K/D: " + KDR.toFixed(2),
        "V: " + (Speed <= 1 ? "(s)" : (Speed + " u/s"))
    ]
}

// ///////////////////////////////////////////////////////////////////

function draw () {
    var Font = Render.AddFont ("Bahnschrift", 10, 500);
    var Text = TextArray.join (" | ") // You can change this, but leave spaces from both sides

    var Size = Render.TextSizeCustom (Text, Font)[0] + 16;
   
    Render.FilledRect   (SCREEN[0] - Size - MARGIN.x, MARGIN.y, Size, 24, COLOR.Main);
    Render.Rect         (SCREEN[0] - Size - MARGIN.x, MARGIN.y, Size, 24, COLOR.Light);
    Render.Rect         (SCREEN[0] - Size - MARGIN.x - 1, MARGIN.y - 1, Size + 2, 26,   COLOR.Dark);
    Render.GradientRect (SCREEN[0] - Size - MARGIN.x + 1, MARGIN.y + 22, Size - 2, 1, 1, COLOR.Accent.concat(120), COLOR.Accent.concat(255)); // The numbers in concat() stand for alpha
    Render.StringCustom (SCREEN[0] - Size - MARGIN.x + 8, MARGIN.y + 3, 0,  Text, COLOR.Text, Font);
}

// ///////////////////////////////////////////////////////////////////

if (UI.GetValue("Misc", "PERFORMANCE & INFORMATION", "Information", "Watermark")) {
    UI.SetValue("Misc", "PERFORMANCE & INFORMATION", "Information", "Watermark", false)
}

// ///////////////////////////////////////////////////////////////////

Cheat.RegisterCallback ("Draw", "update");
Cheat.RegisterCallback ("Draw", "draw");
Like
 
Забаненный
Статус
Оффлайн
Регистрация
8 Июл 2021
Сообщения
45
Реакции[?]
26
Поинты[?]
0
Обратите внимание, пользователь заблокирован на форуме. Не рекомендуется проводить сделки.
круто!
 
Эксперт
Статус
Оффлайн
Регистрация
24 Апр 2018
Сообщения
1,490
Реакции[?]
929
Поинты[?]
67K
1-е: Почему ты получаешь локалплеера при запуске скрипта?
2-е: Время не обязательно получать каждый тик, можно лишь каждую секунду. (придирка злая)
3-е: Зачем ты через какой-то массив делаешь рендер инфы, когда можно использовать string format. Почему метод с массивом "правильный"?

Но код конечно лучше большинства скриптов.
 
Дизайнер
Статус
Оффлайн
Регистрация
18 Авг 2017
Сообщения
1,931
Реакции[?]
2,258
Поинты[?]
146K
Товары в продаже
1
1-е: Почему ты получаешь локалплеера при запуске скрипта?
обновлять локалплеера каждый тик не охота (но мб можно через эвент сделать, хз)
к тому же мне показалось, что скрипт работает нормально, хотя не должен

3-е: Зачем ты через какой-то массив делаешь рендер инфы, когда можно использовать string format. Почему метод с массивом "правильный"?
точно не знаю про какой string.format ты говоришь, но если ты про ${ }, то у меня он не работает

все равно спасибо за придирки, полезная инфа как никак
 
꧁꧂
Участник
Статус
Оффлайн
Регистрация
23 Мар 2020
Сообщения
549
Реакции[?]
356
Поинты[?]
10K
дружище, а ты попробуй сделать мультидропдаун, чтобы можно было включать и выключать эти элементы по отдельности, и без щиткода. я скорее всего знаю, как ты это сделаешь, но мне все равно интересно)
 
Дизайнер
Статус
Оффлайн
Регистрация
18 Авг 2017
Сообщения
1,931
Реакции[?]
2,258
Поинты[?]
146K
Товары в продаже
1
дружище, а ты попробуй сделать мультидропдаун, чтобы можно было включать и выключать эти элементы по отдельности, и без щиткода. я скорее всего знаю, как ты это сделаешь, но мне все равно интересно)
окей, завтра сделаю
 
Эксперт
Статус
Оффлайн
Регистрация
13 Сен 2020
Сообщения
1,415
Реакции[?]
713
Поинты[?]
10K
Посмотреть вложение 165588

в этом скрипте нет UI элементов, всё управляется через код

также здесь нет (надеюсь) говнокода и гигантских строк, чтобы новичкам было проще понять код

JavaScript:
if (settings & (1 << 0))
    {
         text  += ("      | " +get.string("Custom Nick Name"));
    }

    if (settings & (1 << 11))
    {
         text  += ("      | " +usernamea);
    }

    if (settings & (1 << 1))
    {
         text  += ( " | "+fps+ " fps");
    }

    if (settings & (1 << 2))
    {
         text  += (" | " +ping+"ms");
    }

    if (settings & (1 << 5))
    {
         text  += (" | " +current_map+"");
    }

    if (settings & (1 << 6))
    {
         text  += (" | delay: " +tickrate+" ");
    }

    if (settings & (1 << 7))
    {
         text  += (" | speed: " +velstr+"");
    }

    if (settings & (1 << 10))
    {
         text  += (" | server ip: " +server+"");
    }

    if (settings & (1 << 8))
    {
         text  += (" | duck amount: " +duckAmountStr+"");
    }

    if (settings & (1 << 9))
    {
         text  += (" | enemies: " +enemyCountStr+"");
    }

    if (settings & (1 << 3))
    {
         text  += (" | "+get_kd+ " kdr ");
    }

    if (settings & (1 << 4))
    {
         text  += ( "| "+hours + minutes);
    }

    if (settings & (1 << 12))
    {
         text  += ( "| "+ hours + minutes + ":" + seconds);
    }
JavaScript:
var TextArray = [
        "onetap",
        USERNAME,
        "delay: " + Latency + "ms",
        "fps: " + FPS,
        "K/D: " + KDR.toFixed(2),
        "V: " + (Speed <= 1 ? "(s)" : (Speed + " u/s"))
    ];

var Text = TextArray.join (" | ");


JavaScript:
// / enQ /////////////////////////////////////////////////////////////

const SCREEN = Render.GetScreenSize();

const COLOR = {
    Main:   [ 32,  32,  36,  255 ],
    Dark:   [ 6,   6,   10,  255 ],
    Light:  [ 54,  54,  60,  255 ],
    Text:   [ 232, 232, 232, 255 ],
    Accent: [ 88,  66,  199 ],  // ONLY 3 NUMBERS
}

// ///////////////////////////////////////////////////////////////////

const USERNAME = Cheat.GetUsername();

const MARGIN = {x: 8, y: 8}  // You can change this

//

var LocalPlayer = Entity.GetLocalPlayer();

var Time; var Hours; var Minutes;
var Kills; var Deaths; var KDR;

var Velocity; var Speed;

var FPS; var Latency;

var TextArray = [];

// ///////////////////////////////////////////////////////////////////

function update () {
    Time = new Date();
    Hours = Time.getHours() <= 9 ? "0" + Time.getHours() + ":" : Time.getHours()+ ":";
    Minutes = Time.getMinutes() <= 9 ? "0" + Time.getMinutes() + "" : Time.getMinutes();

    Kills = Entity.GetProp (LocalPlayer, "CPlayerResource", "m_iKills");
    Deaths = Entity.GetProp (LocalPlayer, "CPlayerResource", "m_iDeaths");
    KDR = Kills / (Deaths == 0 ? 1 : Deaths);

    Velocity = Entity.GetProp (LocalPlayer, "CBasePlayer", "m_vecVelocity[0]");
    Speed = Math.round (Math.sqrt (Velocity[0] * Velocity[0] + Velocity[1] * Velocity[1]));

    FPS = Math.round (1 / Globals.Frametime());
    Latency = Math.round (Local.Latency());

    // ---------------------------------------
    // Comment something you don't want to see

    TextArray = [
        "onetap",
        USERNAME,
        "delay: " + Latency + "ms",
        "fps: " + FPS,
        "K/D: " + KDR.toFixed(2),
        "V: " + (Speed <= 1 ? "(s)" : (Speed + " u/s"))
    ]
}

// ///////////////////////////////////////////////////////////////////

function draw () {
    var Font = Render.AddFont ("Bahnschrift", 10, 500);
    var Text = TextArray.join (" | ") // You can change this, but leave spaces from both sides

    var Size = Render.TextSizeCustom (Text, Font)[0] + 16;
   
    Render.FilledRect   (SCREEN[0] - Size - MARGIN.x, MARGIN.y, Size, 24, COLOR.Main);
    Render.Rect         (SCREEN[0] - Size - MARGIN.x, MARGIN.y, Size, 24, COLOR.Light);
    Render.Rect         (SCREEN[0] - Size - MARGIN.x - 1, MARGIN.y - 1, Size + 2, 26,   COLOR.Dark);
    Render.GradientRect (SCREEN[0] - Size - MARGIN.x + 1, MARGIN.y + 22, Size - 2, 1, 1, COLOR.Accent.concat(120), COLOR.Accent.concat(255)); // The numbers in concat() stand for alpha
    Render.StringCustom (SCREEN[0] - Size - MARGIN.x + 8, MARGIN.y + 3, 0,  Text, COLOR.Text, Font);
}

// ///////////////////////////////////////////////////////////////////

if (UI.GetValue("Misc", "PERFORMANCE & INFORMATION", "Information", "Watermark")) {
    UI.SetValue("Misc", "PERFORMANCE & INFORMATION", "Information", "Watermark", false)
}

// ///////////////////////////////////////////////////////////////////

Cheat.RegisterCallback ("Draw", "update");
Cheat.RegisterCallback ("Draw", "draw");
Ты что кодер
Посмотреть вложение 165588

в этом скрипте нет UI элементов, всё управляется через код

также здесь нет (надеюсь) говнокода и гигантских строк, чтобы новичкам было проще понять код

JavaScript:
if (settings & (1 << 0))
    {
         text  += ("      | " +get.string("Custom Nick Name"));
    }

    if (settings & (1 << 11))
    {
         text  += ("      | " +usernamea);
    }

    if (settings & (1 << 1))
    {
         text  += ( " | "+fps+ " fps");
    }

    if (settings & (1 << 2))
    {
         text  += (" | " +ping+"ms");
    }

    if (settings & (1 << 5))
    {
         text  += (" | " +current_map+"");
    }

    if (settings & (1 << 6))
    {
         text  += (" | delay: " +tickrate+" ");
    }

    if (settings & (1 << 7))
    {
         text  += (" | speed: " +velstr+"");
    }

    if (settings & (1 << 10))
    {
         text  += (" | server ip: " +server+"");
    }

    if (settings & (1 << 8))
    {
         text  += (" | duck amount: " +duckAmountStr+"");
    }

    if (settings & (1 << 9))
    {
         text  += (" | enemies: " +enemyCountStr+"");
    }

    if (settings & (1 << 3))
    {
         text  += (" | "+get_kd+ " kdr ");
    }

    if (settings & (1 << 4))
    {
         text  += ( "| "+hours + minutes);
    }

    if (settings & (1 << 12))
    {
         text  += ( "| "+ hours + minutes + ":" + seconds);
    }
JavaScript:
var TextArray = [
        "onetap",
        USERNAME,
        "delay: " + Latency + "ms",
        "fps: " + FPS,
        "K/D: " + KDR.toFixed(2),
        "V: " + (Speed <= 1 ? "(s)" : (Speed + " u/s"))
    ];

var Text = TextArray.join (" | ");


JavaScript:
// / enQ /////////////////////////////////////////////////////////////

const SCREEN = Render.GetScreenSize();

const COLOR = {
    Main:   [ 32,  32,  36,  255 ],
    Dark:   [ 6,   6,   10,  255 ],
    Light:  [ 54,  54,  60,  255 ],
    Text:   [ 232, 232, 232, 255 ],
    Accent: [ 88,  66,  199 ],  // ONLY 3 NUMBERS
}

// ///////////////////////////////////////////////////////////////////

const USERNAME = Cheat.GetUsername();

const MARGIN = {x: 8, y: 8}  // You can change this

//

var LocalPlayer = Entity.GetLocalPlayer();

var Time; var Hours; var Minutes;
var Kills; var Deaths; var KDR;

var Velocity; var Speed;

var FPS; var Latency;

var TextArray = [];

// ///////////////////////////////////////////////////////////////////

function update () {
    Time = new Date();
    Hours = Time.getHours() <= 9 ? "0" + Time.getHours() + ":" : Time.getHours()+ ":";
    Minutes = Time.getMinutes() <= 9 ? "0" + Time.getMinutes() + "" : Time.getMinutes();

    Kills = Entity.GetProp (LocalPlayer, "CPlayerResource", "m_iKills");
    Deaths = Entity.GetProp (LocalPlayer, "CPlayerResource", "m_iDeaths");
    KDR = Kills / (Deaths == 0 ? 1 : Deaths);

    Velocity = Entity.GetProp (LocalPlayer, "CBasePlayer", "m_vecVelocity[0]");
    Speed = Math.round (Math.sqrt (Velocity[0] * Velocity[0] + Velocity[1] * Velocity[1]));

    FPS = Math.round (1 / Globals.Frametime());
    Latency = Math.round (Local.Latency());

    // ---------------------------------------
    // Comment something you don't want to see

    TextArray = [
        "onetap",
        USERNAME,
        "delay: " + Latency + "ms",
        "fps: " + FPS,
        "K/D: " + KDR.toFixed(2),
        "V: " + (Speed <= 1 ? "(s)" : (Speed + " u/s"))
    ]
}

// ///////////////////////////////////////////////////////////////////

function draw () {
    var Font = Render.AddFont ("Bahnschrift", 10, 500);
    var Text = TextArray.join (" | ") // You can change this, but leave spaces from both sides

    var Size = Render.TextSizeCustom (Text, Font)[0] + 16;
   
    Render.FilledRect   (SCREEN[0] - Size - MARGIN.x, MARGIN.y, Size, 24, COLOR.Main);
    Render.Rect         (SCREEN[0] - Size - MARGIN.x, MARGIN.y, Size, 24, COLOR.Light);
    Render.Rect         (SCREEN[0] - Size - MARGIN.x - 1, MARGIN.y - 1, Size + 2, 26,   COLOR.Dark);
    Render.GradientRect (SCREEN[0] - Size - MARGIN.x + 1, MARGIN.y + 22, Size - 2, 1, 1, COLOR.Accent.concat(120), COLOR.Accent.concat(255)); // The numbers in concat() stand for alpha
    Render.StringCustom (SCREEN[0] - Size - MARGIN.x + 8, MARGIN.y + 3, 0,  Text, COLOR.Text, Font);
}

// ///////////////////////////////////////////////////////////////////

if (UI.GetValue("Misc", "PERFORMANCE & INFORMATION", "Information", "Watermark")) {
    UI.SetValue("Misc", "PERFORMANCE & INFORMATION", "Information", "Watermark", false)
}

// ///////////////////////////////////////////////////////////////////

Cheat.RegisterCallback ("Draw", "update");
Cheat.RegisterCallback ("Draw", "draw");
Ты что кодер
 
моргенштерн
Пользователь
Статус
Оффлайн
Регистрация
2 Дек 2017
Сообщения
288
Реакции[?]
96
Поинты[?]
0
Посмотреть вложение 165588

в этом скрипте нет UI элементов, всё управляется через код

также здесь нет (надеюсь) говнокода и гигантских строк, чтобы новичкам было проще понять код

JavaScript:
if (settings & (1 << 0))
    {
         text  += ("      | " +get.string("Custom Nick Name"));
    }

    if (settings & (1 << 11))
    {
         text  += ("      | " +usernamea);
    }

    if (settings & (1 << 1))
    {
         text  += ( " | "+fps+ " fps");
    }

    if (settings & (1 << 2))
    {
         text  += (" | " +ping+"ms");
    }

    if (settings & (1 << 5))
    {
         text  += (" | " +current_map+"");
    }

    if (settings & (1 << 6))
    {
         text  += (" | delay: " +tickrate+" ");
    }

    if (settings & (1 << 7))
    {
         text  += (" | speed: " +velstr+"");
    }

    if (settings & (1 << 10))
    {
         text  += (" | server ip: " +server+"");
    }

    if (settings & (1 << 8))
    {
         text  += (" | duck amount: " +duckAmountStr+"");
    }

    if (settings & (1 << 9))
    {
         text  += (" | enemies: " +enemyCountStr+"");
    }

    if (settings & (1 << 3))
    {
         text  += (" | "+get_kd+ " kdr ");
    }

    if (settings & (1 << 4))
    {
         text  += ( "| "+hours + minutes);
    }

    if (settings & (1 << 12))
    {
         text  += ( "| "+ hours + minutes + ":" + seconds);
    }
JavaScript:
var TextArray = [
        "onetap",
        USERNAME,
        "delay: " + Latency + "ms",
        "fps: " + FPS,
        "K/D: " + KDR.toFixed(2),
        "V: " + (Speed <= 1 ? "(s)" : (Speed + " u/s"))
    ];

var Text = TextArray.join (" | ");


JavaScript:
// / enQ /////////////////////////////////////////////////////////////

const SCREEN = Render.GetScreenSize();

const COLOR = {
    Main:   [ 32,  32,  36,  255 ],
    Dark:   [ 6,   6,   10,  255 ],
    Light:  [ 54,  54,  60,  255 ],
    Text:   [ 232, 232, 232, 255 ],
    Accent: [ 88,  66,  199 ],  // ONLY 3 NUMBERS
}

// ///////////////////////////////////////////////////////////////////

const USERNAME = Cheat.GetUsername();

const MARGIN = {x: 8, y: 8}  // You can change this

//

var LocalPlayer = Entity.GetLocalPlayer();

var Time; var Hours; var Minutes;
var Kills; var Deaths; var KDR;

var Velocity; var Speed;

var FPS; var Latency;

var TextArray = [];

// ///////////////////////////////////////////////////////////////////

function update () {
    Time = new Date();
    Hours = Time.getHours() <= 9 ? "0" + Time.getHours() + ":" : Time.getHours()+ ":";
    Minutes = Time.getMinutes() <= 9 ? "0" + Time.getMinutes() + "" : Time.getMinutes();

    Kills = Entity.GetProp (LocalPlayer, "CPlayerResource", "m_iKills");
    Deaths = Entity.GetProp (LocalPlayer, "CPlayerResource", "m_iDeaths");
    KDR = Kills / (Deaths == 0 ? 1 : Deaths);

    Velocity = Entity.GetProp (LocalPlayer, "CBasePlayer", "m_vecVelocity[0]");
    Speed = Math.round (Math.sqrt (Velocity[0] * Velocity[0] + Velocity[1] * Velocity[1]));

    FPS = Math.round (1 / Globals.Frametime());
    Latency = Math.round (Local.Latency());

    // ---------------------------------------
    // Comment something you don't want to see

    TextArray = [
        "onetap",
        USERNAME,
        "delay: " + Latency + "ms",
        "fps: " + FPS,
        "K/D: " + KDR.toFixed(2),
        "V: " + (Speed <= 1 ? "(s)" : (Speed + " u/s"))
    ]
}

// ///////////////////////////////////////////////////////////////////

function draw () {
    var Font = Render.AddFont ("Bahnschrift", 10, 500);
    var Text = TextArray.join (" | ") // You can change this, but leave spaces from both sides

    var Size = Render.TextSizeCustom (Text, Font)[0] + 16;
   
    Render.FilledRect   (SCREEN[0] - Size - MARGIN.x, MARGIN.y, Size, 24, COLOR.Main);
    Render.Rect         (SCREEN[0] - Size - MARGIN.x, MARGIN.y, Size, 24, COLOR.Light);
    Render.Rect         (SCREEN[0] - Size - MARGIN.x - 1, MARGIN.y - 1, Size + 2, 26,   COLOR.Dark);
    Render.GradientRect (SCREEN[0] - Size - MARGIN.x + 1, MARGIN.y + 22, Size - 2, 1, 1, COLOR.Accent.concat(120), COLOR.Accent.concat(255)); // The numbers in concat() stand for alpha
    Render.StringCustom (SCREEN[0] - Size - MARGIN.x + 8, MARGIN.y + 3, 0,  Text, COLOR.Text, Font);
}

// ///////////////////////////////////////////////////////////////////

if (UI.GetValue("Misc", "PERFORMANCE & INFORMATION", "Information", "Watermark")) {
    UI.SetValue("Misc", "PERFORMANCE & INFORMATION", "Information", "Watermark", false)
}

// ///////////////////////////////////////////////////////////////////

Cheat.RegisterCallback ("Draw", "update");
Cheat.RegisterCallback ("Draw", "draw");
secks
 
Сверху Снизу