What's new

Discussion [mini release]buttons pressed pop up on screen

C

Crippler

Getting There
Messages
1,942
Reaction score
598
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
 
S

SnD Scrub

The Warez kings humble Protégé
Messages
3,035
Reaction score
412
cool love the avatar BTW
 
D

DeadSox

Xbox Nerd
Messages
1,007
Reaction score
66
You being bored is a very good thing. :biggrin:
 
G

GODLYM0DZ

Enthusiast
Messages
310
Reaction score
389
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
 
C

Crippler

Getting There
Messages
1,942
Reaction score
598
thanx godly i pulled an all nighter im outa gas lol
 
M

Mike

Contributor
Messages
3,475
Reaction score
639
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