PHP Code:
#include <amxmodx>
#include <fakemeta>
#define TASK_ENDBUT 2356
public plugin_init()
{
register_forward( FM_CmdStart , "FwdCmdStart" );
}
public FwdCmdStart( id , uc_handle , seed )
{
//if (is_user_connected(id) && get_pcvar_num(ff_stat))
// return FMRES_IGNORED;
//this is your problem code
static target[32]
pev( ent, pev_targetname , target , 31 )
//&& equal( target , "endbut" )
if ( ( get_uc( uc_handle , UC_Buttons ) & IN_USE ) && !( pev( id , pev_oldbuttons ) & IN_USE ) )
{
set_task( 1.0 , "text" , TASK_ENDBUT + id );
}
return FMRES_IGNORED;
}
public text( taskid )
{
client_print( taskid - TASK_ENDBUT , print_chat, "gratz You almost won the fear factory left only one victory...")
}
__________________