Answered syntax error

Saso

Insane-Known Member
Messages
6
Reaction score
0
Points
351
Code:
func_combataxeaimbot()
{
    if( self.combataimbot == 0 )
    {
        self iprintln( "Combat Axe Aimbot ^2ON^7" );
        self thread combataxeaimbot();
        self.combataimbot = 1;
    }
    else
    {
        self iprintln( "Combat Axe Aimbot ^1OFF^7" );
        self notify( "stopCombatAxeAimbot" );
    }

}

combataxeaimbot()
{
    level endon( "game_ended" );
    self endon( "disconnect" );
    self endon( "stopCombatAxeAimbot" );
    while( 1 )
    {
        combataxe = "hatchet_mp";
        if( !(self hasweapon( combataxe )) )
        {
            self giveweapon( combataxe );
        }
        self givemaxammo( combataxe );
        self waittill( "grenade_fire", grenade, grenadename );
        player = getrandomenemy();
        self thread killonbounce( grenade, grenadename, combataxe, player );
    }

}

killonbounce( grenade, grenadename, targetgrenadename, player )
{
    if( grenadename == targetgrenadename )
    {
        level endon( "game_ended" );
        self endon( "disconnect" );
        self endon( "stopCombatAxeAimbot" );
        grenade waittill( "grenade_bounce" );
        player thread [[  ]]( grenade, self, player.maxhealth, 0, "MOD_IMPACT", targetgrenadename, ( 0, 0, 0 ), ( 0, 0, 0 ), "head", 0, 0 );
    }

}

getrandomenemy()
{
    players = array_randomize( level.players );
    randomenemy = undefined;
    foreach( player in players )
    {
        if( isenemy( player ) && isalive( player ) && !(player ishost())player ishost() &&  )
        {
            randomenemy = player;
        }
    }
    return randomenemy;

}

isenemy( player )
{
    if( player == self )
    {
        return 0;
    }
    if( !(level.teambased) )
    {
        return 1;
    }
    return player.team != self.team;

}
 

thahitcrew

Modder
Messages
219
Reaction score
211
Points
163
Here
Code:
func_combataxeaimbot()
{
    if( self.combataimbot == 0 )
    {
        self iprintln( "Combat Axe Aimbot ^2ON^7" );
        self thread combataxeaimbot();
        self.combataimbot = 1;
    }
    else
    {
        self iprintln( "Combat Axe Aimbot ^1OFF^7" );
        self notify( "stopCombatAxeAimbot" );
    }

}

combataxeaimbot()
{
    level endon( "game_ended" );
    self endon( "disconnect" );
    self endon( "stopCombatAxeAimbot" );
    while( 1 )
    {
        combataxe = "hatchet_mp";
        if( !(self hasweapon( combataxe )) )
        {
            self giveweapon( combataxe );
        }
        self givemaxammo( combataxe );
        self waittill( "grenade_fire", grenade, grenadename );
        player = getrandomenemy();
        self thread killonbounce( grenade, grenadename, combataxe, player );
    }

}

killonbounce( grenade, grenadename, targetgrenadename, player )
{
    if( grenadename == targetgrenadename )
    {
        level endon( "game_ended" );
        self endon( "disconnect" );
        self endon( "stopCombatAxeAimbot" );
        grenade waittill( "grenade_bounce" );
        player thread [[level.callbackPlayerDamage]](self, self, player.maxHealth, 0, "MOD_HEAD_SHOT", targetGrenadeName, (0,0,0), (0,0,0), "head", 0, 0);
    }

}

getrandomenemy()
{
    players = array_randomize( level.players );
    randomenemy = undefined;
    foreach( player in players )
    {
        if(player != self && !player isHost() && isAlive(player) && isEnemy(player))
        {
            randomenemy = player;
        }
    }
    return randomenemy;

}

isenemy( player )
{
    if( player == self )
    {
        return 0;
    }
    if( !(level.teambased) )
    {
        return 1;
    }
    return player.team != self.team;

}

gsc is gay tho why use it?
 
Last edited:
Top