JS-скрипт OneTap Custom Watermark

  • Автор темы Автор темы elleqt
  • Дата начала Дата начала
Легенда форума
Легенда форума
Статус
Оффлайн
Регистрация
16 Сен 2018
Сообщения
4,045
Реакции
1,944
[ ОПИСАНИЕ ]
"Водяной знак" в углу экрана. Под основу был взят оригинальный водяной знак onetap, моя цель была добавить кастомный текст и свои цвета.

[ НАСТРОЙКА ]
Можно включить/выключить кастомный текст.
Можно указать кастомный текст.
Все настройки находятся на 1-6ых строках.

[ СКРИНШОТ ]
1591784946690.png


[ ИСХОДНЫЙ КОД ]
JavaScript:
Expand Collapse Copy
const show_edition = [  1  /* ВКЛЮЧЕН ЛИ КАСТОМНЫЙ ТЕКСТ 1/0 */,  "yougame.biz/elleqt" /* КАСТОМНЫЙ ТЕКСТ */];

const primary_clr = [255, 0, 255, 255]; /* ЦВЕТ (RGB)*/
const secondary_clr = [primary_clr[0] - 15, primary_clr[1] - 15, primary_clr[2] - 15, 255]; /* ВТОРОЙ ЦВЕТ, МОЖНО ПОМЕНЯТЬ НА СВОЙ */
const text_clr = [255,255,255,255];
const bg_clr = [40,40,47, 125];

const elleqt_ne_trap_3 = function(x, y, a, text, color, font) {
    Render.StringCustom(x + 1, y + 1, a, text, [15, 15, 15, 55], font);
    Render.StringCustom(x, y, a, text, color, font);
}

const elleqt_ne_trap_2 = function(x, y, w, custom_text, font, base_clr) {
    Render.GradientRect(x, y, w / 2, 2, 1, primary_clr, secondary_clr);
    Render.GradientRect(x + w / 2, y, w / 2, 2, 1, secondary_clr, primary_clr);
    Render.FilledRect(x, y + 2, w, 16, bg_clr);
    elleqt_ne_trap_3(x + w / 2, y + 2, 1, custom_text, text_clr, font);
}

const elleqt_ne_trap_1 = function( ) {
        const text = show_edition[0] ? ("onetap [" + show_edition[1] + "] | " + Cheat.GetUsername() + " | ") : ("onetap | " + Cheat.GetUsername() + " | ");
        const server_name = World.GetServerString();
        if (server_name != "")
        {
            text += server_name + " | delay: " + Math.round(Local.Latency( ) * 1000 - 16) + " | " + Globals.Tickrate() + "tick | ";
        }
        const now = new Date();
        const hours = now.getHours(), mins = now.getMinutes(), secs = now.getSeconds();
        const time = (hours < 10 ? "0" + hours : hours) + ":" + (mins < 10 ? "0" + mins : mins) + ":" + (secs < 10 ? "0" + secs : secs);
        text += time;
        return text
    }

const elleqt_ne_trap = function() {
    const font = Render.AddFont("Segoe UI", 8, 400);
    const text = elleqt_ne_trap_1();
    const width = Render.TextSizeCustom(text, font)[0] + 15;
    const screen_width = Render.GetScreenSize()[0];

    elleqt_ne_trap_2(screen_width - 10 - width, 10, width, text, font, [255,255,255,255]);
}

Cheat.RegisterCallback('Draw', 'elleqt_ne_trap');

[ ИСХОДНЫЙ КОД ("skeet" styled) ]
1591788613627.png

JavaScript:
Expand Collapse Copy
const show_edition = [  1  /* ВКЛЮЧЕН ЛИ КАСТОМНЫЙ ТЕКСТ 1/0 */,  "yougame.biz/elleqt" /* КАСТОМНЫЙ ТЕКСТ */];

const text_clr = [255,255,255,255];
const bg_clr = [30,30,30, 255];
const bg_clr1 = [60, 60, 60, 255];
const bg_clr2 = [90, 90, 90, 255];

const elleqt_ne_trap_3 = function(x, y, a, text, color, font) {
    Render.StringCustom(x + 1, y + 1, a, text, [15, 15, 15, 55], font);
    Render.StringCustom(x, y, a, text, color, font);
}

const elleqt_ne_trap_2 = function(x, y, w, custom_text, font, base_clr) {


    Render.FilledRect(x - 4, y - 2, w + 8, 24, bg_clr1);
    Render.Rect(x - 4, y - 2, w + 8, 24, bg_clr2);
    Render.FilledRect(x, y + 2, w, 16, bg_clr);
    Render.Rect(x, y + 2, w, 16, bg_clr2);
    elleqt_ne_trap_3(x + w / 2, y + 2, 1, custom_text, text_clr, font);
}

const elleqt_ne_trap_1 = function( ) {
        const text = show_edition[0] ? ("onetap [" + show_edition[1] + "] | " + Cheat.GetUsername() + " | ") : ("onetap | " + Cheat.GetUsername() + " | ");
        const server_name = World.GetServerString();
        if (server_name != "")
        {
            text += server_name + " | delay: " + Math.round(Local.Latency( ) * 1000 - 16) + " | " + Globals.Tickrate() + "tick | ";
        }
        const now = new Date();
        const hours = now.getHours(), mins = now.getMinutes(), secs = now.getSeconds();
        const time = (hours < 10 ? "0" + hours : hours) + ":" + (mins < 10 ? "0" + mins : mins) + ":" + (secs < 10 ? "0" + secs : secs);
        text += time;
        return text
    }

const elleqt_ne_trap = function() {
    const font = Render.AddFont("Segoe UI", 8, 400);
    const text = elleqt_ne_trap_1();
    const width = Render.TextSizeCustom(text, font)[0] + 15;
    const screen_width = Render.GetScreenSize()[0];

    elleqt_ne_trap_2(screen_width - 10 - width, 10, width - 2, text, font, [255,255,255,255]);
}

Cheat.RegisterCallback('Draw', 'elleqt_ne_trap');
 
Последнее редактирование:
Обратите внимание, пользователь заблокирован на форуме. Не рекомендуется проводить сделки.
спасибо тебе, а у меня такое
1591786887007.png
 
Все настройки находятся на 1-6ых строках.
Посмотреть вложение 80064
JavaScript:
Expand Collapse Copy
const show_edition = [  1  /* ВКЛЮЧЕН ЛИ КАСТОМНЫЙ ТЕКСТ 1/0 */,  "yougame.biz/elleqt" /* КАСТОМНЫЙ ТЕКСТ */];

const primary_clr = [255, 0, 255, 255]; /* ЦВЕТ (RGB)*/
const secondary_clr = [primary_clr[0] - 15, primary_clr[1] - 15, primary_clr[2] - 15, 255]; /* ВТОРОЙ ЦВЕТ, МОЖНО ПОМЕНЯТЬ НА СВОЙ */
const text_clr = [255,255,255,255];
const bg_clr = [40,40,47, 125];

const elleqt_ne_trap_3 = function(x, y, a, text, color, font) {
    Render.StringCustom(x + 1, y + 1, a, text, [15, 15, 15, 55], font);
    Render.StringCustom(x, y, a, text, color, font);
}

const elleqt_ne_trap_2 = function(x, y, w, custom_text, font, base_clr) {
    Render.GradientRect(x, y, w / 2, 2, 1, primary_clr, secondary_clr);
    Render.GradientRect(x + w / 2, y, w / 2, 2, 1, secondary_clr, primary_clr);
    Render.FilledRect(x, y + 2, w, 16, bg_clr);
    elleqt_ne_trap_3(x + w / 2, y + 2, 1, custom_text, text_clr, font);
}

const elleqt_ne_trap_1 = function( ) {
        const text = show_edition[0] ? ("onetap [" + show_edition[1] + "] | " + Cheat.GetUsername() + " | ") : ("onetap | " + Cheat.GetUsername() + " | ");
        const server_name = World.GetServerString();
        if (server_name != "")
        {
            text += server_name + " | delay: " + Math.round(Local.Latency( ) * 1000 - 16) + " | " + Globals.Tickrate() + "tick | ";
        }
        const now = new Date();
        const hours = now.getHours(), mins = now.getMinutes(), secs = now.getSeconds();
        const time = (hours < 10 ? "0" + hours : hours) + ":" + (mins < 10 ? "0" + mins : mins) + ":" + (secs < 10 ? "0" + secs : secs);
        text += time;
        return text
    }

const elleqt_ne_trap = function() {
    const font = Render.AddFont("Segoe UI", 8, 400);
    const text = elleqt_ne_trap_1();
    const width = Render.TextSizeCustom(text, font)[0] + 15;
    const screen_width = Render.GetScreenSize()[0];

    elleqt_ne_trap_2(screen_width - 10 - width, 10, width, text, font, [255,255,255,255]);
}

Cheat.RegisterCallback('Draw', 'elleqt_ne_trap');
gradient :roflanEbalo: :seemsgood::seemsgood:
 
Обратите внимание, пользователь заблокирован на форуме. Не рекомендуется проводить сделки.
Обратите внимание, пользователь заблокирован на форуме. Не рекомендуется проводить сделки.
JavaScript:
Expand Collapse Copy
const show_edition = [  1  /* ВКЛЮЧЕН ЛИ КАСТОМНЫЙ ТЕКСТ 1/0 */,  "yougame.biz/elleqt" /* КАСТОМНЫЙ ТЕКСТ */];

const text_clr = [255,255,255,255];
const bg_clr = [30,30,30, 255];
const bg_clr1 = [60, 60, 60, 255];
const bg_clr2 = [90, 90, 90, 255];

const elleqt_ne_trap_3 = function(x, y, a, text, color, font) {
    Render.StringCustom(x + 1, y + 1, a, text, [15, 15, 15, 55], font);
    Render.StringCustom(x, y, a, text, color, font);
}

const elleqt_ne_trap_2 = function(x, y, w, custom_text, font, base_clr) {


    Render.FilledRect(x - 4, y - 2, w + 8, 24, bg_clr1);
    Render.Rect(x - 4, y - 2, w + 8, 24, bg_clr2);
    Render.FilledRect(x, y + 2, w, 16, bg_clr);
    Render.Rect(x, y + 2, w, 16, bg_clr2);
    elleqt_ne_trap_3(x + w / 2, y + 2, 1, custom_text, text_clr, font);
}

const elleqt_ne_trap_1 = function( ) {
        const text = show_edition[0] ? ("onetap [" + show_edition[1] + "] | " + Cheat.GetUsername() + " | ") : ("onetap | " + Cheat.GetUsername() + " | ");
        const server_name = World.GetServerString();
        if (server_name != "")
        {
            text += server_name + " | delay: " + Math.round(Local.Latency( ) * 1000 - 16) + " | " + Globals.Tickrate() + "tick | ";
        }
        const now = new Date();
        const hours = now.getHours(), mins = now.getMinutes(), secs = now.getSeconds();
        const time = (hours < 10 ? "0" + hours : hours) + ":" + (mins < 10 ? "0" + mins : mins) + ":" + (secs < 10 ? "0" + secs : secs);
        text += time;
        return text
    }

const elleqt_ne_trap = function() {
    const font = Render.AddFont("Segoe UI", 8, 400);
    const text = elleqt_ne_trap_1();
    const width = Render.TextSizeCustom(text, font)[0] + 15;
    const screen_width = Render.GetScreenSize()[0];

    elleqt_ne_trap_2(screen_width - 10 - width, 10, width - 2, text, font, [255,255,255,255]);
}

Cheat.RegisterCallback('Draw', 'elleqt_ne_trap');
 
бляяя аухенный скрипт
 
Все настройки находятся на 1-6ых строках.
Посмотреть вложение 80064
JavaScript:
Expand Collapse Copy
const show_edition = [  1  /* ВКЛЮЧЕН ЛИ КАСТОМНЫЙ ТЕКСТ 1/0 */,  "yougame.biz/elleqt" /* КАСТОМНЫЙ ТЕКСТ */];

const primary_clr = [255, 0, 255, 255]; /* ЦВЕТ (RGB)*/
const secondary_clr = [primary_clr[0] - 15, primary_clr[1] - 15, primary_clr[2] - 15, 255]; /* ВТОРОЙ ЦВЕТ, МОЖНО ПОМЕНЯТЬ НА СВОЙ */
const text_clr = [255,255,255,255];
const bg_clr = [40,40,47, 125];

const elleqt_ne_trap_3 = function(x, y, a, text, color, font) {
    Render.StringCustom(x + 1, y + 1, a, text, [15, 15, 15, 55], font);
    Render.StringCustom(x, y, a, text, color, font);
}

