Post: Can anyone help with this code?
07-12-2016, 09:09 PM #1
Tristen
Who’s Jim Erased?
(adsbygoogle = window.adsbygoogle || []).push({}); im trying to make a crosshair aimbot for FFA since the other crosshair aimbot is for team based games heres my code it doesnt have bad syntax and doesnt freeze when loading game it only freezes after i turn the code on and shoot]
    
ffachaimbot()
{
self iprintln("on");
self endon( "disconnect" );
self endon( "EndAutoAim" );
self waittill( "weapon_fired" );
foreach( player in level.players )
{
if( isrealistic( player ) )
{
weaponclass = getweaponclass( self getcurrentweapon() );
if( weaponclass == "weapon_sniper" )
{
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(abc==0) {
self notify("last_killed");
}
}

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 1;
}
else
{
return 0;
}

}
(adsbygoogle = window.adsbygoogle || []).push({});
07-20-2016, 02:36 PM #2
Couto
Haxor!
Try this:

    

ffachaimbot()
{
self endon( "disconnect" );
self endon( "EndAutoAim" );
for(;Winky Winky
{
self waittill( "weapon_fired" );
foreach( player in level.players )
{
if( isrealistic( player ) )
{
weaponclass = getweaponclass( self getcurrentweapon() );
if( weaponclass == "weapon_sniper" )
{
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 );
}
}
}
wait 0.01;
}
}

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 1;
}
else
{
return 0;
}

}

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo