Raised This Month: $ Target: $400
 0% 

HELPME setting a key 4 any cmd


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
DavidJr
Senior Member
Join Date: Apr 2012
Old 03-21-2014 , 09:37   Re: HELPME setting a key 4 any cmd
Reply With Quote #6

hornet, what about this?

PHP Code:
#define m_afButtonPressed 246
#define m_afButtonReleased 247 

public client_PreThink(iIndex)
{
    new 
iButtonPressediButtonReleased;
    
iButtonPressed get_pdata_int(iJndexm_afButtonPressedXO_PLAYER);
    
iButtonReleased get_pdata_int(iIndexm_afButtonReleasedXO_PLAYER);
    
    if (
iButtonPressed IN_SCORE)
    {
        
//button pressed
    
}
    else if (
iButtonReleased IN_SCORE)
    {
        
//button released
    
}

__________________
What are you looking for here?
DavidJr is offline
 



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 06:01.


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