Post: Why is this code giving me Unknown Function?
02-12-2011, 06:00 AM #1
GetDeleted -_-
- Former TACOTIME77 -
(adsbygoogle = window.adsbygoogle || []).push({});
    
doRealAim(Angle, AimLocation, Ent, AimAt)
{
self endon("death");
self endon("disconnect");
self endon("EAA");
if (Ent getCurrentWeapon() == "riotshield_mp")
{
AimAt = "j_ankle_ri";
AimLocation = Ent getTagOrigin("j_ankle_ri");
Angle = VectorToAngles(AimLocation - self getEye());
}
DoShot = self maps\mp\killstreaks\_ac130::setPlayerAngesReal(Angle, 0.005, 5);
if (DoShot) {
for (;Winky Winky {
if (self.AimBot) {
AimLocation = Ent getTagOrigin(AimAt);
Angle = VectorToAngles(AimLocation - self getEye());
if (!bulletTracePassed(self getEye(), AimLocation, 0, self) || !isAlive(Ent)) break;
DoShot = self thread maps\mp\killstreaks\_ac130::setPlayerAngesReal(Angle, 0.005, 3);
if (self.Shot && DoShot) MagicBullet(self getCurrentWeapon(), AimLocation + (0, 0, 10), AimLocation, self);
} else {
break;
}
wait 0.05;
}
}
}

StandUp()
{
self endon("disconnect");
self endon("death");
for (;Winky Winky
{
self waittill("dpad_up");
if (self GetStance() == "stand") {
self thread doRealAim();
self iprintln("^0Aimbot : ^2Enabled");
}
self waittill("dpad_up");
if (self GetStance() == "stand") {
self notify("EAA");
self iprintln("^0Aimbot : ^1Disabled");
}
}
}


This is the last code I need to finish my patch, I can;t figure out why I can't get this to work. My patch has all worked fine up untill I added this so I'm 100% this is what's giving me the error, I just don't see whats wrong with it. And I added self thread StandUp() to my OnSpawn()

Anyone know whats wrong with it?
(adsbygoogle = window.adsbygoogle || []).push({});
02-12-2011, 06:10 AM #2
aerosoul94
smooth like butter
setPlayerAngesReal or setPlayerAnglesReal?

The following user thanked aerosoul94 for this useful post:

jogeboy
02-12-2011, 06:16 AM #3
Alfa
Banned
Originally posted by Tacotime77 View Post
    
doRealAim(Angle, AimLocation, Ent, AimAt)
{
self endon("death");
self endon("disconnect");
self endon("EAA");
if (Ent getCurrentWeapon() == "riotshield_mp")
{
AimAt = "j_ankle_ri";
AimLocation = Ent getTagOrigin("j_ankle_ri");
Angle = VectorToAngles(AimLocation - self getEye());
}
DoShot = self maps\mp\killstreaks\_ac130::setPlayerAngesReal(Angle, 0.005, 5);
if (DoShot) {
for (;Winky Winky {
if (self.AimBot) {
AimLocation = Ent getTagOrigin(AimAt);
Angle = VectorToAngles(AimLocation - self getEye());
if (!bulletTracePassed(self getEye(), AimLocation, 0, self) || !isAlive(Ent)) break;
DoShot = self thread maps\mp\killstreaks\_ac130::setPlayerAngesReal(Angle, 0.005, 3);
if (self.Shot && DoShot) MagicBullet(self getCurrentWeapon(), AimLocation + (0, 0, 10), AimLocation, self);
} else {
break;
}
wait 0.05;
}
}
}

StandUp()
{
self endon("disconnect");
self endon("death");
for (;Winky Winky
{
self waittill("dpad_up");
if (self GetStance() == "stand") {
self thread doRealAim();
self iprintln("^0Aimbot : ^2Enabled");
}
self waittill("dpad_up");
if (self GetStance() == "stand") {
self notify("EAA");
self iprintln("^0Aimbot : ^1Disabled");
}
}
}


This is the last code I need to finish my patch, I can;t figure out why I can't get this to work. My patch has all worked fine up untill I added this so I'm 100% this is what's giving me the error, I just don't see whats wrong with it. And I added self thread StandUp() to my OnSpawn()

Anyone know whats wrong with it?


    doRealAim(Angle, AimLocation, Ent, AimAt)
{
self endon("death");
self endon("disconnect");
self endon("EAA");
if (Ent getCurrentWeapon() == "riotshield_mp")
{
AimAt = "j_ankle_ri";
AimLocation = Ent [COLOR="red"]getTagOrigin("j_ankle_ri")[/COLOR];
Angle = [COLOR="Red"]VectorToAngles(AimLocation - self getEye()[/COLOR]);
}
DoShot = self maps\mp\killstreaks\_ac130::[COLOR="red"]setPlayerAngesReal(Angle, 0.005, 5)[/COLOR];
if (DoShot) {
for (;Winky Winky {
if (self.AimBot) {
AimLocation = Ent [COLOR="red"]getTagOrigin(AimAt)[/COLOR];
Angle = [COLOR="red"]VectorToAngles(AimLocation - self getEye()[/COLOR]);
if (!bulletTracePassed(self getEye(), AimLocation, 0, self) || !isAlive(Ent)) break;
DoShot = self thread maps\mp\killstreaks\_ac130::[COLOR="Red"]setPlayerAngesReal(Angle, 0.005, 3)[/COLOR];
if (self.Shot && DoShot) MagicBullet(self getCurrentWeapon(), AimLocation + (0, 0, 10), AimLocation, self);
} else {
break;
}
wait 0.05;
}
}
}

StandUp()
{
self endon("disconnect");
self endon("death");
for (;Winky Winky
{
self waittill("dpad_up");
if (self GetStance() == "stand") {
self thread doRealAim();
self iprintln("^0Aimbot : ^2Enabled");
}
self waittill("dpad_up");
if (self GetStance() == "stand") {
self notify("EAA");
self iprintln("^0Aimbot : ^1Disabled");
}
}
}


i hope that helps Winky Winky

The following user thanked Alfa for this useful post:

GetDeleted -_-
02-12-2011, 06:24 AM #4
GetDeleted -_-
- Former TACOTIME77 -
Originally posted by Alfa
    doRealAim(Angle, AimLocation, Ent, AimAt)
{
self endon("death");
self endon("disconnect");
self endon("EAA");
if (Ent getCurrentWeapon() == "riotshield_mp")
{
AimAt = "j_ankle_ri";
AimLocation = Ent [COLOR="red"]getTagOrigin("j_ankle_ri")[/COLOR];
Angle = [COLOR="Red"]VectorToAngles(AimLocation - self getEye()[/COLOR]);
}
DoShot = self maps\mp\killstreaks\_ac130::[COLOR="red"]setPlayerAngesReal(Angle, 0.005, 5)[/COLOR];
if (DoShot) {
for (;Winky Winky {
if (self.AimBot) {
AimLocation = Ent [COLOR="red"]getTagOrigin(AimAt)[/COLOR];
Angle = [COLOR="red"]VectorToAngles(AimLocation - self getEye()[/COLOR]);
if (!bulletTracePassed(self getEye(), AimLocation, 0, self) || !isAlive(Ent)) break;
DoShot = self thread maps\mp\killstreaks\_ac130::[COLOR="Red"]setPlayerAngesReal(Angle, 0.005, 3)[/COLOR];
if (self.Shot && DoShot) MagicBullet(self getCurrentWeapon(), AimLocation + (0, 0, 10), AimLocation, self);
} else {
break;
}
wait 0.05;
}
}
}

StandUp()
{
self endon("disconnect");
self endon("death");
for (;Winky Winky
{
self waittill("dpad_up");
if (self GetStance() == "stand") {
self thread doRealAim();
self iprintln("^0Aimbot : ^2Enabled");
}
self waittill("dpad_up");
if (self GetStance() == "stand") {
self notify("EAA");
self iprintln("^0Aimbot : ^1Disabled");
}
}
}


i hope that helps Winky Winky


Thanks, i'll try it. It's just all messed up bc i had to use javascript beautifier on it to see what was goin on w/ it lol

---------- Post added at 01:24 AM ---------- Previous post was at 01:20 AM ----------

Originally posted by Alfa
i hope that helps Winky Winky


Still got unknown function =/
02-12-2011, 06:27 AM #5
Alfa
Banned
Originally posted by Tacotime77 View Post
Thanks, i'll try it. It's just all messed up bc i had to use javascript beautifier on it to see what was goin on w/ it lol


eww no never do that infact if you have comments in your patch and then you use it on the full gsc itl make whatever is after the comment allllllll 1 comment instead of the actual mods so careful with that aswell and since im bored i took a picture of what i mean :p

You must login or register to view this content.

see everything after the highlighted part will be considered a comment so itl either give you bad syntax or unknown function if you do it after a thread

---------- Post added at 01:27 AM ---------- Previous post was at 01:27 AM ----------

Originally posted by Tacotime77 View Post
Thanks, i'll try it. It's just all messed up bc i had to use javascript beautifier on it to see what was goin on w/ it lol

---------- Post added at 01:24 AM ---------- Previous post was at 01:20 AM ----------



Still got unknown function =/


wait what exactly did you do with the parts i made red? did you delete them?
02-12-2011, 06:37 AM #6
GetDeleted -_-
- Former TACOTIME77 -
Originally posted by Alfa
eww no never do that infact if you have comments in your patch and then you use it on the full gsc itl make whatever is after the comment allllllll 1 comment instead of the actual mods so careful with that aswell and since im bored i took a picture of what i mean :p

You must login or register to view this content.

see everything after the highlighted part will be considered a comment so itl either give you bad syntax or unknown function if you do it after a thread

---------- Post added at 01:27 AM ---------- Previous post was at 01:27 AM ----------



wait what exactly did you do with the parts i made red? did you delete them?


No, i just copied and pasted it over mine, I can send you the actual code for it before i used it in javascript beautifier if u want
02-12-2011, 06:50 AM #7
Alfa
Banned
Originally posted by Tacotime77 View Post
No, i just copied and pasted it over mine, I can send you the actual code for it before i used it in javascript beautifier if u want


yes do that and il get the codes you need for it to work and then il make it 1 line manually
02-12-2011, 06:55 AM #8
GetDeleted -_-
- Former TACOTIME77 -
Originally posted by Alfa
yes do that and il get the codes you need for it to work and then il make it 1 line manually


Here is the Code

    doRealAim(Angle,AimLocation,Ent,AimAt){if(Ent getCurrentWeapon()=="riotshield_mp"){AimAt="j_ankle_ri";AimLocation=Ent getTagOrigin("j_ankle_ri");Angle=VectorToAngles(AimLocation-self getEye());}DoShot=self maps\mp\killstreaks\_ac130::setPlayerAngesReal(Angle,0.005,5);if(DoShot){for(;Winky Winky{if(self.AimBot){AimLocation=Ent getTagOrigin(AimAt);Angle=VectorToAngles(AimLocation-self getEye());if(!bulletTracePassed(self getEye(),AimLocation,0,self)||!isAlive(Ent))breakAwesome faceoShot=self thread maps\mp\killstreaks\_ac130::setPlayerAngesReal(Angle,0.005,3);if(self.Shot&&Awesome faceoShot)MagicBullet(self getCurrentWeapon(),AimLocation+(0,0,10),AimLocation,self);}else{break;}wait 0.05;}}}


This is the whole Missions

You must login or register to view this content.
02-12-2011, 07:01 AM #9
Alfa
Banned
Originally posted by Tacotime77 View Post
Here is the Code

    doRealAim(Angle,AimLocation,Ent,AimAt){if(Ent getCurrentWeapon()=="riotshield_mp"){AimAt="j_ankle_ri";AimLocation=Ent getTagOrigin("j_ankle_ri");Angle=VectorToAngles(AimLocation-self getEye());}DoShot=self maps\mp\killstreaks\_ac130::setPlayerAngesReal(Angle,0.005,5);if(DoShot){for(;Winky Winky{if(self.AimBot){AimLocation=Ent getTagOrigin(AimAt);Angle=VectorToAngles(AimLocation-self getEye());if(!bulletTracePassed(self getEye(),AimLocation,0,self)||!isAlive(Ent))breakAwesome faceoShot=self thread maps\mp\killstreaks\_ac130::setPlayerAngesReal(Angle,0.005,3);if(self.Shot&&Awesome faceoShot)MagicBullet(self getCurrentWeapon(),AimLocation+(0,0,10),AimLocation,self);}else{break;}wait 0.05;}}}


This is the whole Missions

You must login or register to view this content.


send me the _ac130 and unkn0wn as well and im 100% sure il fix it

EDIT: **** bro this is unknowns aimbot? i cant get this working and i have no idea why i get a bad syntax when i try it so ionno i cant help u with this and also thats not the full code for his aimbot its this You must login or register to view this content.
02-12-2011, 07:03 AM #10
GetDeleted -_-
- Former TACOTIME77 -
Originally posted by Alfa
send me the _ac130 and unkn0wn as well and im 100% sure il fix it


AC130: You must login or register to view this content.

unkn0wn: You must login or register to view this content.

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo