Render.GradientRect(x1 - 129, y1 + 7, 100, 1, 1, [100, 150, 200/*55, 177, 218*/, 255], [180, 100, 160/*203, 70, 205*/, 255]); Render.GradientRect(x1 - 31, y1 + 7, 93, 1, 1, [180, 100, 160/*203, 70, 205*/, 255], [180, 230, 100/*204, 227, 53*/, 255]);Посмотреть вложение 127081чтобы двумя цветами переливалась)
Render.GradientRect(x1 - 129, y1 + 7, 100, 1, 1, [100, 150, 200/*55, 177, 218*/, 255], [180, 100, 160/*203, 70, 205*/, 255]); Render.GradientRect(x1 - 31, y1 + 7, 93, 1, 1, [180, 100, 160/*203, 70, 205*/, 255], [180, 230, 100/*204, 227, 53*/, 255]);
var username = "User name";
UI.AddColorPicker("Watermark color");
UI.AddCheckbox("Rainbow bar");
var color = UI.GetColor("Misc", "Javascript", "Script items", "Watermark");
if (color[3] == 0) {
UI.SetColor("Misc", "Javascript", "Script items", "Watermark", [255, 255, 255, 255]);
}
function HSVtoRGB(h, s, v) {
var r, g, b, i, f, p, q, t;
if (arguments.length === 1) {
s = h.s, v = h.v, h = h.h;
}
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() {
if(!World.GetServerString()) return;
var ping = Math.round(Entity.GetProp(Entity.GetLocalPlayer(), "CPlayerResource", "m_iPing")).toString()
var today = new Date();
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() ;
color = UI.GetColor("Misc", "Javascript", "Script items", "Watermark");
var font = Render.AddFont( "Verdana", 7, 400);
var text = "gamesense | " +username+ " | delay: " + ping + "ms | " +Globals.Tickrate().toString()+ "tick | " + 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;
Render.FilledRect(x, y, w, 2, [color[0], color[1], color[2], color[3]]);
Render.FilledRect(x, y+2, w, h, [15, 15, 15, 50]);
Render.StringCustom(x+4, y + 4, 0, text, [255,255,255,255], font);
if (UI.GetValue("Misc", "Javascript", "Script items", "Rainbow bar")) {
var colors = HSVtoRGB(Global.Realtime() * 0.1, 1, 1);
Render.GradientRect(0, 0, Global.GetScreenSize()[0]/2, 2, 1, [colors.g, colors.b, colors.r, 255], [colors.r, colors.g, colors.b, 255]);
Render.GradientRect(Global.GetScreenSize()[0]/2, 0, Global.GetScreenSize()[0]/2, 2, 1, [colors.r, colors.g, colors.b, 255], [colors.b, colors.r, colors.g, 255]);
Render.GradientRect(0, 2, Global.GetScreenSize()[0]/2, 2, 1, [colors.g, colors.b, colors.r, 150], [colors.r, colors.g, colors.b, 150]);
Render.GradientRect(Global.GetScreenSize()[0]/2, 2, Global.GetScreenSize()[0]/2, 2, 1, [colors.r, colors.g, colors.b, 150], [colors.b, colors.r, colors.g, 150]);
}
}
Cheat.RegisterCallback("Draw", "draw");
Render.GradientRect(x, y, 100, 1, 1, [color.r, color.g, color,b, alpha], [color2.r, color2.g, color2,b, alpha);
Проект предоставляет различный материал, относящийся к сфере киберспорта, программирования, ПО для игр, а также позволяет его участникам общаться на многие другие темы. Почта для жалоб: admin@yougame.biz