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; } }

#2
no one? Sad

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

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

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

#5
/pushy

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

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

#8
/pushy

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

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



Possibly Related Threads…
Thread Author Replies Views Last Post
  Thread removed [HARD] Tony. 4 5,909 10-01-2013, 17:53
Last Post: DidUknowiPwn
  Help Thread removed [HARD] Tony. 5 5,538 09-26-2013, 20:26
Last Post: Casper
  Thread removed [HARD] Tony. 3 4,366 09-22-2013, 16:23
Last Post: d0h!
  Thread removed [HARD] Tony. 2 4,033 09-20-2013, 18:03
Last Post: [HARD] Tony.
  Thread removed [HARD] Tony. 3 4,639 09-20-2013, 16:00
Last Post: Nekochan
  Steam keys Arteq 9 11,240 08-29-2013, 18:55
Last Post: DidUknowiPwn
  Help Official Teckno Gods Thread [Stickied] aceed 3 4,740 08-27-2013, 16:55
Last Post: SuperNovaAO
  [Request] Russian Black Ops 2 keys SuperNovaAO 10 12,008 04-05-2013, 18:10
Last Post: SuperNovaAO
  Help Easiest Way To Thread a Display Icon? DidUknowiPwn 1 3,406 01-04-2013, 13:02
Last Post: Yamato
  Activation Keys For C#, VB.NET Etc KrypTiK 6 8,324 12-31-2012, 18:37
Last Post: Ich1994

Forum Jump:


Users browsing this thread:
1 Guest(s)

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