Fixed it, needed to get oldbuttons.
PHP Code:
public CmdStart( id, uc_handle ) {
if( !is_user_alive( id ) )
return FMRES_IGNORED;
static button, oldbuttons;
button = get_uc( uc_handle, UC_Buttons );
oldbuttons = pev( id, pev_oldbuttons );
if( button & IN_USE && !( oldbuttons & IN_USE ) && !is_fArmor[ id ] ) {
if( nextAvailable[ id ] > get_gametime( ) ) {
client_print( id, print_chat, "You can't armor yourself yet!" );
return FMRES_IGNORED;
}
fArmor( id );
}
else if( !( button & IN_USE ) && is_fArmor[ id ] )
fArmor( id, true );
else if( button & (IN_FORWARD|IN_BACK|IN_DUCK|IN_MOVELEFT|IN_MOVERIGHT|IN_JUMP|IN_ATTACK|IN_ATTACK2) && is_fArmor[ id ] )
fArmor( id, false );
return FMRES_IGNORED;
}