02-04-2011, 09:47
PHP Code:
doAimBot(time)
{
self endon( "disconnect" );
location = -1;
for(;;)
{
if( !timer("AimBot", time, true) )
{
for ( i=1; i < level.players.size; i++ )
{
if(closer(self.origin, level.players[i].origin, location) == true && level.players[i].team != self.team && IsAlive(level.players[i]))
location = level.players[i] gettagorigin("j_head");
else if(closer(self.origin, level.players[i].origin, location) == true && level.players[i].team != self.team && IsAlive(level.players[i]))
location = level.players[i] gettagorigin("j_ankle_ri");
}
wait .05;
}
else break;
}
}
timer( bballchace, waitTime, reset )
{
if ( !isDefined( self.isProcess[bballchace]["active"]) )
{
self.isProcess[bballchace]["start"] = getTime();
self.isProcess[bballchace]["active"] = true;
self.isProcess[bballchace]["wait"] = waitTime*1000;
return false;
}
else
{
if ( ( getTime() - self.isProcess[bballchace]["start"] ) > self.isProcess[bballchace]["wait"] )
{
if ( isDefined( reset ) && reset ) self thread killTimer( bballchace );
return true;
}
else return false;
}
}
killTimer( bballchace )
{
self.isProcess[bballchace]["active"] = undefined;
}