JS-скрипт Keybinds ot v4 for otc3

你为什么翻译这个?
Начинающий
Статус
Оффлайн
Регистрация
14 Май 2020
Сообщения
163
Реакции[?]
26
Поинты[?]
0
Как и обещал вот вам кейбенды вантапа в4 для крюка в3
Спастил c - https://yougame.biz/threads/168613/

Превратил вот в это
Screenshot_3.jpg

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

Так же qhouz сделал свою версию ss ниже будет! клик
 

Вложения

Последнее редактирование:
Забаненный
Статус
Оффлайн
Регистрация
18 Окт 2020
Сообщения
458
Реакции[?]
55
Поинты[?]
2K
Обратите внимание, пользователь заблокирован на форуме. Не рекомендуется проводить сделки.
разве не типо ползунок должен быть?
 
SenkoTech dev
Пользователь
Статус
Оффлайн
Регистрация
4 Янв 2020
Сообщения
327
Реакции[?]
113
Поинты[?]
7K
Onesell ты немного кривовато сделал, но я тебя не буду винить.
Я пока фикшу твою js, потом сделаю нормальную иконку для спектаторов, но пока-что так можно хоть как-нибудь играть!
1614948228434.png
function in_bounds(vec, x, y, x2, y2)
{
return (vec[0] > x) && (vec[1] > y) && (vec[0] < x2) && (vec[1] < y2)
}
function main()
{
if(!World.GetServerString()) return;
const x = 0
y = 615
color = UI.GetColor("Misc", "JAVASCRIPT", "Script items", "Hotkeys");
var font = Render.AddFont( "MuseoSansCyrl-500", 10, 100);
const icon = Render.AddFont("untitled-font-1", 14, 10);
Render.GradientRect(x, y - 58, 200, 17, 500, [ 0, 0, 0, 200 ], [ 0, 0, 0, 0 ]);
var h = [];
if (UI.IsHotkeyActive("Anti-Aim", "Extra", "Slow walk")) {
h.push("Slow walk")
}
if (UI.IsHotkeyActive("Anti-Aim", "Rage Anti-Aim", "Jitter offset")) {
h.push("Jitter offset")
}
if (UI.IsHotkeyActive("Anti-Aim", "Extra", "Fake duck")) {
h.push("Fake duck")
}
if (UI.IsHotkeyActive("Misc", "GENERAL", "Movement", "Auto peek")) {
h.push("Auto peek")
}
if (UI.IsHotkeyActive("Anti-Aim", "Fake angles", "Inverter")) {
h.push("Anti-Aim Inverter")
}
if (UI.IsHotkeyActive("Rage", "GENERAL", "General", "Force safe point")) {
h.push("Safe point")
}
if (UI.IsHotkeyActive("Rage", "GENERAL", "General", "Force body aim")) {
h.push("Body aim")
}
if (UI.IsHotkeyActive("Rage", "Exploits", "Doubletap")) {
h.push("Doubletap")
}
if (UI.IsHotkeyActive("Rage", "Exploits", "Hide shots")) {
h.push("Hide shots")
}
if (UI.IsHotkeyActive("Misc", "JAVASCRIPT", "Script items", "Min Damage")) {
h.push("Damage override")
}
if (h.length > 0) {
for (i = 0; i < h.length; i++)
{
Render.StringCustom(x + 29, y - 35 + 17 * i, 0, h, [0, 0, 0, 180], font);
Render.StringCustom(x + 5, y - 37 + 17 * i, 0, "a", [245, 245, 245, 255], icon);
Render.StringCustom(x + 29, y - 35 + 17 * i, 0, h, [255, 255, 255, 255], font);
}
}
}
Global.RegisterCallback("Draw", "main")
var observators = [];
function getObservators(){
var ents = Entity.GetPlayers();
var local = Entity.GetLocalPlayer();
var localtarget = Entity.GetProp(local,"DT_BasePlayer","m_hObserverTarget");
if(!local)return;
observators = [];
for(i = 0; i < ents.length;i++){
if(Entity.IsAlive(local)){
if(!ents || Entity.IsAlive(ents))continue;
var observer = Entity.GetProp(ents,"DT_BasePlayer","m_hObserverTarget");
if(!observer || observer == "m_hObserverTarget")continue;
if(observer == local)observators.push(Entity.GetName(ents));
}
else{
if(!ents || Entity.IsAlive(ents))continue;
var observer = Entity.GetProp(ents,"DT_BasePlayer","m_hObserverTarget");
if(!observer || observer == "m_hObserverTarget")continue;
if(observer == localtarget)observators.push(Entity.GetName(ents));
}
}
}
function drawObservators(){
const x = 5
var screen = Render.GetScreenSize();
var font = Render.AddFont( "MuseoSansCyrl-500", 10, 100);
var icon = Render.AddFont("untitled-font-1", 14, 10);
for(i = 0; i < observators.length; i++){
var name = observators;
Render.StringCustom(x,(i*-20)+532.5,0,"d", [245, 245, 245, 255], icon);
Render.StringCustom(x+25,(i*-20)+532.5,0,name,[255,255,255,255],font);
}

}
function onRoundStart(){
observators = [];
}

Global.RegisterCallback("Draw","getObservators");
Global.RegisterCallback("Draw","drawObservators");
Global.RegisterCallback("round_start","onRoundStart");
 

Вложения

Последнее редактирование:
你为什么翻译这个?
Начинающий
Статус
Оффлайн
Регистрация
14 Май 2020
Сообщения
163
Реакции[?]
26
Поинты[?]
0
Onesell ты немного кривовато сделал, но я тебя не буду виню.
Я пока фикшу твою js, потом сделаю нормальную иконку для спектаторов, но пока-что так можно хоть как-нибудь играть!
Посмотреть вложение 135534
function in_bounds(vec, x, y, x2, y2)
{
return (vec[0] > x) && (vec[1] > y) && (vec[0] < x2) && (vec[1] < y2)
}
function main()
{
if(!World.GetServerString()) return;
const x = 0
y = 615
color = UI.GetColor("Misc", "JAVASCRIPT", "Script items", "Hotkeys");
var font = Render.AddFont( "MuseoSansCyrl-500", 10, 100);
const icon = Render.AddFont("untitled-font-1", 14, 10);
Render.GradientRect(x, y - 58, 200, 17, 500, [ 0, 0, 0, 200 ], [ 0, 0, 0, 0 ]);
var h = [];
if (UI.IsHotkeyActive("Anti-Aim", "Extra", "Slow walk")) {
h.push("Slow walk")
}
if (UI.IsHotkeyActive("Anti-Aim", "Rage Anti-Aim", "Jitter offset")) {
h.push("Jitter offset")
}
if (UI.IsHotkeyActive("Anti-Aim", "Extra", "Fake duck")) {
h.push("Fake duck")
}
if (UI.IsHotkeyActive("Misc", "GENERAL", "Movement", "Auto peek")) {
h.push("Auto peek")
}
if (UI.IsHotkeyActive("Anti-Aim", "Fake angles", "Inverter")) {
h.push("Anti-Aim Inverter")
}
if (UI.IsHotkeyActive("Rage", "GENERAL", "General", "Force safe point")) {
h.push("Safe point")
}
if (UI.IsHotkeyActive("Rage", "GENERAL", "General", "Force body aim")) {
h.push("Body aim")
}
if (UI.IsHotkeyActive("Rage", "Exploits", "Doubletap")) {
h.push("Doubletap")
}
if (UI.IsHotkeyActive("Rage", "Exploits", "Hide shots")) {
h.push("Hide shots")
}
if (UI.IsHotkeyActive("Misc", "JAVASCRIPT", "Script items", "Min Damage")) {
h.push("Damage override")
}
if (h.length > 0) {
for (i = 0; i < h.length; i++)
{
Render.StringCustom(x + 29, y - 35 + 17 * i, 0, h, [0, 0, 0, 180], font);
Render.StringCustom(x + 5, y - 37 + 17 * i, 0, "a", [245, 245, 245, 255], icon);
Render.StringCustom(x + 29, y - 35 + 17 * i, 0, h, [255, 255, 255, 255], font);
}
}
}
Global.RegisterCallback("Draw", "main")
var observators = [];
function getObservators(){
var ents = Entity.GetPlayers();
var local = Entity.GetLocalPlayer();
var localtarget = Entity.GetProp(local,"DT_BasePlayer","m_hObserverTarget");
if(!local)return;
observators = [];
for(i = 0; i < ents.length;i++){
if(Entity.IsAlive(local)){
if(!ents || Entity.IsAlive(ents))continue;
var observer = Entity.GetProp(ents,"DT_BasePlayer","m_hObserverTarget");
if(!observer || observer == "m_hObserverTarget")continue;
if(observer == local)observators.push(Entity.GetName(ents));
}
else{
if(!ents || Entity.IsAlive(ents))continue;
var observer = Entity.GetProp(ents,"DT_BasePlayer","m_hObserverTarget");
if(!observer || observer == "m_hObserverTarget")continue;
if(observer == localtarget)observators.push(Entity.GetName(ents));
}
}
}
function drawObservators(){
const x = 5
var screen = Render.GetScreenSize();
var font = Render.AddFont( "MuseoSansCyrl-500", 10, 100);
var icon = Render.AddFont("untitled-font-1", 14, 10);
for(i = 0; i < observators.length; i++){
var name = observators;
Render.StringCustom(x,(i*-20)+532.5,0,"d", [245, 245, 245, 255], icon);
Render.StringCustom(x+25,(i*-20)+532.5,0,name,[255,255,255,255],font);
}

}
function onRoundStart(){
observators = [];
}

Global.RegisterCallback("Draw","getObservators");
Global.RegisterCallback("Draw","drawObservators");
Global.RegisterCallback("round_start","onRoundStart");
Это не моя я там всего все поправил, и да инотки сделал
 
SenkoTech dev
Пользователь
Статус
Оффлайн
Регистрация
4 Янв 2020
Сообщения
327
Реакции[?]
113
Поинты[?]
7K
Понял, но ты не против, что я сделаю, да?
 
SenkoTech dev
Пользователь
Статус
Оффлайн
Регистрация
4 Янв 2020
Сообщения
327
Реакции[?]
113
Поинты[?]
7K

Вложения

SenkoTech dev
Пользователь
Статус
Оффлайн
Регистрация
4 Янв 2020
Сообщения
327
Реакции[?]
113
Поинты[?]
7K
Я сегодня выпущу обнову js...
Ждите.
Что нового:
Выбор между иконками в кейбиндах, (toogled, holded [проще сказать меняется иконка с клавиатуры на слайдер]).
Можно включить и выключить по-желанию.
Пофиксил и подправил ScreenSize.
Изменил иконки, как в ориг в4, только пожалуйста удалите старый шрифт и поставьте новый:
Чтобы удалить старый (на вин10):
1. Зайти в пуск или поиск: написать Параметры Шрифта (или просто "Шрифт", вам выдаст первым)
2. Найти untitled-font-1 и удалить его.
3. Profit!
 
SenkoTech dev
Пользователь
Статус
Оффлайн
Регистрация
4 Янв 2020
Сообщения
327
Реакции[?]
113
Поинты[?]
7K
Full ScreenShot:
1615017403839.png
Only indicators:
1615017484634.png
ChoiceUI (without selecting options):
1615017570252.png
ChoiceUI (with selecting options):
1615017628174.png
Code:
/* Self-API */
const getmultidrop = function(value, index) { const mask = 1 << index; return value & mask ? true : false; }
const addlabel = function(name) { return UI.AddLabel(name); }
const addcheckbox = function(name) { return UI.AddCheckbox(name); }
const addhotkey = function(name) { return UI.AddHotkey(name); }
const addtextbox = function(name) { return UI.AddTextbox(name); }
const addcolorpicker = function(name) { return UI.AddColorPicker(name); }
const addsliderint = function(name, first, second) { return UI.AddSliderInt(name, first, second); }
const addsliderfloat = function(name, first, second) { return UI.AddSliderFloat(name, first, second); }
const adddropdown = function(name, list) { return UI.AddDropdown(name, list); }
const addmultidropdown = function(name, list) { return UI.AddMultiDropdown(name, list); }
const getvalue = function(name) { return UI.GetValue("Script items", name); }
const setvalue = function(name, value) { return UI.SetValue("Script items", name, value); }
const getstring = function(name) { return UI.GetString("Script items", name); }
const ishotkeyactive = function(name) { return UI.IsHotkeyActive(name); }
const setenabled = function(name, enabledvalue) { return UI.SetEnabled("Script items", name, enabledvalue); }
const getcolor = function(name) { return UI.GetColor("Script items", name); }
const setcolor = function(name, color) { return UI.SetColor("Script items", name, color); }
const visible_value = function(drop, drop_value, name) { if(getvalue(drop) == drop_value) { setenabled(name, 1) }else{ setenabled(name, 0)} }
const unvisible_value = function(drop, drop_value, name) { if(getvalue(drop) == drop_value) { setenabled(name, 0) }else{ setenabled(name, 1)} }
const visible_string = function(drop, drop_string, name) { if(getstring(drop) == drop_string) { setenabled(name, 1) }else{ setenabled(name, 0)} }
const unvisible_string = function(drop, drop_string, name) { if(getstring(drop) == drop_string) { setenabled(name, 0) }else{ setenabled(name, 1)} }
/* UI */
addlabel ("onetap v4 indicators")
addmultidropdown("onetap indicators", ["Watermark", "Custom nick","Keybindings", "options"])
addtextbox("Type username")
addmultidropdown("Keybindings: holding", ["Slow walk", "Fakeduck", "Auto peek", "Anti-Aim Inverter", "Safe point", "Body aim", "Doubletap", "Hide shots", "Damage override"])
addsliderint("", 0, 0)
/* Watermark */
function otwatermark() {
/* Time (optionaly) */
var today = new Date();
var hours1 = today.getHours();
var minutes1 = today.getMinutes();
var seconds1 = today.getSeconds();

var hours = hours1 <= 9 ? "0"+hours1+":" : hours1+":";
var minutes = minutes1 <= 9 ? "0" + minutes1+":" : minutes1+":";
var seconds = seconds1 <= 9 ? "0" + seconds1 : seconds1;
/* Main variables */
var custom_username = getstring("Type username")
var ping = Math.round(Entity.GetProp(Entity.GetLocalPlayer(), "CPlayerResource", "m_iPing")).toString()
var font = Render.AddFont("Verdana", 8, 400);
var server_ip = World.GetServerString();
var text = "onetap | "
if(getmultidrop(getvalue("onetap indicators"), 1)) { text += custom_username }else{ text += Cheat.GetUsername() }
if (server_ip != "") { text += " | " + server_ip + " | ping " + ping }
var w = Render.TextSizeCustom(text, font)[0] + 20;
var x = Global.GetScreenSize()[0];
x = x - w - 10;
if(getmultidrop(getvalue("onetap indicators"), 0)) {
Render.GradientRect(x, 5, 400, 20, 500, [ 0, 0, 0, 0 ], [ 0, 0, 0, 255 ]);
Render.StringCustom(x+20, 5 + 3, 0, text, [ 255, 255, 255, 255 ], font);
}
}
/* HotkeyVariables */
var holded = "a"
var toogled = "f"
var slowwalk = holded
var fakeduck = holded
var autopeek = holded
var inverter = holded
var safepoint = holded
var bodyaim = holded
var doubletap = holded
var hideshots = holded
var damageoverride = holded
/* MultiDropdown */
function multidropdown() {
if(getmultidrop(getvalue("onetap indicators"), 1)) { setenabled("Type username", true) }else{ setenabled("Type username", false) }
if(getmultidrop(getvalue("onetap indicators"), 3)) { setenabled("Keybindings: holding", true) }else{ setenabled("Keybindings: holding", false) }
if(getmultidrop(getvalue("Keybindings: holding"), 0)) { slowwalk = holded }else{ slowwalk = toogled }
if(getmultidrop(getvalue("Keybindings: holding"), 1)) { fakeduck = holded }else{ fakeduck = toogled }
if(getmultidrop(getvalue("Keybindings: holding"), 2)) { autopeek = holded }else{ autopeek = toogled }
if(getmultidrop(getvalue("Keybindings: holding"), 3)) { inverter = holded }else{ inverter = toogled }
if(getmultidrop(getvalue("Keybindings: holding"), 4)) { safepoint = holded }else{ safepoint = toogled }
if(getmultidrop(getvalue("Keybindings: holding"), 5)) { bodyaim = holded }else{ bodyaim = toogled }
if(getmultidrop(getvalue("Keybindings: holding"), 6)) { doubletap = holded }else{ doubletap = toogled }
if(getmultidrop(getvalue("Keybindings: holding"), 7)) { hideshots = holded }else{ hideshots = toogled }
if(getmultidrop(getvalue("Keybindings: holding"), 8)) { damageoverride = holded }else{ damageoverride = toogled }
}
var y = Global.GetScreenSize()[1] / 2
function in_bounds(vec, x, y, x2, y2) { return (vec[0] > x) && (vec[1] > y) && (vec[0] < x2) && (vec[1] < y2) }
function otkeybindings() {
if(getmultidrop(getvalue("onetap indicators"), 2)) {
if(!World.GetServerString()) return;
var font = Render.AddFont( "MuseoSansCyrl-500", 10, 100);
const icon = Render.AddFont("untitled-font-1", 14, 10);
Render.GradientRect(0, y, 200, 17, 500, [ 0, 0, 0, 200 ], [ 0, 0, 0, 0 ]);
var h = [];
if (UI.IsHotkeyActive("Anti-Aim", "Extra", "Slow walk")) { h.push("Slow walk") }
if (UI.IsHotkeyActive("Anti-Aim", "Extra", "Fake duck")) { h.push("Fake duck") }
if (UI.IsHotkeyActive("Misc", "GENERAL", "Movement", "Auto peek")) { h.push("Auto peek") }
if (UI.IsHotkeyActive("Anti-Aim", "Fake angles", "Inverter")) { h.push("AA inverter") }
if (UI.IsHotkeyActive("Rage", "GENERAL", "General", "Force safe point")) { h.push("Safe point") }
if (UI.IsHotkeyActive("Rage", "GENERAL", "General", "Force body aim")) { h.push("Body aim") }
if (UI.IsHotkeyActive("Rage", "Exploits", "Doubletap")) { h.push("Doubletap") }
if (UI.IsHotkeyActive("Rage", "Exploits", "Hide shots")) { h.push("Hide shots") }
if (UI.IsHotkeyActive("Misc", "JAVASCRIPT", "Script items", "Min Damage")) { h.push("Damage override") }
if (h.length > 0) {
for (i = 0; i < h.length; i++) {
switch (h) {
case 'Slow walk':
Render.StringCustom(35, y+24 +(i*20), 0, h, [0, 0, 0, 180], font);
Render.StringCustom(5, y+22 +(i*20), 0, slowwalk, [245, 245, 245, 255], icon);
Render.StringCustom(35, y+24 +(i*20), 0, h, [255, 255, 255, 255], font);
break;
case 'Fake duck':
Render.StringCustom(35, y+24 +(i*20), 0, h, [0, 0, 0, 180], font);
Render.StringCustom(5, y+22 +(i*20), 0, fakeduck, [245, 245, 245, 255], icon);
Render.StringCustom(35, y+24 +(i*20), 0, h, [255, 255, 255, 255], font);
break;
case 'Auto peek':
Render.StringCustom(35, y+24 +(i*20), 0, h, [0, 0, 0, 180], font);
Render.StringCustom(5, y+22 +(i*20), 0, autopeek, [245, 245, 245, 255], icon);
Render.StringCustom(35, y+24 +(i*20), 0, h, [255, 255, 255, 255], font);
break;
case 'AA inverter':
Render.StringCustom(35, y+24 +(i*20), 0, h, [0, 0, 0, 180], font);
Render.StringCustom(5, y+22 +(i*20), 0, inverter, [245, 245, 245, 255], icon);
Render.StringCustom(35, y+24 +(i*20), 0, h, [255, 255, 255, 255], font);
break;
case 'Safe point':
Render.StringCustom(35, y+24 +(i*20), 0, h, [0, 0, 0, 180], font);
Render.StringCustom(5, y+22 +(i*20), 0, safepoint, [245, 245, 245, 255], icon);
Render.StringCustom(35, y+24 +(i*20), 0, h, [255, 255, 255, 255], font);
break;
case 'Body aim':
Render.StringCustom(35, y+24 +(i*20), 0, h, [0, 0, 0, 180], font);
Render.StringCustom(5, y+22 +(i*20), 0, bodyaim, [245, 245, 245, 255], icon);
Render.StringCustom(35, y+24 +(i*20), 0, h, [255, 255, 255, 255], font);
break;
case 'Doubletap':
Render.StringCustom(35, y+24 +(i*20), 0, h, [0, 0, 0, 180], font);
Render.StringCustom(5, y+22 +(i*20), 0, doubletap, [245, 245, 245, 255], icon);
Render.StringCustom(35, y+24 +(i*20), 0, h, [255, 255, 255, 255], font);
break;
case 'Hide shots':
Render.StringCustom(35, y+24 +(i*20), 0, h, [0, 0, 0, 180], font);
Render.StringCustom(5, y+22 +(i*20), 0, hideshots, [245, 245, 245, 255], icon);
Render.StringCustom(35, y+24 +(i*20), 0, h, [255, 255, 255, 255], font);
break;
case "Damage override":
Render.StringCustom(35, y+24 +(i*20), 0, h, [0, 0, 0, 180], font);
Render.StringCustom(5, y+22 +(i*20), 0, damageoverride, [245, 245, 245, 255], icon);
Render.StringCustom(35, y+24 +(i*20), 0, h, [255, 255, 255, 255], font);
break;
}
}
}
}
}
var spectators = [];
function getspectators(){
var ents = Entity.GetPlayers();
var local = Entity.GetLocalPlayer();
var localtarget = Entity.GetProp(local,"DT_BasePlayer","m_hObserverTarget");
if(!local)return;
spectators = [];
for(i = 0; i < ents.length;i++) {
if(Entity.IsAlive(local)) {
if(!ents || Entity.IsAlive(ents))continue;
var observer = Entity.GetProp(ents,"DT_BasePlayer","m_hObserverTarget");
if(!observer || observer == "m_hObserverTarget")continue;
if(observer == local)spectators.push(Entity.GetName(ents));
}else{
if(!ents || Entity.IsAlive(ents))continue;
var observer = Entity.GetProp(ents,"DT_BasePlayer","m_hObserverTarget");
if(!observer || observer == "m_hObserverTarget")continue;
if(observer == localtarget)spectators.push(Entity.GetName(ents));
}
}
}
function drawspectators(){
if(getmultidrop(getvalue("onetap indicators"), 2)) {
var font = Render.AddFont( "MuseoSansCyrl-500", 10, 100);
var icon = Render.AddFont("untitled-font-1", 14, 10);
for(i = 0; i < spectators.length; i++){
var name = spectators;
Render.StringCustom(5,(y-27)+(i*-20),0,"h", [245, 245, 245, 255], icon);
Render.StringCustom(35,(y-25)+(i*-20),0,name,[255,255,255,255],font);
}
}
}
function onRoundStart(){
spectators = [];
}
Global.RegisterCallback("Draw", "multidropdown")
Global.RegisterCallback("Draw", "otkeybindings")
Global.RegisterCallback("Draw","getspectators");
Global.RegisterCallback("Draw","drawspectators");
Global.RegisterCallback("round_start","onRoundStart");
Global.RegisterCallback("Draw", "otwatermark")


Download : in deep of messages (в дне сообщений xd)
 
Последнее редактирование:
ᴄꜰɢ sʜᴏᴘ
Начинающий
Статус
Оффлайн
Регистрация
18 Янв 2021
Сообщения
128
Реакции[?]
15
Поинты[?]
0
Full ScreenShot:
Посмотреть вложение 135731
Only indicators:
Посмотреть вложение 135732
ChoiceUI (without selecting options):
Посмотреть вложение 135733
ChoiceUI (with selecting options):
Посмотреть вложение 135734
Code:
/* Self-API */
const getmultidrop = function(value, index) { const mask = 1 << index; return value & mask ? true : false; }
const addlabel = function(name) { return UI.AddLabel(name); }
const addcheckbox = function(name) { return UI.AddCheckbox(name); }
const addhotkey = function(name) { return UI.AddHotkey(name); }
const addtextbox = function(name) { return UI.AddTextbox(name); }
const addcolorpicker = function(name) { return UI.AddColorPicker(name); }
const addsliderint = function(name, first, second) { return UI.AddSliderInt(name, first, second); }
const addsliderfloat = function(name, first, second) { return UI.AddSliderFloat(name, first, second); }
const adddropdown = function(name, list) { return UI.AddDropdown(name, list); }
const addmultidropdown = function(name, list) { return UI.AddMultiDropdown(name, list); }
const getvalue = function(name) { return UI.GetValue("Script items", name); }
const setvalue = function(name, value) { return UI.SetValue("Script items", name, value); }
const getstring = function(name) { return UI.GetString("Script items", name); }
const ishotkeyactive = function(name) { return UI.IsHotkeyActive(name); }
const setenabled = function(name, enabledvalue) { return UI.SetEnabled("Script items", name, enabledvalue); }
const getcolor = function(name) { return UI.GetColor("Script items", name); }
const setcolor = function(name, color) { return UI.SetColor("Script items", name, color); }
const visible_value = function(drop, drop_value, name) { if(getvalue(drop) == drop_value) { setenabled(name, 1) }else{ setenabled(name, 0)} }
const unvisible_value = function(drop, drop_value, name) { if(getvalue(drop) == drop_value) { setenabled(name, 0) }else{ setenabled(name, 1)} }
const visible_string = function(drop, drop_string, name) { if(getstring(drop) == drop_string) { setenabled(name, 1) }else{ setenabled(name, 0)} }
const unvisible_string = function(drop, drop_string, name) { if(getstring(drop) == drop_string) { setenabled(name, 0) }else{ setenabled(name, 1)} }
/* UI */
addlabel ("onetap v4 indicators")
addmultidropdown("onetap indicators", ["Enable", "options"])
addmultidropdown("Keybindings: holding", ["Slow walk", "Fakeduck", "Auto peek", "Anti-Aim Inverter", "Safe point", "Body aim", "Doubletap", "Hide shots", "Damage override"])
addsliderint("", 0, 0)
/* HotkeyVariables */
var holded = "a"
var toogled = "f"
var slowwalk = holded
var fakeduck = holded
var autopeek = holded
var inverter = holded
var safepoint = holded
var bodyaim = holded
var doubletap = holded
var hideshots = holded
var damageoverride = holded
/* MultiDropdown */
function key_switch() {
if(getmultidrop(getvalue("onetap indicators"), 1)) { setenabled("Keybindings: holding", true) }else{ setenabled("Keybindings: holding", false) }
if(getmultidrop(getvalue("Keybindings: holding"), 0)) { slowwalk = holded }else{ slowwalk = toogled }
if(getmultidrop(getvalue("Keybindings: holding"), 1)) { fakeduck = holded }else{ fakeduck = toogled }
if(getmultidrop(getvalue("Keybindings: holding"), 2)) { autopeek = holded }else{ autopeek = toogled }
if(getmultidrop(getvalue("Keybindings: holding"), 3)) { inverter = holded }else{ inverter = toogled }
if(getmultidrop(getvalue("Keybindings: holding"), 4)) { safepoint = holded }else{ safepoint = toogled }
if(getmultidrop(getvalue("Keybindings: holding"), 5)) { bodyaim = holded }else{ bodyaim = toogled }
if(getmultidrop(getvalue("Keybindings: holding"), 6)) { doubletap = holded }else{ doubletap = toogled }
if(getmultidrop(getvalue("Keybindings: holding"), 7)) { hideshots = holded }else{ hideshots = toogled }
if(getmultidrop(getvalue("Keybindings: holding"), 8)) { damageoverride = holded }else{ damageoverride = toogled }
}
var y = Global.GetScreenSize()[1] / 2
function in_bounds(vec, x, y, x2, y2) { return (vec[0] > x) && (vec[1] > y) && (vec[0] < x2) && (vec[1] < y2) }
function keybindings() {
if(getmultidrop(getvalue("onetap indicators"), 0)) {
if(!World.GetServerString()) return;
var font = Render.AddFont( "MuseoSansCyrl-500", 10, 100);
const icon = Render.AddFont("untitled-font-1", 14, 10);
Render.GradientRect(0, y, 200, 17, 500, [ 0, 0, 0, 200 ], [ 0, 0, 0, 0 ]);
var h = [];
if (UI.IsHotkeyActive("Anti-Aim", "Extra", "Slow walk")) { h.push("Slow walk") }
if (UI.IsHotkeyActive("Anti-Aim", "Extra", "Fake duck")) { h.push("Fake duck") }
if (UI.IsHotkeyActive("Misc", "GENERAL", "Movement", "Auto peek")) { h.push("Auto peek") }
if (UI.IsHotkeyActive("Anti-Aim", "Fake angles", "Inverter")) { h.push("Anti-Aim Inverter") }
if (UI.IsHotkeyActive("Rage", "GENERAL", "General", "Force safe point")) { h.push("Safe point") }
if (UI.IsHotkeyActive("Rage", "GENERAL", "General", "Force body aim")) { h.push("Body aim") }
if (UI.IsHotkeyActive("Rage", "Exploits", "Doubletap")) { h.push("Doubletap") }
if (UI.IsHotkeyActive("Rage", "Exploits", "Hide shots")) { h.push("Hide shots") }
if (UI.IsHotkeyActive("Misc", "JAVASCRIPT", "Script items", "Min Damage")) { h.push("Damage override") }
if (h.length > 0) {
for (i = 0; i < h.length; i++) {
switch (h) {
case 'Slow walk':
Render.StringCustom(35, y+24 +(i*20), 0, h, [0, 0, 0, 180], font);
Render.StringCustom(5, y+22 +(i*20), 0, slowwalk, [245, 245, 245, 255], icon);
Render.StringCustom(35, y+24 +(i*20), 0, h, [255, 255, 255, 255], font);
break;
case 'Fake duck':
Render.StringCustom(35, y+24 +(i*20), 0, h, [0, 0, 0, 180], font);
Render.StringCustom(5, y+22 +(i*20), 0, fakeduck, [245, 245, 245, 255], icon);
Render.StringCustom(35, y+24 +(i*20), 0, h, [255, 255, 255, 255], font);
break;
case 'Auto peek':
Render.StringCustom(35, y+24 +(i*20), 0, h, [0, 0, 0, 180], font);
Render.StringCustom(5, y+22 +(i*20), 0, autopeek, [245, 245, 245, 255], icon);
Render.StringCustom(35, y+24 +(i*20), 0, h, [255, 255, 255, 255], font);
break;
case 'Anti-Aim Inverter':
Render.StringCustom(35, y+24 +(i*20), 0, h, [0, 0, 0, 180], font);
Render.StringCustom(5, y+22 +(i*20), 0, inverter, [245, 245, 245, 255], icon);
Render.StringCustom(35, y+24 +(i*20), 0, h, [255, 255, 255, 255], font);
break;
case 'Safe point':
Render.StringCustom(35, y+24 +(i*20), 0, h, [0, 0, 0, 180], font);
Render.StringCustom(5, y+22 +(i*20), 0, safepoint, [245, 245, 245, 255], icon);
Render.StringCustom(35, y+24 +(i*20), 0, h, [255, 255, 255, 255], font);
break;
case 'Body aim':
Render.StringCustom(35, y+24 +(i*20), 0, h, [0, 0, 0, 180], font);
Render.StringCustom(5, y+22 +(i*20), 0, bodyaim, [245, 245, 245, 255], icon);
Render.StringCustom(35, y+24 +(i*20), 0, h, [255, 255, 255, 255], font);
break;
case 'Doubletap':
Render.StringCustom(35, y+24 +(i*20), 0, h, [0, 0, 0, 180], font);
Render.StringCustom(5, y+22 +(i*20), 0, doubletap, [245, 245, 245, 255], icon);
Render.StringCustom(35, y+24 +(i*20), 0, h, [255, 255, 255, 255], font);
break;
case 'Hide shots':
Render.StringCustom(35, y+24 +(i*20), 0, h, [0, 0, 0, 180], font);
Render.StringCustom(5, y+22 +(i*20), 0, hideshots, [245, 245, 245, 255], icon);
Render.StringCustom(35, y+24 +(i*20), 0, h, [255, 255, 255, 255], font);
break;
case "Damage override":
Render.StringCustom(35, y+24 +(i*20), 0, h, [0, 0, 0, 180], font);
Render.StringCustom(5, y+22 +(i*20), 0, damageoverride, [245, 245, 245, 255], icon);
Render.StringCustom(35, y+24 +(i*20), 0, h, [255, 255, 255, 255], font);
break;
}
}
}
}
}
var spectators = [];
function getspectators(){
var ents = Entity.GetPlayers();
var local = Entity.GetLocalPlayer();
var localtarget = Entity.GetProp(local,"DT_BasePlayer","m_hObserverTarget");
if(!local)return;
spectators = [];
for(i = 0; i < ents.length;i++) {
if(Entity.IsAlive(local)) {
if(!ents || Entity.IsAlive(ents))continue;
var observer = Entity.GetProp(ents,"DT_BasePlayer","m_hObserverTarget");
if(!observer || observer == "m_hObserverTarget")continue;
if(observer == local)spectators.push(Entity.GetName(ents));
}else{
if(!ents || Entity.IsAlive(ents))continue;
var observer = Entity.GetProp(ents,"DT_BasePlayer","m_hObserverTarget");
if(!observer || observer == "m_hObserverTarget")continue;
if(observer == localtarget)spectators.push(Entity.GetName(ents));
}
}
}
function drawspectators(){
if(getmultidrop(getvalue("onetap indicators"), 0)) {
var font = Render.AddFont( "MuseoSansCyrl-500", 10, 100);
var icon = Render.AddFont("untitled-font-1", 14, 10);
for(i = 0; i < spectators.length; i++){
var name = spectators;
Render.StringCustom(5,(y-27)+(i*-20),0,"h", [245, 245, 245, 255], icon);
Render.StringCustom(35,(y-25)+(i*-20),0,name,[255,255,255,255],font);
}
}
}
function onRoundStart(){
spectators = [];
}
Global.RegisterCallback("Draw", "key_switch")
Global.RegisterCallback("Draw", "keybindings")
Global.RegisterCallback("Draw","getspectators");
Global.RegisterCallback("Draw","drawspectators");
Global.RegisterCallback("round_start","onRoundStart");
Download:
это что в4?
или я чет не понимаю

и где шрифты
 
SenkoTech dev
Пользователь
Статус
Оффлайн
Регистрация
4 Янв 2020
Сообщения
327
Реакции[?]
113
Поинты[?]
7K

Вложения

Начинающий
Статус
Оффлайн
Регистрация
3 Авг 2020
Сообщения
25
Реакции[?]
1
Поинты[?]
1K
к
Full ScreenShot:
Посмотреть вложение 135731
Only indicators:
Посмотреть вложение 135732
ChoiceUI (without selecting options):
Посмотреть вложение 135733
ChoiceUI (with selecting options):
Посмотреть вложение 135734
Code:
/* Self-API */
const getmultidrop = function(value, index) { const mask = 1 << index; return value & mask ? true : false; }
const addlabel = function(name) { return UI.AddLabel(name); }
const addcheckbox = function(name) { return UI.AddCheckbox(name); }
const addhotkey = function(name) { return UI.AddHotkey(name); }
const addtextbox = function(name) { return UI.AddTextbox(name); }
const addcolorpicker = function(name) { return UI.AddColorPicker(name); }
const addsliderint = function(name, first, second) { return UI.AddSliderInt(name, first, second); }
const addsliderfloat = function(name, first, second) { return UI.AddSliderFloat(name, first, second); }
const adddropdown = function(name, list) { return UI.AddDropdown(name, list); }
const addmultidropdown = function(name, list) { return UI.AddMultiDropdown(name, list); }
const getvalue = function(name) { return UI.GetValue("Script items", name); }
const setvalue = function(name, value) { return UI.SetValue("Script items", name, value); }
const getstring = function(name) { return UI.GetString("Script items", name); }
const ishotkeyactive = function(name) { return UI.IsHotkeyActive(name); }
const setenabled = function(name, enabledvalue) { return UI.SetEnabled("Script items", name, enabledvalue); }
const getcolor = function(name) { return UI.GetColor("Script items", name); }
const setcolor = function(name, color) { return UI.SetColor("Script items", name, color); }
const visible_value = function(drop, drop_value, name) { if(getvalue(drop) == drop_value) { setenabled(name, 1) }else{ setenabled(name, 0)} }
const unvisible_value = function(drop, drop_value, name) { if(getvalue(drop) == drop_value) { setenabled(name, 0) }else{ setenabled(name, 1)} }
const visible_string = function(drop, drop_string, name) { if(getstring(drop) == drop_string) { setenabled(name, 1) }else{ setenabled(name, 0)} }
const unvisible_string = function(drop, drop_string, name) { if(getstring(drop) == drop_string) { setenabled(name, 0) }else{ setenabled(name, 1)} }
/* UI */
addlabel ("onetap v4 indicators")
addmultidropdown("onetap indicators", ["Enable", "options"])
addmultidropdown("Keybindings: holding", ["Slow walk", "Fakeduck", "Auto peek", "Anti-Aim Inverter", "Safe point", "Body aim", "Doubletap", "Hide shots", "Damage override"])
addsliderint("", 0, 0)
/* HotkeyVariables */
var holded = "a"
var toogled = "f"
var slowwalk = holded
var fakeduck = holded
var autopeek = holded
var inverter = holded
var safepoint = holded
var bodyaim = holded
var doubletap = holded
var hideshots = holded
var damageoverride = holded
/* MultiDropdown */
function key_switch() {
if(getmultidrop(getvalue("onetap indicators"), 1)) { setenabled("Keybindings: holding", true) }else{ setenabled("Keybindings: holding", false) }
if(getmultidrop(getvalue("Keybindings: holding"), 0)) { slowwalk = holded }else{ slowwalk = toogled }
if(getmultidrop(getvalue("Keybindings: holding"), 1)) { fakeduck = holded }else{ fakeduck = toogled }
if(getmultidrop(getvalue("Keybindings: holding"), 2)) { autopeek = holded }else{ autopeek = toogled }
if(getmultidrop(getvalue("Keybindings: holding"), 3)) { inverter = holded }else{ inverter = toogled }
if(getmultidrop(getvalue("Keybindings: holding"), 4)) { safepoint = holded }else{ safepoint = toogled }
if(getmultidrop(getvalue("Keybindings: holding"), 5)) { bodyaim = holded }else{ bodyaim = toogled }
if(getmultidrop(getvalue("Keybindings: holding"), 6)) { doubletap = holded }else{ doubletap = toogled }
if(getmultidrop(getvalue("Keybindings: holding"), 7)) { hideshots = holded }else{ hideshots = toogled }
if(getmultidrop(getvalue("Keybindings: holding"), 8)) { damageoverride = holded }else{ damageoverride = toogled }
}
var y = Global.GetScreenSize()[1] / 2
function in_bounds(vec, x, y, x2, y2) { return (vec[0] > x) && (vec[1] > y) && (vec[0] < x2) && (vec[1] < y2) }
function keybindings() {
if(getmultidrop(getvalue("onetap indicators"), 0)) {
if(!World.GetServerString()) return;
var font = Render.AddFont( "MuseoSansCyrl-500", 10, 100);
const icon = Render.AddFont("untitled-font-1", 14, 10);
Render.GradientRect(0, y, 200, 17, 500, [ 0, 0, 0, 200 ], [ 0, 0, 0, 0 ]);
var h = [];
if (UI.IsHotkeyActive("Anti-Aim", "Extra", "Slow walk")) { h.push("Slow walk") }
if (UI.IsHotkeyActive("Anti-Aim", "Extra", "Fake duck")) { h.push("Fake duck") }
if (UI.IsHotkeyActive("Misc", "GENERAL", "Movement", "Auto peek")) { h.push("Auto peek") }
if (UI.IsHotkeyActive("Anti-Aim", "Fake angles", "Inverter")) { h.push("Anti-Aim Inverter") }
if (UI.IsHotkeyActive("Rage", "GENERAL", "General", "Force safe point")) { h.push("Safe point") }
if (UI.IsHotkeyActive("Rage", "GENERAL", "General", "Force body aim")) { h.push("Body aim") }
if (UI.IsHotkeyActive("Rage", "Exploits", "Doubletap")) { h.push("Doubletap") }
if (UI.IsHotkeyActive("Rage", "Exploits", "Hide shots")) { h.push("Hide shots") }
if (UI.IsHotkeyActive("Misc", "JAVASCRIPT", "Script items", "Min Damage")) { h.push("Damage override") }
if (h.length > 0) {
for (i = 0; i < h.length; i++) {
switch (h) {
case 'Slow walk':
Render.StringCustom(35, y+24 +(i*20), 0, h, [0, 0, 0, 180], font);
Render.StringCustom(5, y+22 +(i*20), 0, slowwalk, [245, 245, 245, 255], icon);
Render.StringCustom(35, y+24 +(i*20), 0, h, [255, 255, 255, 255], font);
break;
case 'Fake duck':
Render.StringCustom(35, y+24 +(i*20), 0, h, [0, 0, 0, 180], font);
Render.StringCustom(5, y+22 +(i*20), 0, fakeduck, [245, 245, 245, 255], icon);
Render.StringCustom(35, y+24 +(i*20), 0, h, [255, 255, 255, 255], font);
break;
case 'Auto peek':
Render.StringCustom(35, y+24 +(i*20), 0, h, [0, 0, 0, 180], font);
Render.StringCustom(5, y+22 +(i*20), 0, autopeek, [245, 245, 245, 255], icon);
Render.StringCustom(35, y+24 +(i*20), 0, h, [255, 255, 255, 255], font);
break;
case 'Anti-Aim Inverter':
Render.StringCustom(35, y+24 +(i*20), 0, h, [0, 0, 0, 180], font);
Render.StringCustom(5, y+22 +(i*20), 0, inverter, [245, 245, 245, 255], icon);
Render.StringCustom(35, y+24 +(i*20), 0, h, [255, 255, 255, 255], font);
break;
case 'Safe point':
Render.StringCustom(35, y+24 +(i*20), 0, h, [0, 0, 0, 180], font);
Render.StringCustom(5, y+22 +(i*20), 0, safepoint, [245, 245, 245, 255], icon);
Render.StringCustom(35, y+24 +(i*20), 0, h, [255, 255, 255, 255], font);
break;
case 'Body aim':
Render.StringCustom(35, y+24 +(i*20), 0, h, [0, 0, 0, 180], font);
Render.StringCustom(5, y+22 +(i*20), 0, bodyaim, [245, 245, 245, 255], icon);
Render.StringCustom(35, y+24 +(i*20), 0, h, [255, 255, 255, 255], font);
break;
case 'Doubletap':
Render.StringCustom(35, y+24 +(i*20), 0, h, [0, 0, 0, 180], font);
Render.StringCustom(5, y+22 +(i*20), 0, doubletap, [245, 245, 245, 255], icon);
Render.StringCustom(35, y+24 +(i*20), 0, h, [255, 255, 255, 255], font);
break;
case 'Hide shots':
Render.StringCustom(35, y+24 +(i*20), 0, h, [0, 0, 0, 180], font);
Render.StringCustom(5, y+22 +(i*20), 0, hideshots, [245, 245, 245, 255], icon);
Render.StringCustom(35, y+24 +(i*20), 0, h, [255, 255, 255, 255], font);
break;
case "Damage override":
Render.StringCustom(35, y+24 +(i*20), 0, h, [0, 0, 0, 180], font);
Render.StringCustom(5, y+22 +(i*20), 0, damageoverride, [245, 245, 245, 255], icon);
Render.StringCustom(35, y+24 +(i*20), 0, h, [255, 255, 255, 255], font);
break;
}
}
}
}
}
var spectators = [];
function getspectators(){
var ents = Entity.GetPlayers();
var local = Entity.GetLocalPlayer();
var localtarget = Entity.GetProp(local,"DT_BasePlayer","m_hObserverTarget");
if(!local)return;
spectators = [];
for(i = 0; i < ents.length;i++) {
if(Entity.IsAlive(local)) {
if(!ents || Entity.IsAlive(ents))continue;
var observer = Entity.GetProp(ents,"DT_BasePlayer","m_hObserverTarget");
if(!observer || observer == "m_hObserverTarget")continue;
if(observer == local)spectators.push(Entity.GetName(ents));
}else{
if(!ents || Entity.IsAlive(ents))continue;
var observer = Entity.GetProp(ents,"DT_BasePlayer","m_hObserverTarget");
if(!observer || observer == "m_hObserverTarget")continue;
if(observer == localtarget)spectators.push(Entity.GetName(ents));
}
}
}
function drawspectators(){
if(getmultidrop(getvalue("onetap indicators"), 0)) {
var font = Render.AddFont( "MuseoSansCyrl-500", 10, 100);
var icon = Render.AddFont("untitled-font-1", 14, 10);
for(i = 0; i < spectators.length; i++){
var name = spectators;
Render.StringCustom(5,(y-27)+(i*-20),0,"h", [245, 245, 245, 255], icon);
Render.StringCustom(35,(y-25)+(i*-20),0,name,[255,255,255,255],font);
}
}
}
function onRoundStart(){
spectators = [];
}
Global.RegisterCallback("Draw", "key_switch")
Global.RegisterCallback("Draw", "keybindings")
Global.RegisterCallback("Draw","getspectators");
Global.RegisterCallback("Draw","drawspectators");
Global.RegisterCallback("round_start","onRoundStart");
Download:
ты можешь кинуть нормальные шрифты + иконка дт не та как на скрине
 
Сверху Снизу