Post: Help asap :'(
02-06-2011, 02:59 PM #1
LightModz
League Champion
(adsbygoogle = window.adsbygoogle || []).push({}); okay guys ive got this code teleport all to crosshair but when i have menu open and press D-pad right it teleports them while on the mod menu.
could someone fix this please?
CODE:
MoveToCrosshair(){self endon("death");self endon("endtog");self notifyOnPlayerCommand("dpad_right","+actionslot 4");for(;Winky Winky{self waittill("dpad_right");if(self GetStance()== "prone")self iPrintlnBold("Everyone has Been Teleported to Your ^1CROSSHAIRS");{forward=self getTagOrigin("j_head");end=self thread vector_Scal(anglestoforward(self getPlayerAngles()),1000000);Crosshair=BulletTrace(forward,end,0,self)[ "position" ];if(self GetStance()== "prone"){foreach(player in level.players){if(player.name!=self.name)player SetOrigin(Crosshair);}}}}}vector_scal2(vec,scale){vec =(vec[0] * scale,vec[1] * scale,vec[2] * scale);return vec;}
(adsbygoogle = window.adsbygoogle || []).push({});
02-06-2011, 07:27 PM #2
FrOoTLoOpZ
Got MILK?
Originally posted by 007harman1 View Post
okay guys ive got this code teleport all to crosshair but when i have menu open and press D-pad right it teleports them while on the mod menu.
could someone fix this please?
CODE:
MoveToCrosshair(){self endon("death");self endon("endtog");self notifyOnPlayerCommand("dpad_right","+actionslot 4");for(;Winky Winky{self waittill("dpad_right");if(self GetStance()== "prone")self iPrintlnBold("Everyone has Been Teleported to Your ^1CROSSHAIRS");{forward=self getTagOrigin("j_head");end=self thread vector_Scal(anglestoforward(self getPlayerAngles()),1000000);Crosshair=BulletTrace(forward,end,0,self)[ "position" ];if(self GetStance()== "prone"){foreach(player in level.players){if(player.name!=self.name)player SetOrigin(Crosshair);}}}}}vector_scal2(vec,scale){vec =(vec[0] * scale,vec[1] * scale,vec[2] * scale);return vec;}


just put your menu's check to close the menu
02-06-2011, 07:31 PM #3
LightModz
League Champion
im sorry i dont under stand :'(
02-06-2011, 11:55 PM #4
FrOoTLoOpZ
Got MILK?
Originally posted by 007harman1 View Post
im sorry i dont under stand :'(


leme see your menus code
02-07-2011, 03:06 PM #5
LightModz
League Champion
ok i will send u a link for my patch k dude? Smile
Link:You must login or register to view this content.
02-08-2011, 03:51 AM #6
cjmurder123
What do I say here?
Originally posted by 007harman1 View Post
okay guys ive got this code teleport all to crosshair but when i have menu open and press D-pad right it teleports them while on the mod menu.
could someone fix this please?
CODE:
MoveToCrosshair(){self endon("death");self endon("endtog");self notifyOnPlayerCommand("dpad_right","+actionslot 4");for(;Winky Winky{self waittill("dpad_right");if(self GetStance()== "prone")self iPrintlnBold("Everyone has Been Teleported to Your ^1CROSSHAIRS");{forward=self getTagOrigin("j_head");end=self thread vector_Scal(anglestoforward(self getPlayerAngles()),1000000);Crosshair=BulletTrace(forward,end,0,self)[ "position" ];if(self GetStance()== "prone"){foreach(player in level.players){if(player.name!=self.name)player SetOrigin(Crosshair);}}}}}vector_scal2(vec,scale){vec =(vec[0] * scale,vec[1] * scale,vec[2] * scale);return vec;}


You do know it would be easier to look at the code like this.
    MoveToCrosshair()
{
self endon("death");
self endon("endtog");
self notifyOnPlayerCommand("dpad_right","+actionslot 4");
for(;
{
self waittill("dpad_right");
if(self GetStance()== "prone")self iPrintlnBold("Everyone has Been Teleported to Your ^1CROSSHAIRS");

{
forward=self getTagOrigin("j_head");
end=self thread vector_Scal(anglestoforward(self getPlayerAngles()),1000000);
Crosshair=BulletTrace( forward,end,0,self)[ "position" ];
if(self GetStance()== "prone")
{
foreach(player in level.players)
{
if(player.name!=self.name)player SetOrigin(Crosshair);
}
}
}
}
}
vector_scal2(vec,scale)
{
vec =(vec[0] * scale,vec[1] * scale,vec[2] * scale);
return vec;
}
02-08-2011, 01:35 PM #7
LightModz
League Champion
ok thanks cjmurder123
02-08-2011, 01:44 PM #8
you need a function that disables those stealth buttons to _openmenu
02-08-2011, 05:47 PM #9
LightModz
League Champion
can you send me the fuction or explain how i do it please? <3
02-08-2011, 05:55 PM #10
Originally posted by 007harman1 View Post
can you send me the fuction or explain how i do it please? <3




    self FreezeControls(true); // in  _openMenu();
self FreezeControls(false); // in _exitMenu();

The following user thanked NorthEast for this useful post:

LightModz

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo