Raised This Month: $ Target: $400
 0% 

nvm


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
iStrike
Member
Join Date: May 2012
Old 07-11-2012 , 06:27   nvm
Reply With Quote #1

How can I block pressing 'E' & 'Attack' together?
thanks guys
__________________
iStrike is offline
Napoleon_be
Veteran Member
Join Date: Jul 2011
Location: Belgium
Old 07-11-2012 , 10:31   Re: Help Block Two Buttons
Reply With Quote #2

PHP Code:
register_forward(FM_CmdStart"CmdStart"
PHP Code:
public CmdStart(idHandle) {
    if(
is_user_alive(id)) {
        static 
button
        button 
get_uc(HandleUC_Buttons)
        
        if (
button IN_ATTACK && button IN_USE) {
            
// button &= ~IN_ATTACK // Block attack 2 or Use. This is blocking Attack
            
button &= ~IN_USE // This blocks Use. I'd rather prefer blocking use while pressing both. So i comment button &= ~IN_ATTACK
        
}
        
        
set_uc(HandleUC_Buttonsbutton)
    }

__________________
Napoleon_be is offline
Send a message via Skype™ to Napoleon_be
iStrike
Member
Join Date: May 2012
Old 07-11-2012 , 10:48   Re: Help Block Two Buttons
Reply With Quote #3

Quote:
Originally Posted by Napoleon_be View Post
PHP Code:
register_forward(FM_CmdStart"CmdStart"
PHP Code:
public CmdStart(idHandle) {
    if(
is_user_alive(id)) {
        static 
button
        button 
get_uc(HandleUC_Buttons)
        
        if (
button IN_ATTACK && button IN_USE) {
            
// button &= ~IN_ATTACK // Block attack 2 or Use. This is blocking Attack
            
button &= ~IN_USE // This blocks Use. I'd rather prefer blocking use while pressing both. So i comment button &= ~IN_ATTACK
        
}
        
        
set_uc(HandleUC_Buttonsbutton)
    }

Thanks
__________________
iStrike is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 15:21.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode