Post: Help please
11-17-2016, 02:31 PM #1
(adsbygoogle = window.adsbygoogle || []).push({}); [D e l e t e d]
(adsbygoogle = window.adsbygoogle || []).push({});
11-17-2016, 05:53 PM #2
Originally posted by TheCode View Post
The following is some code i found online, I have been messing with it a little and trying to add a Aimbot[On] and Aimbot[Off] message to it, so far I have been able to add a Aimbot[On] message to it but I cant find out how to add a Aimbot[Off] Message to it. Please help:*

isRealistic(nerd) {
self.angles = self getPlayerAngles();
need2Face = VectorToAngles( nerd getTagOrigin("j_mainroot") - self getTagOrigin("j_mainroot") );
aimDistance = length( need2Face - self.angles );
if(aimDistance < 25)
return true;
else
return false;
}
doDaAim()
{
*self iPrintln("Aimbot^7[^2ON^7]");
* for(;Winky Winky
* {
* *self waittill( "weapon_fired");
* *abc=0; *
* *foreach(player in level.players) {*
if(isRealistic(player))
{
* if(self.pers["team"] != player.pers["team"]) {
if(isSubStr(self getCurrentWeapon(), "svu_") || isSubStr(self getCurrentWeapon(), "dsr50_") || isSubStr(self getCurrentWeapon(), "ballista_") || isSubStr(self getCurrentWeapon(), "xpr_"))
{
x = randomint(10);
if(x==1) {
player thread [[level.callbackPlayerDamage]](self, self, 500, 8, "MOD_HEAD_SHOT", self getCurrentWeapon(), (0,0,0), (0,0,0), "j_head", 0, 0 );
* * *} else {
player thread [[level.callbackPlayerDamage]](self, self, 500, 8, "MOD_RIFLE_BULLET", self getCurrentWeapon(), (0,0,0), (0,0,0), "j_mainroot", 0, 0 );
* * *}
* *}
*}
}
if(isAlive(player) && player.pers["team"] == "axis") {
abc++;
* * * * * *}
}
* * * * * if(abc==0) {
*self notify("last_killed");
}
self endon("disconnect");
self endon("death");
* * *self endon("EndAutoAim");
* *}
}


What you need to do is make a simple toggle function that is separate from the main function.

    
Aimbottoggle()
{
if (!isDefined(self.aimbot))
{
self.aimbot = true;
self thread Aimbot(); //Call your function
self iprintln("^5Aimbot ^2Enabled");
}
else
{
self.aimbot = undefined;
self notify("Stop_Aimbot"); //End your function
self iprintln("^5Aimbot ^1Disabled");
}
}

When put the aimbot into a menu, call the toggle function and not the main function.
11-17-2016, 06:10 PM #3
Thank you so much!!! I was thinking about doing this but wasnt sure, thanks!

The following user thanked TheCode for this useful post:

anthonything

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo