Help Bind thread on specific keys?!
#1
help me to get this code work Big Grin and it should end if the button is unpressed
PHP 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; } }
Reply

#2
no one? Sad
Reply

#3
Isn't it:
PHP Code:
while(;;)

and why do you have:
PHP Code:
if( !self ButtonPressed ("+breath_sprint") ){
The "!"
Reply

#4
this thread told me so: http://www.itsmods.com/forum/Thread-Blac...Codes.html
Reply

#5
/pushy
Reply

#6
(06-03-2011, 14:27)surtek Wrote: Isn't it:
PHP Code:
while(;;)

and why do you have:
PHP Code:
if( !self ButtonPressed ("+breath_sprint") ){
The "!"

No surtek, it's for(;Wink or while(1), they're the same thing. :>

Have you tried removing the plus sign?
[Image: 30xhrep.png]

A casual conversation between barata and I about Nukem.
Reply

#7
(06-03-2011, 23:43)master131 Wrote:
(06-03-2011, 14:27)surtek Wrote: Isn't it:
PHP Code:
while(;;)

and why do you have:
PHP Code:
if( !self ButtonPressed ("+breath_sprint") ){
The "!"

No surtek, it's for(;Wink or while(1), they're the same thing. :>

Have you tried removing the plus sign?

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...
Reply

#8
/pushy
Reply

#9
Isn't buttonPressed for a specific button (Like "DPAD_UP")? Also I think it only works on consoles.
[Image: azuw.jpg]
Reply

#10
what about
PHP Code:
if ( "sprint_begin" )
Reply



Possibly Related Threads…
Thread Author Replies Views Last Post
  Thread removed [HARD] Tony. 4 5,845 10-01-2013, 17:53
Last Post: DidUknowiPwn
  Help Thread removed [HARD] Tony. 5 5,463 09-26-2013, 20:26
Last Post: Casper
  Thread removed [HARD] Tony. 3 4,313 09-22-2013, 16:23
Last Post: d0h!
  Thread removed [HARD] Tony. 2 3,974 09-20-2013, 18:03
Last Post: [HARD] Tony.
  Thread removed [HARD] Tony. 3 4,576 09-20-2013, 16:00
Last Post: Nekochan
  Steam keys Arteq 9 11,127 08-29-2013, 18:55
Last Post: DidUknowiPwn
  Help Official Teckno Gods Thread [Stickied] aceed 3 4,674 08-27-2013, 16:55
Last Post: SuperNovaAO
  Black Ops 2 *RoW* Keys available now! d0h! 345 229,080 04-05-2013, 18:12
Last Post: SuperNovaAO
  [Request] Russian Black Ops 2 keys SuperNovaAO 10 11,883 04-05-2013, 18:10
Last Post: SuperNovaAO
  Help Easiest Way To Thread a Display Icon? DidUknowiPwn 1 3,374 01-04-2013, 13:02
Last Post: Yamato

Forum Jump:


Users browsing this thread:
1 Guest(s)

Forum Powered By MyBB, Theme by © 2002-2026 Melroy van den Berg.