Raised This Month: $ Target: $400
 0% 

End button help


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
drakeris
Senior Member
Join Date: Jul 2009
Old 05-30-2010 , 12:36   Re: need help with button...
Reply With Quote #5

Quote:
Originally Posted by Bugsy View Post
PHP Code:
#include <amxmodx>
#include <fakemeta>

#define TASK_ENDBUT    2356

public plugin_init() 
{
    
register_forwardFM_CmdStart "FwdCmdStart" );
}

public 
FwdCmdStartid uc_handle seed )
{
    
//if (is_user_connected(id) && get_pcvar_num(ff_stat))
    //    return FMRES_IGNORED;
    
    //this is your problem code
    
static target[32]
    
peventpev_targetname target 31 )
    
//&& equal( target , "endbut" )
    
    
if ( ( get_ucuc_handle UC_Buttons ) & IN_USE ) && !( pevid pev_oldbuttons ) & IN_USE ) )
    {
        
set_task1.0 "text" TASK_ENDBUT id );
    }
    
    return 
FMRES_IGNORED;
}

public 
texttaskid )
{
    
client_printtaskid TASK_ENDBUT print_chat"gratz You almost won the fear factory left only one victory...")

thanks it worked :} now i know my problem
P.S.Your the best :}
__________________
drakeris 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 05:26.


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