What's new

Discussion [mini release]buttons pressed pop up on screen

  • Thread starter Crippler
  • Start date
  • Views 1,132
C

Crippler

Getting There
Messages
1,942
Reaction score
598
Points
230
Sin$
0
do this for each button and when pressed in game they pop up on screen

Code:
if(self AdsButtonPressed()) 
self iPrintlnBold( "[{+speed_throw}]" ); 
wait 0.5;

example
Code:
doButtons()  
{    
for (;;) 
{ 
if(self UseButtonPressed())   
{    
self iPrintlnBold( "[{+usereload}]" );  
wait 0.5;    
}    

}  
}
i know theres no real point besides my password release but still :lol:

Edit: thnx godly ive been up waaay too long ima bed now lol
 
GODLYM0DZ

GODLYM0DZ

Enthusiast
Messages
310
Reaction score
389
Points
115
Sin$
0
im not sure u need the while because that will keep looping the function, aswell as the wait. I may be wrong but this is what i would do


Code:
doButtons()   
{   
for (;;)
{
if(self UseButtonPressed())  
{   
self iPrintlnBold( "[{+usereload}]" ); 
wait 0.5;   
}   

} 
}


Here are a list of other commands too

Code:
self AdsButtonPressed()//left trigger
self AttackButtonPressed()//right trigger
self FragButtonPressed()//RB
self MeleeButtonPressed()//RS
self SecondaryOffhandButtonPressed()//LB
self UseButtonPressed()//X button
 
M

Mike

Contributor
Forum Addict
Messages
3,475
Reaction score
639
Points
375
Sin$
7
im not sure u need the while because that will keep looping the function, aswell as the wait. I may be wrong but this is what i would do


Code:
doButtons()   
{   
for (;;)
{
if(self UseButtonPressed())  
{   
self iPrintlnBold( "[{+usereload}]" ); 
wait 0.5;   
}   

} 
}


Here are a list of other commands too

Code:
self AdsButtonPressed()//left trigger
self AttackButtonPressed()//right trigger
self FragButtonPressed()//RB
self MeleeButtonPressed()//RS
self SecondaryOffhandButtonPressed()//LB
self UseButtonPressed()//X button


self SecondaryOffhandButtonPressed()


That dont work... Im pretty sure its MP only
 
Top Bottom
Login
Register