new button = pev(id, pev_button) if ((button & IN_USE) && !(pev(id, pev_oldbuttons) & IN_USE)) { //Your Code }