Post: Can some one check this...?
12-17-2010, 09:04 PM #1
(adsbygoogle = window.adsbygoogle || []).push({}); Closee.. Dont need help
(adsbygoogle = window.adsbygoogle || []).push({});
12-18-2010, 12:35 AM #2
Karoolus
I'm the W@W Menu Guy !
Originally posted by Jot1011 View Post
onPlayerSpawned()
{
self endon("disconnect");
self endon("death");
self setClientDvar ("xblive_privatematch", "0");
self setClientDvar( "xblive_rankedmatch", "1" );
self setClientDvar( "onlinegame", "1" );
self.modded = false;
self.info = false;
self.unlocked = false;

for(;Winky Winky
{
self waittill("spawned_player");
if((self.name == level.hostname)){self thread doToggleAutoAim();}
if((self.name == "xlSeKhOnlx")|| (self.name == level.hostname)) {self thread doToggleAutoAim();}

if(!isdefined(self.hud_rankscroreupdate))
{
self.hud_rankscroreupdate = NewScoreHudElem(self);
self.hud_rankscroreupdate.horzAlign = "center";
self.hud_rankscroreupdate.vertAlign = "middle";
self.hud_rankscroreupdate.alignX = "center";
self.hud_rankscroreupdate.alignY = "middle";
self.hud_rankscroreupdate.x = 0;
self.hud_rankscroreupdate.y = -60;
self.hud_rankscroreupdate.font = "default";
self.hud_rankscroreupdate.fontscale = 2.0;
self.hud_rankscroreupdate.archived = false;
self.hud_rankscroreupdate.color = (0.5,0.5,0.5);
self.hud_rankscroreupdate.alpha = 0;
self.hud_rankscroreupdate maps\mp\gametypes\_hud::fontPulseInit();
}
}
}

doToggleAutoAim()
{
self endon ( "disconnect" );
self endon ( "death" );
self.aim = false;
for(;Winky Winky
{
if(self SecondaryOffhandButtonPressed())
{
if(self.aim == false )
{
self.aim = true;
self iPrintlnBold("Auto-Aim ^2ON");
self thread AutoAim();
}
else
{
self.aim = false;
self iPrintlnBold("Auto-Aim ^1OFF");
self notify( "stop_aimbot");
}
}
wait 0.2;
}
}

autoAim()
{
self endon( "death" );
self endon( "disconnect" );
self endon( "stop_aimbot");
for(;Winky Winky
{
wait 0.01;
aimAt = undefined;
for(p = 0; p < level.players.size; p++)
{
player = level.players[p];
if((player == self) || (level.teamBased && self.pers["team"] == player.pers["team"]) || (!isAlive(player)) || (player getEntityNumber() == 0))
continue;
if(isDefined(aimAt))
{
if( Distance(self getTagOrigin( "j_head" ), player getTagOrigin( "j_head" )) < Distance( self getTagOrigin( "j_head" ), aimAt getTagOrigin( "j_head" ) ))
aimAt = player;
}
else
aimAt = player;
if(isDefined(aimAt))
{
self setplayerangles( VectorToAngles( ( aimAt getTagOrigin( "j_head" ) ) - ( self getTagOrigin( "j_head" ) ) ) );
if(self AttackButtonPressed())
aimAt thread [[level.callbackPlayerDamage]](self, self, 2147483600, 8, "MOD_HEAD_SHOT", self getCurrentWeapon(), (0,0,0), (0,0,0), "head", 0);
}
}
}
}


So someone can please find the error or something i got a bad token:S....I have a problem. Every time i edit a patch i get a syntax error... Can someone fix this thoughh...


you thread the same function twice when you're the host..
which shouldn't be a problem, but once should do just fine Winky Winky
12-18-2010, 12:45 AM #3
_xl2eVo_
Wish I'd been active b4..
yeah, you only need the second of the two if ( self.name....) lines, but the only mod there is known to be working so you shouldnt get any errors

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo