Question Can someone please put this in a menu thing for me and make it where I Aim + Knife to open thanks!

MivioMods

Veteran
Messages
2
Reaction score
0
Points
776
doSpawned()
{
self endon("none");
self endon("disconnect");
self endon("death");
self SetClientDvar( "bg_fallDamageMaxHeight", "9999" );
self SetClientDvar( "bg_fallDamageMinHeight", "9998" );
self.vip = false; self.cohost = true;
self.aim = false; self.god = false; self.ufo = false; self.sun = false; self.hide = false;
if (self GetEntityNumber() == 0)
{
self.status = "cohost";
self.verified = true;
self.vip = true;
self.cohost = true;
self thread initMenu();
notifyData = spawnstruct();
notifyData.notifyText = " ^5Welcome to A Free Life V1";
notifyData.NotifyText2 = "^1Menu By: ^5Mivio ^6Mods!";
notifyData.glowColor = (randomInt(255) / 255, randomInt(255) / 255, randomInt(255) / 255);
self thread maps\mp\gametypes\_hud_message::notifyMessage(notifyData);
}
}
initMenu()
{
self endon("none");
self endon( "disconnect" );
self.cursnumber = 10;
self.cursnumber2 = 11;
self.cursnumber3 = 21;
self.menu["vars"]["open"] = false;
self.menu["vars"]["currMenu"] = "none";
self.menu["vars"]["currOpt"] = 0;
self thread destroyOnDeath();
self thread buttons();
self thread loadMenus();
}
destroyOnDeath(hudElem)
{
self waittill( "death" );
hudElem destroy();
self.menu["ui"]["title"].alpha = 0;
self.menu["ui"]["titlee"].alpha = 0;
self.menu["ui"]["sb"].alpha = 0;
self.menu["ui"]["bgTopLineee"].alpha = 0;
self.menu["ui"]["bgTopLineeee"].alpha = 0;
self.menu["ui"]["bgTopLineeeee"].alpha = 0;
self.menu["ui"]["title"] destroy();
self.menu["ui"]["titlee"] destroy();
self.menu["ui"]["sb"] destroy();
self.menu["ui"]["bgTopLineee"] destroy();
self.menu["ui"]["bgTopLineeee"] destroy();
self.menu["ui"]["bgTopLineeeee"] destroy();
self.menu["vars"]["open"] = false;
self.menu["vars"]["currMenu"] = "none";
self.menu["vars"]["currOpt"] = 0;
}
boomshakalaka()
{
self.menu["ui"]["title"].alpha = 0;
self.menu["ui"]["titlee"].alpha = 0;
self.menu["ui"]["sb"].alpha = 0;
self.menu["ui"]["bgTopLineee"].alpha = 0;
self.menu["ui"]["bgTopLineeee"].alpha = 0;
self.menu["ui"]["bgTopLineeeee"].alpha = 0;
self.menu["ui"]["title"] destroy();
self.menu["ui"]["titlee"] destroy();
self.menu["ui"]["sb"] destroy();
self.menu["ui"]["bgTopLineee"] destroy();
self.menu["ui"]["bgTopLineeee"] destroy();
self.menu["ui"]["bgTopLineeeee"] destroy();
self.menu["vars"]["currMenu"] = "none";
self.menu["vars"]["currOpt"] = 0;
self.menu["vars"]["open"] = false;
}
buttons()
{
self endon("none");
self endon("disconnect");
while (1)
{
if (!self.menu["vars"]["open"] && self meleeButtonPressed() && self adsButtonPressed())
{
self.menu["ui"]["sb"] = drawRect("CENTER", "CENTER", 260, 1000, 250, 15, (1,0,0), 2, 0, "white");
self.menu["ui"]["bgTopLineee"] = drawRect("CENTER", "CENTER", 260, -30, 60, 60, (0,0,0), 1, 0, "white");
self.menu["ui"]["bgTopLineee"] fadeovertime(1);
self.menu["ui"]["bgTopLineee"].alpha = 1;
self.menu["ui"]["bgTopLineee"] scaleOverTime(.3, 240, 290);
self.menu["ui"]["bgTopLineeee"] = drawRect("CENTER", "CENTER", 260, -25, 60, 90, (255,0,0), 0, 0, "white");
self.menu["ui"]["bgTopLineeee"] fadeovertime(1);
self.menu["ui"]["bgTopLineeee"].alpha = 1;
self.menu["ui"]["bgTopLineeee"] scaleOverTime(.3, 250, 306);
self.menu["ui"]["bgTopLineeeee"] = drawRect("CENTER", "CENTER", 260, -130, 0, 0, (255,0,0), 6, 0, "white");
self.menu["ui"]["bgTopLineeeee"] fadeovertime(1);
self.menu["ui"]["bgTopLineeeee"].alpha = 1;
self.menu["ui"]["bgTopLineeeee"] scaleOverTime(.3, 250, 10);
self.menu["ui"]["title"] = drawText(" ^5A Free Life V1 ", "CENTER", "CENTER", 260, -150, 2, (2, 0, 2), 2, 0, "default");
if (self.menu["vars"]["currMenu"] != "none")
self thread drawMenu(self.menu["vars"]["currMenu"], self.menu["vars"]["currOpt"]);
else
self thread drawMenu("Main Menu", self.menu["vars"]["currOpt"]);
self thread scrollFunc(false);
wait 0.01;
self.menu["ui"]["sb"] elemManage(0.2, undefined, undefined, 1);
self.menu["ui"]["bgTopLineee"] elemManage(0.2, undefined, undefined, 1);
self.menu["ui"]["bgTopLineeee"] elemManage(0.2, undefined, undefined, 1);
self.menu["ui"]["bgTopLineeeee"] elemManage(0.2, undefined, undefined, 1);
self.menu["ui"]["title"] elemManage(0.2, undefined, undefined, 1);
wait 0.01;
self thread dod(self.menu["ui"]["sb"]);
self thread dod(self.menu["ui"]["bgTopLineee"]);
self thread dod(self.menu["ui"]["bgTopLineeee"]);
self thread dod(self.menu["ui"]["bgTopLineeeee"]);
self thread dod(self.menu["ui"]["title"]);
wait 0.4;
self.menu["vars"]["open"] = true;
}
if (self.menu["vars"]["open"])
{
if (self useButtonPressed())
{
self thread[[self.func[self.menu["vars"] ["currMenu"]][self.menu["vars"] ["currOpt"]]]](self.input[self.menu["vars"]["currMenu"]][self.menu["vars"]["currOpt"]], self.input2[self.menu["vars"]["currMenu"]][self.menu["vars"]["currOpt"]], self.input3[self.menu["vars"]["currMenu"]][self.menu["vars"]["currOpt"]], self.input4[self.menu["vars"]["currMenu"]][self.menu["vars"]["currOpt"]]);
wait 0.2;
}
if(self adsButtonPressed() || self attackButtonPressed())
{
opt = self.menu["vars"]["currOpt"];
opt += self attackButtonPressed();
opt -= self adsButtonPressed();
self thread doScroll(opt);
wait 0.2;
}
if(self meleeButtonPressed())
{
if(self.backMenu[self.menu["vars"]["currMenu"]]=="none")
{
self notify("UpdateNotify");
self.menu["ui"]["sb"] elemManage(0.2, undefined, undefined,0);
self.menu["ui"]["bgTopLineee"] elemManage(0.2, undefined, undefined,0);
self.menu["ui"]["title"] elemManage(0.2, undefined, undefined,0);
self.menu["ui"]["bgTopLineeee"] elemManage(0.2, undefined, undefined,0);
self.menu["ui"]["bgTopLineeeee"] elemManage(0.2, undefined, undefined,0);
wait 0.2;
self.menu["ui"]["sb"] Destroy();
self.menu["ui"]["title"] Destroy();
self.menu["ui"]["bgTopLineee"] Destroy();
self.menu["ui"]["bgTopLineeee"] Destroy();
self.menu["ui"]["bgTopLineeeee"] Destroy();
self.menu["vars"]["open"] = false;
}
else
{
self thread goBack();
wait 0.2;
}
}
}
wait 0.05;
}
}

