You could use FM_CmdStart and get_uc(), with UC_Buttons.
Example:
Code:
#include < amxmodx >
#include < fakemeta >
const IN_ALL = ( IN_JUMP | IN_DUCK | IN_ATTACK | IN_ATTACK2 | IN_USE | IN_RELOAD ); // You may add more
public plugin_init( )
{
register_plugin( "CmdStart Example", "0.1.0", "Xellath" );
register_forward( FM_CmdStart, "Forward_CmdStart" );
}
public Forward_CmdStart( iClient, ucHandle )
{
if ( !is_user_alive( iClient ) )
return;
new iButton = get_uc( ucHandle, UC_Buttons );
if ( iButton & IN_ALL )
{
client_print( iClient, print_chat, "You used a button!" );
}
}
__________________