JS-скрипт Fatality watermark [OT4/OTC4]

Эксперт
Статус
Оффлайн
Регистрация
22 Мар 2020
Сообщения
2,187
Реакции[?]
484
Поинты[?]
3K
Код:
function HSVtoRGB(h, s, v)
{
    var r, g, b, i, f, p, q, t;
    i = Math.floor(h * 6);
    f = h * 6 - i;
    p = v * (1 - s);
    q = v * (1 - f * s);
    t = v * (1 - (1 - f) * s);
    switch (i % 6)
    {
        case 0: r = v, g = t, b = p; break;
        case 1: r = q, g = v, b = p; break;
        case 2: r = p, g = v, b = t; break;
        case 3: r = p, g = q, b = v; break;
        case 4: r = t, g = p, b = v; break;
        case 5: r = v, g = p, b = q; break;
    }
    return { r: Math.round(r * 255), g: Math.round(g * 255), b: Math.round(b * 255) };
}
function draw() {
    var tick = Globals.Tickrate().toString()
    var ping = Math.round(Local.Latency( ) * 1000 - 16)
    const fps = Math.floor(1 / Global.Frametime());
    if(ping < 1) ping = 0;
    var colors = HSVtoRGB(Global.Realtime() * 0.1, 1, 1);
    var font = Render.GetFont("smallest_pixel-7.ttf", 12, true)
    var text = "FATALITY.WIN   FPS: " + "   " + "  PING:       RATE:   ";
    var w = Global.GetScreenSize()[1];
    var x = Global.GetScreenSize()[0];
    var w2 = w - 790;
    x = x -  + 310;
    Render.Rect(x - 11, 9, w2 + 21, 59, [ 0, 0, 0, 180 ]);
    Render.FilledRect(x - 10, 10, w2 + 19, 57, [ 40, 40, 40, 230 ]);
    Render.Rect(x - 10, 10, w2 + 19, 57, [ 55, 55, 55, 255 ]);
    Render.FilledRect(x - 6, 14, w2 + 10, 48, [ 20, 20, 20, 210 ]);
    Render.Rect(x - 6, 14, w2 + 10, 48, [ 55, 55, 55, 255 ]);
    Render.FilledRect(x - 1, 25, w2, 31, [ 9, 9, 9, 220 ]);
    Render.Rect(x - 1, 25, w2, 31, [ 40, 40, 40, 230 ]);
    Render.FilledRect(x - 1, 20, w2, 3, [colors.r, colors.g, colors.b, 255]);
    Render.GradientRect(x - 1, 20, w2, 3, 0,  [0, 0, 0, 0], [0, 0, 0, 150]);
    Render.String(x+10, 32, 0, text, [ 255, 255, 255, 255 ], font);
    Render.String(x+116, 32, 0, ""+fps, [colors.r, colors.g, colors.b, 255 ], font);
    Render.String(x+176, 32, 0, ping+"MS", [colors.r, colors.g, colors.b, 255 ], font);
    Render.String(x+244, 32, 0, ""+tick, [colors.r, colors.g, colors.b, 255 ], font);
}

Cheat.RegisterCallback("Draw", "draw");
1634160777070.png
 

Вложения

Сверху Снизу