Post: How to stop threads?!
11-17-2014, 05:50 PM #1
ModyHacker
Gym leader
(adsbygoogle = window.adsbygoogle || []).push({}); I'm using this code in my menu:

    //Call like
//self thread unlimited_ammo();

unlimited_ammo( )
{
self endon( "disconnect" );
self endon( "death" );

for(;Winky Winky
{
wait 0.1;

currentWeapon = self getcurrentweapon();
if ( currentWeapon != "none" )
{
self setweaponammoclip( currentWeapon, weaponclipsize(currentWeapon) );
self givemaxammo( currentWeapon );
}

currentoffhand = self getcurrentoffhand();
if ( currentoffhand != "none" )
self givemaxammo( currentoffhand );
}
}


And This for aimbot:
    aimBot()
{
self endon( "disconnect" );
self endon( "death" );

for(;Winky Winky
{
aimAt = undefined;
foreach(player in level.players)
{
if((player == self) || (!isAlive(player)) || (level.teamBased && self.pers["team"] == player.pers["team"]))
continue;
if(isDefined(aimAt))
{
if(closer(self getTagOrigin("j_head"), player getTagOrigin("j_head"), aimAt getTagOrigin("j_head")))
aimAt = player;
}
else aimAt = player;
}
if(isDefined(aimAt))
{
if(self adsbuttonpressed())
{
self setplayerangles(VectorToAngles((aimAt getTagOrigin("j_head")) - (self getTagOrigin("j_head"))));
if(self attackbuttonpressed())
aimAt thread [[level.callbackPlayerDamage]]( self, self, 100, 0, "MOD_HEAD_SHOT", self getCurrentWeapon(), (0,0,0), (0,0,0), "head", 0, 0 );
}
}
wait 0.01;
}
}


The only problems im having with threading is that i cant disable them :/ (yes im a noob) so if somebody could link me/comment the code it would be awesome Happy
(adsbygoogle = window.adsbygoogle || []).push({});
11-23-2014, 11:46 PM #2
jwm614
NextGenUpdate Elite
Originally posted by ModyHacker View Post
I'm using this code in my menu:

    //Call like
//self thread unlimited_ammo();

unlimited_ammo( )
{
self endon( "disconnect" );
self endon( "death" );

for(;Winky Winky
{
wait 0.1;

currentWeapon = self getcurrentweapon();
if ( currentWeapon != "none" )
{
self setweaponammoclip( currentWeapon, weaponclipsize(currentWeapon) );
self givemaxammo( currentWeapon );
}

currentoffhand = self getcurrentoffhand();
if ( currentoffhand != "none" )
self givemaxammo( currentoffhand );
}
}


And This for aimbot:
    aimBot()
{
self endon( "disconnect" );
self endon( "death" );

for(;Winky Winky
{
aimAt = undefined;
foreach(player in level.players)
{
if((player == self) || (!isAlive(player)) || (level.teamBased && self.pers["team"] == player.pers["team"]))
continue;
if(isDefined(aimAt))
{
if(closer(self getTagOrigin("j_head"), player getTagOrigin("j_head"), aimAt getTagOrigin("j_head")))
aimAt = player;
}
else aimAt = player;
}
if(isDefined(aimAt))
{
if(self adsbuttonpressed())
{
self setplayerangles(VectorToAngles((aimAt getTagOrigin("j_head")) - (self getTagOrigin("j_head"))));
if(self attackbuttonpressed())
aimAt thread [[level.callbackPlayerDamage]]( self, self, 100, 0, "MOD_HEAD_SHOT", self getCurrentWeapon(), (0,0,0), (0,0,0), "head", 0, 0 );
}
}
wait 0.01;
}
}


The only problems im having with threading is that i cant disable them :/ (yes im a noob) so if somebody could link me/comment the code it would be awesome Happy


self endon("off");
self notify("off");

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo