JS-скрипт Movement keys OTC3 [w a s d + speed]

onetap.su technology
Пользователь
Статус
Оффлайн
Регистрация
20 Июн 2020
Сообщения
383
Реакции[?]
110
Поинты[?]
3K
крч мне просто лень было делать так что бы оно было по центру экрана у всех,кому не лень мб сделают,буду благодарен :)

1636801770389.png

JavaScript:
//щиткод от yougame.biz/members/375177
function g(){
Render.FilledRect(627, 730, 220, 70, [44, 48, 55, 100])
}

// velocity
function getVelocity() {
    velocity = Entity.GetProp(Entity.GetLocalPlayer(), "CBasePlayer", "m_vecVelocity[0]");
    speed = Math.sqrt(velocity[0] * velocity[0] + velocity[1] * velocity[1]);
    return speed;
}
function draw() {
    
    Render.String(700, 754, 0, "Speed : " + getVelocity().toFixed(0), [255, 255, 255, 255]);
}



function dollar()
{
    
    Render.String(630,735,0, "$", [100,723,33,255])
}


function main1()
{
    
    Render.String(700,738,0, "Last: invalid", [255, 255, 255, 130])
}


function wasd1() {
    
    if (Input.IsKeyPressed(0x57)) {
        
        Render.String(665,771,0, " \ W  ", [255, 255, 255, 130])
    }
    else {
        Render.String(665,771,0, "   _  ", [255, 255, 255, 130]);
    }
}



function wasd() {
    
    Render.String(634,770,0, "Keys: ", [255, 255, 255, 130])
    
    if (Input.IsKeyPressed(0x41)) {
        
        Render.String(680,771,0, " \ A ", [255, 255, 255, 130])
    }
    else {
        Render.String(678,771,0, "   _  ", [255, 255, 255, 130]);
    }
}



function wasd3() {
    
    if (Input.IsKeyPressed(0x44)) {
        
        Render.String(705,771,0, " \ D  ", [255, 255, 255, 130])
    }
    else {
        Render.String(705,771,0, "   _  ", [255, 255, 255, 130]);
    }
}



function wasd5() {
    
    if (Input.IsKeyPressed(0x53)) {
        
        Render.String(694,771,0, " \ S  ", [255, 255, 255, 130])
    }
    else {
        
        Render.String(695,771,0, "  _  ", [255, 255, 255, 130]);
    }
}





function jump() {
    
    if (Input.IsKeyPressed(0x20)) {
        
        Render.String(740,771,0, " \ J  ", [255, 255, 255, 130])
    }
    else {
        
        Render.String(740,771,0, "  _  ", [255, 255, 255, 130]);
    }
}

function ctrl() {
    
    if (Input.IsKeyPressed(0x11)) {
        
        Render.String(755,771,0, " \ C  ", [255, 255, 255, 130])
    }
    else {
        
        Render.String(755,771,0, "  _  ", [255, 255, 255, 130]);
    }
}
function caps() {
    
    if (Input.IsKeyPressed(0x14)) {
        
        Render.String(755,771,0, " \ C  ", [255, 255, 255, 130])
    }
    else {
        
        Render.String(755,771,0, "    ", [255, 255, 255, 130]);
    }
}

Cheat.RegisterCallback("Draw", "dollar")
Cheat.RegisterCallback("Draw", "draw");
Cheat.RegisterCallback("Draw", "g")
Cheat.RegisterCallback("Draw", "main1")
Cheat.RegisterCallback("Draw", "wasd1");
Cheat.RegisterCallback("Draw", "wasd3");
Cheat.RegisterCallback("Draw", "wasd");
Cheat.RegisterCallback("Draw", "wasd5");
Cheat.RegisterCallback("Draw", "jump");
Cheat.RegisterCallback("Draw", "ctrl");
Cheat.RegisterCallback("Draw", "caps");


UI.AddCheckbox("watermark")

function watermark() {
    if (UI.GetValue("Misc", "JAVASCRIPT", "Script items", "watermark")) {
    if (!World.GetServerString()) return;
    var today = new Date();
    var username = UI.GetString("Misc", "Username");
    var hours1 = today.getHours();
    var minutes1 = today.getMinutes();
    var seconds1 = today.getSeconds();
    var hours = hours1 <= 9 ? "0" + today.getHours() + ":" : today.getHours() + ":";
    var minutes = minutes1 <= 9 ? "0" + today.getMinutes() + ":" : today.getMinutes() + ":";
    var seconds = seconds1 <= 9 ? "0" + today.getSeconds() : today.getSeconds();
    var serverip = World.GetServerString();
    var ping = Math.floor(Global.Latency() * 1000 / 1.5);
    var font = Render.AddFont("Verdana", 7, 400);
    var text = "incrackium.ooo | " + "nolove" + " | ping: " +ping+ "ms | " + hours + minutes + seconds;
    var h = 18;
    var w = Render.TextSizeCustom(text, font)[0] + 8;
    var x = Global.GetScreenSize()[0];
    var y = 10;
    x = x - w - 10;
      if(UI.GetValue("Script items", "Watermark Style") == 0){
        Render.GradientRect(x, y - 1, w / 2, 2, 2,  [55, 177, 218, 255], [203, 70, 205 , 255]);
        Render.GradientRect(x + w / 2, y - 1, w / 2, 2, 2, [203, 70, 205 , 255], [204, 210, 53, 255]);}
            if(UI.GetValue("Scirpt items", "Watermark Style") == 1){
                Render.GradientRect(x, y - 1, w / 2, 1, 1,  [55, 177, 218, 255], [203, 70, 205 , 255]);
        Render.GradientRect(x + w / 2, y - 1, w / 2, 1, 1, [203, 70, 205 , 255], [204, 210, 53, 255]);}
//ватермарка с morgentech v2,просто бонусик
    Render.StringCustom(x + 4, y + 4, 0, text, [255, 255, 255, 255], font);
    }
}
Cheat.RegisterCallback("Draw", "watermark");

*Этот скрипт я делал еще на вантап в4,но решил реализовать с нуля на кряк. на в3 там вообще пиздец код,я эти кнопки отображал по биндам xDD
 
Сверху Снизу