const elleqt_ne_trap_2 = function(x, y, w, custom_text, font, base_clr) {
    Render.GradientRect(x, y, w / 2, 2, 1, primary_clr, secondary_clr);
    Render.GradientRect(x + w / 2, y, w / 2, 2, 1, secondary_clr, primary_clr);
    Render.FilledRect(x, y + 2, w, 16, bg_clr);
    elleqt_ne_trap_3(x + w / 2, y + 2, 1, custom_text, text_clr, font);
}

const elleqt_ne_trap_1 = function( ) {
        const text = show_edition[0] ? ("onetap [" + show_edition[1] + "] | " + Cheat.GetUsername() + " | ") : ("onetap | " + Cheat.GetUsername() + " | ");
        const server_name = World.GetServerString();
        if (server_name != "")
        {
            text += server_name + " | delay: " + Math.round(Local.Latency( ) * 1000 - 16) + " | " + Globals.Tickrate() + "tick | ";
        }
        const now = new Date();
        const hours = now.getHours(), mins = now.getMinutes(), secs = now.getSeconds();
        const time = (hours < 10 ? "0" + hours : hours) + ":" + (mins < 10 ? "0" + mins : mins) + ":" + (secs < 10 ? "0" + secs : secs);
        text += time;
        return text
    }

const elleqt_ne_trap = function() {
    const font = Render.AddFont("Segoe UI", 8, 400);
    const text = elleqt_ne_trap_1();
    const width = Render.TextSizeCustom(text, font)[0] + 15;
    const screen_width = Render.GetScreenSize()[0];

    elleqt_ne_trap_2(screen_width - 10 - width, 10, width, text, font, [255,255,255,255]);
}

Cheat.RegisterCallback('Draw', 'elleqt_ne_trap');
Посмотреть вложение 80099
JavaScript:
Expand Collapse Copy
const show_edition = [  1  /* ВКЛЮЧЕН ЛИ КАСТОМНЫЙ ТЕКСТ 1/0 */,  "yougame.biz/elleqt" /* КАСТОМНЫЙ ТЕКСТ */];

const text_clr = [255,255,255,255];
const bg_clr = [30,30,30, 255];
const bg_clr1 = [60, 60, 60, 255];
const bg_clr2 = [90, 90, 90, 255];

const elleqt_ne_trap_3 = function(x, y, a, text, color, font) {
    Render.StringCustom(x + 1, y + 1, a, text, [15, 15, 15, 55], font);
    Render.StringCustom(x, y, a, text, color, font);
}

const elleqt_ne_trap_2 = function(x, y, w, custom_text, font, base_clr) {


    Render.FilledRect(x - 4, y - 2, w + 8, 24, bg_clr1);
    Render.Rect(x - 4, y - 2, w + 8, 24, bg_clr2);
    Render.FilledRect(x, y + 2, w, 16, bg_clr);
    Render.Rect(x, y + 2, w, 16, bg_clr2);
    elleqt_ne_trap_3(x + w / 2, y + 2, 1, custom_text, text_clr, font);
}

const elleqt_ne_trap_1 = function( ) {
        const text = show_edition[0] ? ("onetap [" + show_edition[1] + "] | " + Cheat.GetUsername() + " | ") : ("onetap | " + Cheat.GetUsername() + " | ");
        const server_name = World.GetServerString();
        if (server_name != "")
        {
            text += server_name + " | delay: " + Math.round(Local.Latency( ) * 1000 - 16) + " | " + Globals.Tickrate() + "tick | ";
        }
        const now = new Date();
        const hours = now.getHours(), mins = now.getMinutes(), secs = now.getSeconds();
        const time = (hours < 10 ? "0" + hours : hours) + ":" + (mins < 10 ? "0" + mins : mins) + ":" + (secs < 10 ? "0" + secs : secs);
        text += time;
        return text
    }

const elleqt_ne_trap = function() {
    const font = Render.AddFont("Segoe UI", 8, 400);
    const text = elleqt_ne_trap_1();
    const width = Render.TextSizeCustom(text, font)[0] + 15;
    const screen_width = Render.GetScreenSize()[0];

    elleqt_ne_trap_2(screen_width - 10 - width, 10, width - 2, text, font, [255,255,255,255]);
}