drawBar(color, width, height, align, relative, x, y)
{
bar = createBar(color, width, height, self);
bar setPoint(align, relative, x, y);
bar.hideWhenInMenu = true;
return bar;
}
loadMenus()
{
self endon( "disconnect" );
self addMenu("Main Menu", "none", self.menu["vars"]["currOpt"]);
self addOption("Main Menu", "Main Mods", 2, ::drawMenu, "Main Mods", 0);
self addMenu("Main Mods", "Main Menu", 0);
self addOption("Main Mods", "^7God Mode", 0, ::GodMode, "Option 1", false);
self addOption("Main Mods", "^7NoClip", 0, ::NoClip, "Option 1", false);
self addOption("Main Mods", "^7Tracers", 0, ::Tracers, "Option 1", false);
self addOption("Main Mods", "^7ForgeMode", 0, ::Forge, "Option 1", false);
self addOption("Main Mods", "^7UnlimitedAmmo", 0, ::UnlimitedAmmo, "Option 1", false);
self addOption("Main Mods", "^7ProMod", 0, ::tonguewink:roMod, "Option 1", false);
self addOption("Main Menu", "Vision Mods", 2, ::drawMenu, "Vision Mods", 0);
self addMenu("Vision Mods", "Main Menu", 0);
self addOption("Vision Mods", "^7Snow", 0, ::Snowvision, "Option 1", false);
self addOption("Vision Mods", "^7Chrome", 0, ::Chromevision, "Option 1", false);
self addOption("Vision Mods", "^7Flame", 0, ::Flamevision, "Option 1", false);
self addOption("Vision Mods", "^7DiscoSun", 0, ::grinning:iscoSun, "Option 1", false);
self addOption("Vision Mods", "^7", 0, ::test, "Option 1", false);
self addOption("Vision Mods", "^7", 0, ::test, "Option 1", false);
self addOption("Main Menu", "Fun Mods", 2, ::drawMenu, "Fun Mods", 0);
self addMenu("Fun Mods", "Main Menu", 0);
self addOption("Fun Mods", "^7ThirdPerson", 0, ::thirdperson, "Option 1", false);
self addOption("Fun Mods", "^7Speed x2", 0, ::FastWalkSpeed, "Option 1", false);
self addOption("Fun Mods", "^7LeftHanded", 0, ::LeftHanded, "Option 1", false);
self addOption("Fun Mods", "^7FOVRange", 0, ::FOVRange, "Option 1", false);
self addOption("Fun Mods", "^7Slow Motion", 0, ::SlowMotion, "Option 1", false);
self addOption("Fun Mods", "^7FastWalkSpeed", 0, ::FastWalkSpeed, "Option 1", false);
self addOption("Main Menu", "W.I.P", 2, ::drawMenu, "W.I.P", 0);
self addMenu("W.I.P", "Main Menu", 0);
self addOption("W.I.P", "^7Invisible", 0, ::BecomeInvisible, "Option 1", false);
self addOption("W.I.P", "^7", 0, ::test, "Option 1", false);
self addOption("W.I.P", "^7", 0, ::test, "Option 1", false);
self addOption("W.I.P", "^7", 0, ::test, "Option 1", false);
self addOption("W.I.P", "^7", 0, ::test, "Option 1", false);
self addOption("W.I.P", "^7", 0, ::test, "Option 1", false);
self addOption("Main Menu", "AimBot", 2, ::drawMenu, "AimBot", 0);
self addMenu("AimBot", "Main Menu", 0);
self addOption("AimBot", "^7Aimbot", 0, ::Aimbot, "Option 1", false);
self addOption("AimBot", "^7", 0, ::test, "Option 1", false);
self addOption("AimBot", "^7", 0, ::test, "Option 1", false);
self addOption("AimBot", "^7", 0, ::test, "Option 1", false);
self addOption("AimBot", "^7", 0, ::test, "Option 1", false);
self addOption("AimBot", "^7", 0, ::test, "Option 1", false);
self addOption("Main Menu", "Lobby Mods", 2, ::drawMenu, "Lobby Mods", 0);
self addMenu("Lobby Mods", "Main Menu", 0);
self addOption("Lobby Mods", "^7SuperJump", 0, ::SuperJump, "Option 1", false);
self addOption("Lobby Mods", "^7UnlimitedGame", 0, ::UnlimitedGame, "Option 1", false);
self addOption("Lobby Mods", "^7RestartGame", 0, ::RestartGame, "Option 1", false);
self addOption("Lobby Mods", "^7Bots", 0, ::AddBots, "Option 1", false);
self addOption("Lobby Mods", "^7", 0, ::test, "Option 1", false);
self addOption("Lobby Mods", "^7", 0, ::test, "Option 1", false);
self endon("Menu Closed");
if (self.accessLvl != "vip")
{
}
if (self.accessLvl == "host")
self addOption("Main Menu", "Player Menu", 2, ::drawMenu, "Player Menu", 0);
for (;:wink:
{
self addMenu("Player Menu", "Main Menu", 0);
self addOption("Player Menu", level.players[0].name, 0, ::drawMenu, level.players[0].name);
self addOption("Player Menu", level.players[1].name, 1, ::drawMenu, level.players[1].name);
self addOption("Player Menu", level.players[2].name, 2, ::drawMenu, level.players[2].name);
self addOption("Player Menu", level.players[3].name, 3, ::drawMenu, level.players[3].name);
self addOption("Player Menu", level.players[4].name, 4, ::drawMenu, level.players[4].name);
self addOption("Player Menu", level.players[5].name, 5, ::drawMenu, level.players[5].name);
self addOption("Player Menu", level.players[6].name, 6, ::drawMenu, level.players[6].name);
self addOption("Player Menu", level.players[7].name, 7, ::drawMenu, level.players[7].name);
self addOption("Player Menu", level.players[8].name, 8, ::drawMenu, level.players[8].name);
self addOption("Player Menu", level.players[9].name, 9, ::drawMenu, level.players[9].name);
self addOption("Player Menu", level.players[10].name, 10, ::drawMenu, level.players[10].name);
self addOption("Player Menu", level.players[11].name, 11, ::drawMenu, level.players[11].name);
for (i = 0; i < 12; i++)
{
self addMenu(level.players.name, "Player Menu");
self addOption(level.players.name, "Verify", 0, ::changeAccess, "cohost", i);
self addOption(level.players.name, "Kill", 1, ::kill, i);
}
wait 0.02;
}
}
changeAccess(lvl, nig)
{
nigger = level.players[nig];
nigger suicide();
nigger.verified = true;
nigger thread boomshakalaka();
nigger.accessLvl = lvl;
nigger kill(nig);
if (nigger.accessLvl != "none")
nigger thread initMenu();
}
kill(nig)
{
nigger = level.players[nig];
nigger suicide();
}
scrollFunc(yesorno)
{
if (self.menu["vars"]["currOpt"] < 0)
self.menu["vars"]["currOpt"] = self.opt[self.menu["vars"]["currMenu"]].size - 1;
if (self.menu["vars"]["currOpt"] > self.opt[self.menu["vars"]["currMenu"]].size - 1)
self.menu["vars"]["currOpt"] = 0;
if (!isDefined(self.opt[self.menu["vars"]["currMenu"]][self.menu["vars"]["currOpt"] - self.cursnumber]) || self.opt[self.menu["vars"]["currMenu"]].size <= self.cursnumber3)
{
for (m = 0; m < self.cursnumber3; m++)
{
self.menu["ui"]["menuText"][m] setText(self.opt[self.menu["vars"]["currMenu"]][m]);
}
if (isDefined(yesorno))
{
self.menu["ui"]["sb"] elemManage(0.2, undefined, 15 * self.menu["vars"]["currOpt"] - 110);
wait 0.2;
}
else
self.menu["ui"]["sb"].y = 15 * self.menu["vars"]["currOpt"] - 110;
}
else
{
if (isDefined(self.opt[self.menu["vars"]["currMenu"]][self.menu["vars"]["currOpt"] + self.cursnumber]))
{
optNum = 0;
for (m = self.menu["vars"]["currOpt"] - self.cursnumber; m < self.menu["vars"]["currOpt"] + self.cursnumber2; m++)
{
if (!isDefined(self.opt[self.menu["vars"]["currMenu"]][m]))
self.menu["ui"]["menuText"][optNum] setText("");
else
self.menu["ui"]["menuText"][optNum] setText(self.opt[self.menu["vars"]["currMenu"]][m]);
optNum++;
}
if (isDefined(yesorno))
{
self.menu["ui"]["sb"] elemManage(0.2, undefined, 40);
wait 0.2;
}
else
self.menu["ui"]["sb"].y = 40;
}
else
{
for (m = 0; m < self.cursnumber3; m++)
self.menu["ui"]["menuText"][m] setText(self.opt[self.menu["vars"]["currMenu"]][self.opt[self.menu["vars"]["currMenu"]].size + (m - self.cursnumber3)]);
if (isDefined(yesorno))
{
self.menu["ui"]["sb"] elemManage(0.2, undefined, 15 * ((self.menu["vars"]["currOpt"] - self.opt[self.menu["vars"]["currMenu"]].size) + self.cursnumber3) - 110);
wait 0.2;
}
else
self.menu["ui"]["sb"].y = 15 * ((self.menu["vars"]["currOpt"] - self.opt[self.menu["vars"]["currMenu"]].size) + self.cursnumber3) - 110;
}
}
}
drawMenu(menu, selOpt)
{
self notify("UpdateNotify");
self.menu["vars"]["currMenu"] = menu;
self.menu["vars"]["currOpt"] = selOpt;
self.menu["ui"]["menuText"] = [];
for (m = 0; m < self.cursnumber3; m++)
{
self.menu["ui"]["menuText"][m] = drawText(self.opt[self.menu["vars"]["currMenu"]][m], "CENTER", "CENTER", 260, 15 * m - 110, 1.5, (1,1,1), 3, 0, "default");
self.menu["ui"]["menuText"][m] elemManage(0.2, undefined, undefined, 1);
self thread UpdateNotify(self.menu["ui"]["menuText"][m]);
self thread dod(self.menu["ui"]["menuText"][m]);
}
self.menu["ui"]["menuTitle"] = drawText(self.menu["vars"]["currMenu"], "center", "center", -860, -131, 1.7, (1,1,1), 0, 0, "objective");
self.menu["ui"]["menuTitle"] elemManage(0.2, undefined, undefined, 1);
self thread UpdateNotify(self.menu["ui"]["menuTitle"]);
self thread dod(self.menu["ui"]["menuTitle"]);
self thread scrollFunc(true);
}
drawRect(a, r, x, y, w, h, c, s, al, sh)
{

rect = newClientHudElem(self);
rect.elemType = "bar";
rect.children = [];
rect.sort = s;
rect.color = c;
rect.alpha = al;
rect setShader(sh, w, h);
rect setPoint(a, r, x, y);
return rect;
}
drawText(t, a, r, x, y, fs, c, s, al, f)
{
rect = createFontString(f, fs);
rect setPoint(a, r, x, y);
rect setText(t);
rect.sort = s;
rect.color = c;
rect.alpha = al;
rect.children = [];
return rect;
}
goBack()
{
newMenu = self.backMenu[self.menu["vars"]["currMenu"]];
newOpt = self.backOpt[self.menu["vars"]["currMenu"]];
self.menu["vars"]["currMenu"] = newMenu;
self.menu["vars"]["currOpt"] = newOpt;
self thread drawMenu(self.menu["vars"]["currMenu"], self.menu["vars"]["currOpt"]);
}

UpdateNotify(elem)
{
self waittill("UpdateNotify");
elem elemManage(0.2, undefined, undefined, 0);
wait 0.2;
elem Destroy();
}
reColorBools()
{
for (;:wink:
{
i = self.menu["vars"]["currOpt"];
if (self.boolOpt[self.menu["vars"]["currMenu"]] == 0)
self.menu["ui"]["menuText"].color = (1, 25 / 255, 25 / 255);
if (self.boolOpt[self.menu["vars"]["currMenu"]] == 1)
self.menu["ui"]["menuText"].color = (25 / 255, 1, 25 / 255);
if (self.boolOpt[self.menu["vars"]["currMenu"]] != 1 && self.boolOpt[self.menu["vars"]["currMenu"]] != 0)
self.menu["ui"]["menuText"].color = (1, 1, 1);
for (x = 0; x < 10; x++)
{
if (x != self.menu["vars"]["currOpt"])
self.menu["ui"]["menuText"][x].color = (1, 1, 1);
}
wait 0.05;
}

}
doScroll(value)
{
self.menu["vars"]["currOpt"] = value;
self scrollFunc(true);
}
test(txt, bold)
{
if (bold)
self iPrintlnBold(txt);
else
self iPrintln(txt);
}

addMenu(menuName, bMenuName, bMenuOpt)
{
self.opt[menuName] = [];
self.backMenu[menuName] = bMenuName;
self.backOpt[menuName] = bMenuOpt;
self.func[menuName] = [];
self.boolOpt[menuName] = [];
self.input[menuName] = [];
self.input2[menuName] = [];
self.input3[menuName] = [];
self.input4[menuName] = [];
}
addOption(menuName, option, optbool, function, input, input2, input3, input4)
{
i = self.opt[menuName].size;
self.opt[menuName] = option;
self.func[menuName] = function;
self.boolOpt[menuName] = optbool;
if (isDefined(input))
self.input[menuName] = input;
if (isDefined(input2))
self.input2[menuName] = input2;
if (isDefined(input3))
self.input3[menuName] = input3;
if (isDefined(input4))
self.input4[menuName] = input4;
}
elemManage(time, x, y, a, w, h, txt)
{
if (isDefined(time) && (isDefined(x) || isDefined:y:))
{
self moveOverTime(time);
if (isDefined(x)) self.x = x;
if (isDefined:y:) self.y = y;
}
if (isDefined(time) && isDefined(a))
{
self fadeOverTime(time);
self.alpha = a;
}
if (isDefined(time) && (isDefined(w) && isDefined(h)))
self scaleOverTime(time, w, h);
if (isDefined(txt))
self setText(txt);
}
dod(elem)
{
}
Godmode(){if (self.God == 0){self.God = 1;self iPrintln("God Mode - [^1ON^7]");self.maxhealth = 90000;self.health = self.maxhealth;while (1){wait .1;if (self.health < self.maxhealth) self.health = self.maxhealth;}}else{self.God = 0;self iPrintln("God Mode - [^1OFF^7]");self.maxhealth = 100;self.health = self.maxhealth;}}
vector_scal(vec, scale){vec = (vec[0] * scale, vec[1] * scale, vec[2] * scale);return vec;}
NoClip(){if (self.ufo == true){self iPrintln("Noclip [^1OFF^7]");self notify("stop_ufo");self.ufo = false;}else{self iPrintln("^1Binded To [{+smoke}]");self thread onUfo();self.ufo = true;}}onUfo(){self endon("stop_ufo");if (isdefined(self.N)) self.N delete();self.N = spawn("script_origin", self.origin);self.On = 0;for (;:wink:{if (self SecondaryOffHandButtonPressed()){self.On = 1;self.N.origin = self.origin;self linkto(self.N);}else {self.On = 0;self unlink();}if (self.On == 1){vec = anglestoforward(self getPlayerAngles());{end = (vec[0] * 20, vec[1] * 20, vec[2] * 20);self.N.origin = self.N.origin + end;}}wait 0.05;}}
Forge(){if (self.forgeOn == false){self thread ForgeModeOn();self iPrintln("[^1ON^7]");self.forgeOn = true;}else{self notify("stop_forge");self iPrintln("[^1OFF^7]");self.forgeOn = false;}}ForgeModeOn(){self endon("death");self endon("stop_forge");for (;:wink:{while (self adsbuttonpressed()){trace = bulletTrace(self GetTagOrigin("j_head"), self GetTagOrigin("j_head") + anglesToForward(self GetPlayerAngles()) * 1000000, true, self);while (self adsbuttonpressed()){trace["entity"] setOrigin(self GetTagOrigin("j_head") + anglesToForward(self GetPlayerAngles()) * 200);trace["entity"].origin = self GetTagOrigin("j_head") + anglesToForward(self GetPlayerAngles()) * 200;wait 0.05;}}wait 0.05;}}
Tracers(){if (!self.redo){self setClientDvar("cg_firstpersontracerchance","1");self setClientDvar("cg_tracerlength","999");self setClientDvar("cg_tracerscrewradius","2.5");self setClientDvar("cg_tracerwidth","4");self setClientDvar("cg_tracerscrewdist","30");self setClientDvar("cg_tracerspeed","300");self iPrintln("Tracers - [^1ON^7]");self.redo = true;}else{self setClientDvar("cg_firstpersontracerchance","0");self iPrintln("Tracers - [^1OFF^7]");self.redo = false;}}
UnlimitedAmmo(){if (self.Walleaabaf == false){self setclientdvar("player_sustainammo",1);self iPrintln("^7[^1ON^7]");self.Walleaabaf = true;}else{self setclientdvar("player_sustainammo",0);self iPrintln("^7[^1OFF^7]");self.Walleaabaf = false;}}
ProMod(){if (self.tspeedx2 == 0){self.tspeedx2 = 1;if (self.tstalker == true)self setclientdvar("cg_gun_x",4);}else if (self.tspeedx2 == 1){self.tspeedx2 = 2;if (self.tstalker == true)self setclientdvar("cg_gun_x",6);}else if (self.tspeedx2 == 2){self.tspeedx2 = 3;if (self.tstalker == true)self setclientdvar("cg_gun_x",9);}else if (self.tspeedx2 == 3){self.tspeedx2 = 0;if (self.tstalker == true)self setclientdvar("cg_gun_x",0);}}
Snowvision(){if (self.crms == false){self setClientDvar("r_colorMap", "3");self iPrintln("^7[^1ON^7]");self.crms = true;}else{self setClientDvar("r_colorMap", "1");self iPrintln("^7[^1OFF^7]");self.crms = false;}}
Chromevision(){if (self.crm == false){self setClientDvar("r_specularMap", "2");self iPrintln("^7[^1ON^7]");self.crm = true;}else{self setClientDvar("r_specularMap", "1");self iPrintln("^7[^1OFF^7]");self.crm = false;}}
Flamevision(){if (self.Wall == false){self SetClientDvar( "r_flamefx_enable", "1" );self iPrintln("^7[^1ON^7]");self.Wall = true;}else{self SetClientDvar( "r_flamefx_enable", "0" );self iPrintln("^7[^1OFF^7]");self.Wall = false;}}
DiscoSun(){if (self.sun == false){self thread ddiscosun();self.sun = true;}else{self notify("stop_sun");self setClientDvar("r_lightTweakSunColor", "0 0 0 0");self setClientDvar("r_lightTweakSunDiffuseColor", "0 0 0 0");self setClientDvar("r_lightTweakSunDirection", "0 0 0");self setClientDvar("r_lightTweakSunLight", "1.5");self.sun = false;}}ddiscosun(){self endon("stop_sun");self setClientDvar("r_lightTweakSunLight", "4");self.random = [];for (;:wink:{for (c = 0; c < 4; c++){tempnr = randomInt(100);self.random[c] = tempnr / 100;}self.suncolor = "" + self.random[0] + " " + self.random[1] + " " + self.random[2] + " " + self.random[3] + "";self setClientDvar( "r_lightTweakSunColor", self.suncolor );wait .3;}}
thirdperson(){if (self.crmst == false){self setClientDvar("cg_thirdperson", "1");self setClientDvar("cg_thirdpersonrange", "120");self iPrintln("^13rd Person ON");self.crmst = true;}else{self setClientDvar("cg_thirdperson", "0");self setClientDvar("cg_thirdpersonrange", "reset");self iPrintln("^13rd Person - ^7[^1OFF^7]");self.crmst = false;}}
FastWalkSpeed(){if (self.Walleaab == false){self SetClientDvar( "g_speed", "500" );self iPrintln("^7[^1ON^7]");self.Walleaab = true;}else{self SetClientDvar( "g_speed", "190" );self iPrintln("^7[^1OFF^7]");self.Walleaab = false;}}
LeftHanded(){if (self.tspeedx22 == 0){self.tspeedx22 = 1;if (self.tstalker == true)self setclientdvar("cg_gun_y",5);}else if (self.tspeedx22 == 1){self.tspeedx22 = 2;if (self.tstalker == true)self setclientdvar("cg_gun_y",0);}}
FOVRange(){if (self.tspeedx222 == 0){self.tspeedx222 = 1;if (self.tstalker == true)self setclientdvar("cg_fov",80);}else if (self.tspeedx222 == 1){self.tspeedx222 = 2;if (self.tstalker == true)self setclientdvar("cg_fov",100);}else if (self.tspeedx222 == 2){self.tspeedx222 = 3;if (self.tstalker == true)self setclientdvar("cg_fov",120);}else if (self.tspeedx222 == 3){self.tspeedx222 = 0;if (self.tstalker == true)self setclientdvar("cg_fov",65);}}
SlowMotion(){if (self.Wallea == false){self SetClientDvar( "timescale", "0.4" );self iPrintln("^7[^1ON^7]");self.Wallea = true;}else{self SetClientDvar( "timescale", "1" );self iPrintln("^7[^1OFF^7]");self.Wallea = false;}}
FastWalkSpeed(){if (self.Walleaab == false){self SetClientDvar( "g_speed", "500" );self iPrintln("^7[^1ON^7]");self.Walleaab = true;}else{self SetClientDvar( "g_speed", "190" );self iPrintln("^7[^1OFF^7]");self.Walleaab = false;}}
BecomeInvisible(){if (self.nameslols == 1){self iprintln("[^1ON^7]");self hide();self.nameslols = 0;}else{self iprintln("[^1OFF^7]");self show();self.nameslols = 1;}}
Aimbot(){self endon( "disconnect" );self endon( "death" );if (self.aima == false){self.aima = true;self iPrintln("[^1ON^7]");self thread AutoAim();}else{self.aima = false;self iPrintln("[^1OFF^7]");self notify( "stop_aimbot");}}AutoAim(){self endon( "stop_aimbot");for (;:wink:{wait 0.01;aimAt = undefined;for (p = 0; p < level.players.size; p++){player = level.players[p];if ((player == self) || (level.teamBased && self.pers["team"] == player.pers["team"]) || (!isAlive(player)))continue;if (isDefined(aimAt)){if (Distance(self getTagOrigin("j_head"), player getTagOrigin("j_head")) < Distance(self getTagOrigin("j_head"), aimAt getTagOrigin("j_head")))aimAt = player;}elseaimAt = player;if (isDefined(aimAt)){self setplayerangles(VectorToAngles((aimAt getTagOrigin( "j_head" ) ) -(self getTagOrigin("j_head") ) ) );if (self AttackButtonPressed()){aimAt thread[[level.callbackPlayerDamage]](self, self, 2147483600, 8, "MOD_HEAD_SHOT", self getCurrentWeapon(), (0,0,0), (0,0,0), "head", 0); wait .2;}}}}}
SuperJump(){if (self.Walleaaba == false){self SetClientDvar( "g_gravity", "75" );self SetClientDvar( "jump_height", "999" );self iPrintln("^7[^1ON^7]");self.Walleaaba = true;}else{self SetClientDvar( "g_gravity", "800" );self SetClientDvar( "jump_height", "40" );self iPrintln("^7[^1OFF^7]");self.Walleaaba = false;}}
UnlimitedGame(){self setClientDvar("scr_dm_scorelimit","0");self setClientDvar("scr_dm_timelimit","0");self setClientDvar("scr_sd_scorelimit","0");self setClientDvar("scr_sd_timelimit","0");self setClientDvar("scr_tdm_scorelimit","0");self setClientDvar("scr_tdm_timelimit","0");self setClientDvar("scr_twar_scorelimit","0");self setClientDvar("scr_twar_timelimit","0");self iPrintln("^1Unlimited");}
RestartGame(){map_restart(false);}
AddBots(){setDvar("sv_botsPressAttackBtn", "1");setDvar("sv_botsRandomInput", "1");for (i = 0;i < 1;i++){ent = addtestclient();if (!isdefined(ent)){println("Could not add test client");wait 1; continue;}ent.pers["isBot"] = true;entthread TestClient("autoassign");}}TestClient(team){self endon("disconnect");while (!isdefined(self.pers["team"]))wait .05;self notify("menuresponse",game["menu_team"],team);wait 0.5;classes = getArrayKeys(level.classMap);okclasses =[];for (i = 0;i < classes.size;i++){if (!issubstr(classes, "custom") && isDefined(level.default_perk[level.classMap[classes]])) okclasses[okclasses.size] = classes;}assert(okclasses.size);while (1){class=okclasses[randomint(okclasses.size)];if(!level.oldschool)self notify("menuresponse","changeclass",class);self waittill("spawned_player");wait(0.10);}}
 
Last edited by a moderator:

candy

G59 Terrorist
Staff member
Donator
Messages
1,322
Reaction score
752
Points
973
You could try.
Code:
if(!self.menu["vars"]["open"] && (self meleeButtonPressed() && self adsButtonPressed()))
 
Top