Raised This Month: $ Target: $400
 0% 

Why didn't work ?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Kiske
Veteran Member
Join Date: May 2009
Old 06-22-2012 , 10:37   Why didn't work ?
Reply With Quote #1

Why didn't work ?

PHP Code:
register_forward(FM_CmdStart"fw_CmdStart");

public 
fw_CmdStart(idhandle)
{
    if(!
is_user_alive(id))
        return 
FMRES_IGNORED;
    
    if(!
g_charm[id])
        return 
FMRES_IGNORED;
    
    static 
iButton;
    
iButton get_uc(handleUC_Buttons);
    
    if(
g_charm[id] && g_charm_nil[id])
    {
        if(
iButton IN_ATTACK)         iButton &= ~IN_ATTACK// this work
        
else if(iButton IN_ATTACK2)   iButton &= ~IN_ATTACK2// this work
        
else if(iButton IN_FORWARD)   iButton &= ~IN_FORWARD;
        else if(
iButton IN_BACK)      iButton &= ~IN_BACK;
        else if(
iButton IN_LEFT)      iButton &= ~IN_LEFT;
        else if(
iButton IN_RIGHT)     iButton &= ~IN_RIGHT;
        else if(
iButton IN_MOVELEFT)  iButton &= ~IN_MOVELEFT;
        else if(
iButton IN_MOVERIGHTiButton &= ~IN_MOVERIGHT;
        else if(
iButton IN_DUCK)      iButton &= ~IN_DUCK;
        else if(
iButton IN_JUMP)      iButton &= ~IN_JUMP;
        else if(
iButton IN_RUN)       iButton &= ~IN_RUN;
        
        
set_uc(handleUC_ButtonsiButton);
        
        return 
FMRES_SUPERCEDE;
    }
    
    return 
FMRES_IGNORED;


Last edited by Kiske; 06-22-2012 at 10:38.
Kiske is offline
Send a message via Skype™ to Kiske
 



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:19.


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