public client_PreThink(id){ if( is_user_alive( id ) ) { new button = entity_get_int(id, EV_INT_button); new buttonsChanged = button ^ entity_get_int(id, EV_INT_oldbuttons); if( buttonsChanged & IN_DUCK ) { if( button & IN_DUCK ) { client_print(id, print_chat, "Duck") } else { client_print(id, print_chat, "Stand") } } }}