This may help, depending on what your goal is. As you found, there is no IN_STAND, so you have only IN_DUCK to work with.
PHP Code:
#include <amxmodx>
#include <fakemeta>
public plugin_init()
{
register_forward( FM_CmdStart , "CmdStart" );
}
public CmdStart( id , uc_handle , seed )
{
static Buttons , OldButtons;
Buttons = get_uc( uc_handle , UC_Buttons );
OldButtons = pev( id , pev_oldbuttons );
if ( !( OldButtons & IN_DUCK ) && ( Buttons & IN_DUCK ) )
{
//Began ducking (first pressed duck)
}
else if ( ( OldButtons & IN_DUCK ) && ( Buttons & IN_DUCK ) )
{
//Is ducking (holding duck)
}
else if ( ( OldButtons & IN_DUCK ) && !( Buttons & IN_DUCK ) )
{
//Stopped ducking (just released duck)
}
else if ( !( OldButtons & IN_DUCK ) && !( Buttons & IN_DUCK ) )
{
//Player is standing (did not recently press or release duck)
}
}
__________________