![]() |
|
Help Bind thread on specific keys?! - Printable Version +- ItsMods (https://www.itsmods.com) +-- Forum: Archive (https://www.itsmods.com/Forum-Archive.html) +--- Forum: Archive (https://www.itsmods.com/Forum-Archive--64.html) +--- Thread: Help Bind thread on specific keys?! (/Thread-Help-Bind-thread-on-specific-keys.html) Pages:
1
2
|
Bind thread on specific keys?! - qontrixz - 06-02-2011 help me to get this code work and it should end if the button is unpressedPHP Code: walk()
{
self endon( "disconnect" );
while(1){
if( !self ButtonPressed ("+breath_sprint") ){
self setClientDvar("perk_weapSpreadMultiplier", 0.15);
self SetMoveSpeedScale( 0.55 );
self setperk("specialty_quieter");
wait 0.01;
}
else
{
self thread customrecoil();
self SetMoveSpeedScale( 1.15 );
self unsetPerk("specialty_quieter");
}
wait 0.5;
}
}
RE: Bind thread on specific keys?! - qontrixz - 06-03-2011 no one?
RE: Bind thread on specific keys?! - surtek - 06-03-2011 Isn't it: PHP Code: while(;;)
and why do you have: PHP Code: if( !self ButtonPressed ("+breath_sprint") ){
RE: Bind thread on specific keys?! - qontrixz - 06-03-2011 this thread told me so: http://www.itsmods.com/forum/Thread-Black-Ops-Modding-Variables-Codes.html RE: Bind thread on specific keys?! - qontrixz - 06-03-2011 /pushy RE: Bind thread on specific keys?! - master131 - 06-03-2011 (06-03-2011, 14:27)surtek Wrote: Isn't it: No surtek, it's for(; or while(1), they're the same thing. :>Have you tried removing the plus sign? RE: Bind thread on specific keys?! - qontrixz - 06-04-2011 (06-03-2011, 23:43)master131 Wrote:(06-03-2011, 14:27)surtek Wrote: Isn't it: i'm not stupid i tried everything if( !self ButtonPressed ("+breath_sprint") ){ if( !self ButtonPressed ("breath_sprint") ){ if( self ButtonPressed ("+breath_sprint") ){ if( self ButtonPressed ("breath_sprint") ){ if( self.ButtonPressed ("+breath_sprint") ){ if( self.ButtonPressed ("breath_sprint") ){ if( self.KeyPressed ("+breath_sprint") ){ etc... RE: Bind thread on specific keys?! - qontrixz - 06-05-2011 /pushy RE: Bind thread on specific keys?! - zxz0O0 - 06-05-2011 Isn't buttonPressed for a specific button (Like "DPAD_UP")? Also I think it only works on consoles. RE: Bind thread on specific keys?! - Madnesslink5 - 06-05-2011 what about PHP Code: if ( "sprint_begin" )
|