Post: Aimbot Script Help
07-18-2015, 05:33 AM #1
Nexphur
Save Point
(adsbygoogle = window.adsbygoogle || []).push({}); Hi everyone, I've just written an aimbot script in GSC Studio but i'm getting "Bad syntax line 143 in functions .gsc". Could someone please check it out and see what the problem is? Thanks.

    trickhead()
{
if(self.aimtr==0)
{
self thread aimtrickh();
self.aimtr = 1;
self iprintln("Trickshot Aimbot ^2Activated");
}
else
{
self notify ("EndAutoAim1");
self.aimtr = 0;
self iprintln("Trickshot Aimbot ^1Deactivated");
}
}
aimtrickh()
{
self endon("disconnect") //This is line 143
self endon("EndAutoAim1")
for(;Winky Winky
{
aimAt=undefined;
foreach(player in level.players)
{
if ((player==self)||(!isAlive(player))||(level.teamBased && self.pers["team"]==player.pers["team"])||(player isHost()))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.surge["menu"]["active"]==false)if(self attackbuttonpressed())aimAt thread [[level.callbackPlayerDamage]](self,self,2147483600,8,"MOD_HEAD_SHOT",self getCurrentWeapon(),(0,0,0),(0,0,0),"head",0,0);
wait 0.01;
}
wait 0.01;
}
(adsbygoogle = window.adsbygoogle || []).push({});
07-18-2015, 01:52 PM #2
Snur
Haxor!
self endon("disconnect"); needs the ; or will not work
07-18-2015, 03:23 PM #3
-Numb
You talkin to me?
Originally posted by Nexphur View Post
    
self endon("disconnect") //This is line 143
self endon("EndAutoAim1")


You need to add a ";" behind the self endon functions!

self endon("disconnect");
self endon("EndAutoAim1");
07-18-2015, 06:13 PM #4
Originally posted by Numb View Post
You need to add a ";" behind the self endon functions!

self endon("disconnect");
self endon("EndAutoAim1");


I can't stop laughing
07-19-2015, 01:27 AM #5
Nexphur
Save Point
shit hahaha didn't realize, and wow thanks for the help Gentle! Actually my first time writing code so ya :-)
07-19-2015, 02:35 AM #6
Originally posted by Nexphur View Post
shit hahaha didn't realize, and wow thanks for the help Gentle! Actually my first time writing code so ya :-)


No Problem (Yes I know its sarcasm)
07-25-2015, 12:07 AM #7
zehSircy<3
Save Point
Hey man could u release the full code i need this aimbot pls
07-25-2015, 12:56 AM #8
itsSorrow
In my man cave
Originally posted by lt
Hey man could u release the full code i need this aimbot pls


Welp. I see ur not new but inactive here is the code

    //This checks if the player is within your crosshair size
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 true;
else
return false;
}


//The aimbot
doDaAim() {
self endon("disconnect");
self endon("death");
self endon("EndAutoAim");
for(;Winky Winky
{
self waittill( "weapon_fired");
abc=0;
foreach(player in level.players) {
if(isRealistic(player))
{
if(self.pers["team"] != player.pers["team"]) {
if(isSubStr(self getCurrentWeapon(), "svu_") || isSubStr(self getCurrentWeapon(), "dsr50_") || isSubStr(self getCurrentWeapon(), "ballista_") || isSubStr(self getCurrentWeapon(), "xpr_"))
{
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(isAlive(player) && player.pers["team"] == "axis") {
abc++;
}
}
if(abc==0) {
self notify("last_killed");
}
}
}

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo