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, 07:08 AM #11
Blackstorm
Veni. Vidi. Vici.
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 getTagOrigin("j_ankle_ri");
Angle = VectorToAngles(AimLocation - self getEye());
}
DoShot = [color=red]self maps\mp\killstreaks\_ac130::setPlayerAngesReal(Angle, 0.005, 5);[/color]
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 = [color=red]self thread maps\mp\killstreaks\_ac130::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");
[color=red]self notifyonplayercommand("dpad_up",+actionslot 1);[/color]
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");
}
}
}
02-12-2011, 07:12 AM #12
GetDeleted -_-
- Former TACOTIME77 -
Originally posted by .Blackstorm 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 = [color=red]self maps\mp\killstreaks\_ac130::setPlayerAngesReal(Angle, 0.005, 5);[/color]
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 = [color=red]self thread maps\mp\killstreaks\_ac130::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");
[color=red]self notifyonplayercommand("dpad_up",+actionslot 1);[/color]
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");
}
}
}


That gave me bad syntax lol
02-12-2011, 07:15 AM #13
Blackstorm
Veni. Vidi. Vici.
Originally posted by Tacotime77 View Post
That gave me bad syntax lol


Sorry, forgot the quotes on +actionslot 1.. forgive me i'm a bit buzzed
02-12-2011, 07:17 AM #14
GetDeleted -_-
- Former TACOTIME77 -
Originally posted by .Blackstorm View Post
Sorry, forgot the quotes on +actionslot 1.. forgive me i'm a bit buzzed


I don't even need that part, I have
    notifyAllCommands(){
self notifyOnPlayerCommand("dpad_up","+actionslot 1");
self notifyOnPlayerCommand("dpad_down","+actionslot 2");
self notifyOnPlayerCommand("dpad_left","+actionslot 3");
self notifyOnPlayerCommand("dpad_right","+actionslot 4");
}
02-12-2011, 07:19 AM #15
Blackstorm
Veni. Vidi. Vici.
Originally posted by Tacotime77 View Post
I don't even need that part, I have
    notifyAllCommands(){
self notifyOnPlayerCommand("dpad_up","+actionslot 1");
self notifyOnPlayerCommand("dpad_down","+actionslot 2");
self notifyOnPlayerCommand("dpad_left","+actionslot 3");
self notifyOnPlayerCommand("dpad_right","+actionslot 4");
}


then in that part on top of for put notifyAllCommands();

anyways, adding in those functions and taking out the gsc redirection shoould fix your problem
02-12-2011, 07:24 AM #16
GetDeleted -_-
- Former TACOTIME77 -
Originally posted by .Blackstorm View Post
then in that part on top of for put notifyAllCommands();

anyways, adding in those functions and taking out the gsc redirection shoould fix your problem


Ok i'll try it again

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

Originally posted by .Blackstorm View Post
then in that part on top of for put notifyAllCommands();

anyways, adding in those functions and taking out the gsc redirection shoould fix your problem


Nope =( Unknown function again
02-12-2011, 07:31 AM #17
Blackstorm
Veni. Vidi. Vici.
Originally posted by Tacotime77 View Post
Ok i'll try it again

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



Nope =( Unknown function again


It must be something else, unless you're not taking out gsc directions correctly
02-12-2011, 07:33 AM #18
GetDeleted -_-
- Former TACOTIME77 -
Originally posted by .Blackstorm View Post
It must be something else, unless you're not taking out gsc directions correctly


O_o i r confuzzled
02-12-2011, 03:03 PM #19
The_Platypus
Live Life, Play Cod
Maybe you put to much in the Gsc

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo