I'm not very experienced with this kind of stuff, but what if you just place that check inside this check
PHP Code:
if(g_isalive[id] && is_player_stuck(id) && get_pcvar_num(cvar_autounstuck))
and check if it's NOT pressed instead of it is pressed. That way you don't even need to use the return.
i think it should look something like this, i might be wrong though.
PHP Code:
if(g_isalive[id] && is_player_stuck(id) && get_pcvar_num(cvar_autounstuck) && (button &~ IN_USE))
or this
PHP Code:
if(g_isalive[id] && is_player_stuck(id) && get_pcvar_num(cvar_autounstuck) && !(button & IN_USE))
__________________