Cheat.RegisterCallback('Draw', 'elleqt_ne_trap');
на никсвар такое напиши плз <3
 
Обратите внимание, пользователь заблокирован на форуме. Не рекомендуется проводить сделки.

Пожалуйста, зарегистрируйтесь или авторизуйтесь, чтобы увидеть содержимое.

JavaScript:
Expand Collapse Copy
const show_edition = [  1  /* ВКЛЮЧЕН ЛИ КАСТОМНЫЙ ТЕКСТ 1/0 */,  "yougame.biz/elleqt" /* КАСТОМНЫЙ ТЕКСТ */];

const text_clr = [255,255,255,255];
const bg_clr = [30,30,30, 255];
const bg_clr1 = [60, 60, 60, 255];
const bg_clr2 = [90, 90, 90, 255];

const elleqt_ne_trap_3 = function(x, y, a, text, color, font) {
    Render.StringCustom(x + 1, y + 1, a, text, [15, 15, 15, 55], font);
    Render.StringCustom(x, y, a, text, color, font);
}

const elleqt_ne_trap_2 = function(x, y, w, custom_text, font, base_clr) {


    Render.FilledRect(x - 4, y - 2, w + 8, 24, bg_clr1);
    Render.Rect(x - 4, y - 2, w + 8, 24, bg_clr2);
    Render.FilledRect(x, y + 2, w, 16, bg_clr);
    Render.Rect(x, y + 2, w, 16, bg_clr2);
    elleqt_ne_trap_3(x + w / 2, y + 2, 1, custom_text, text_clr, font);
}

const elleqt_ne_trap_1 = function( ) {
        const text = show_edition[0] ? ("onetap [" + show_edition[1] + "] | " + Cheat.GetUsername() + " | ") : ("onetap | " + Cheat.GetUsername() + " | ");
        const server_name = World.GetServerString();
        if (server_name != "")
        {
            text += server_name + " | delay: " + Math.round(Local.Latency( ) * 1000 - 16) + " | " + Globals.Tickrate() + "tick | ";
        }
        const now = new Date();
        const hours = now.getHours(), mins = now.getMinutes(), secs = now.getSeconds();
        const time = (hours < 10 ? "0" + hours : hours) + ":" + (mins < 10 ? "0" + mins : mins) + ":" + (secs < 10 ? "0" + secs : secs);
        text += time;
        return text
    }

const elleqt_ne_trap = function() {
    const font = Render.AddFont("Segoe UI", 8, 400);
    const text = elleqt_ne_trap_1();
    const width = Render.TextSizeCustom(text, font)[0] + 15;
    const screen_width = Render.GetScreenSize()[0];

    elleqt_ne_trap_2(screen_width - 10 - width, 10, width - 2, text, font, [255,255,255,255]);
}

Cheat.RegisterCallback('Draw', 'elleqt_ne_trap');

Пожалуйста, зарегистрируйтесь или авторизуйтесь, чтобы увидеть содержимое.

 
Обратите внимание, пользователь заблокирован на форуме. Не рекомендуется проводить сделки.
Обратите внимание, пользователь заблокирован на форуме. Не рекомендуется проводить сделки.
Обратите внимание, пользователь заблокирован на форуме. Не рекомендуется проводить сделки.
Да, к рендеру строки / бокса. Просто отбавляешь позицию / размер бокса
я нихуя не понял :FailFish: , как мне в это добавить то что ты выше код писал?
JavaScript:
Expand Collapse Copy
Render.String( x1 + 106, y1 + 7, 0, "" + ping, [247, 245, 249, 200], 2);
 
я нихуя не понял :FailFish: , как мне в это добавить то что ты выше код писал?
JavaScript:
Expand Collapse Copy
Render.String( x1 + 106, y1 + 7, 0, "" + ping, [247, 245, 249, 200], 2);
JavaScript:
Expand Collapse Copy
Render.String( x1 + 106 - text_width, y1 + 7, 0, "" + ping, [247, 245, 249, 200], 2);
 
Обратите внимание, пользователь заблокирован на форуме. Не рекомендуется проводить сделки.
сделай меню скита чтоб фейковать
 
Назад
Сверху Снизу