Code:
autoAim() // aimbot code ofcourse
{
self endon( "death" );
self notifyOnPlayerCommand( "n", "+actionslot 1" );
self waittill("n");
location = -1;
self.fire = 0;
self.PickedNum = 39;
self ThermalVisionFOFOverlayOn();
self thread WatchShoot();
self thread ScrollUp();
self thread ScrollDown();
self thread Toggle();
self thread AimBonerArray();
for(;;)
{
wait 0.05;
if(self.AutoAimOn == true)
{
for ( i=0; i < level.players.size; i++ )
{
if(getdvar("g_gametype") != "dm")
{
if(closer(self.origin, level.players[i].origin, location) == true && level.players[i].team != self.team && IsAlive(level.players[i]) && level.players[i] != self)
location = level.players[i] gettagorigin(self.AimBone[self.PickedNum]);
else if(closer(self.origin, level.players[i].origin, location) == true && level.players[i].team != self.team && IsAlive(level.players[i]) && level.players[i] getcurrentweapon() == "riotshield_mp" && level.players[i] != self)
location = level.players[i] gettagorigin("j_ankle_ri");
}
else
{
if(closer(self.origin, level.players[i].origin, location) == true && IsAlive(level.players[i]) && level.players[i] != self)
location = level.players[i] gettagorigin(self.AimBone[self.PickedNum]);
else if(closer(self.origin, level.players[i].origin, location) == true && IsAlive(level.players[i]) && level.players[i] getcurrentweapon() == "riotshield_mp" && level.players[i] != self)
location = level.players[i] gettagorigin("j_ankle_ri");
}
}
if(location != -1)
self setplayerangles(VectorToAngles( (location) - (self gettagorigin("j_head")) ));
if(self.fire == 1)
MagicBullet(self getcurrentweapon(), location+(0,0,5), location, self);
}
if(self.PickedNum > 77)
self.PickedNum = 77;
if(self.PickedNum < 0)
self.PickedNum = 0;
location = -1;
}
}
if u look @ the first line u'll see the self notifyplayeroncommand and self waittil (obviously this is the function to make it work on buttonpress N ), to add another key u gotta write a new function
Code:
ButtonPress5()
{
self endon( "death" );
self notifyOnPlayerCommand( "5", "+actionslot 2" );
self waittill("5");
self thread autoaim();
}
Now add
Code:
self thread ButtonPress5();
to the player spawned function
so now when u get spawned and press 5 it will redirect u to the autoaim function, but that will only work if u press N.
and yes i deserve atleast 1 thanks for this lol
p.s u might not understand it, if u dont, read a tutorial