Add this and then do the scenario's that you are trying to detect to get the appropriate conditions? It's going to be tough with your code being in prethink.
PHP Code:
server_print( "[Old Jump=%d] [Jump=%d] [Old Duck=%d] [Duck=%d] [OnGround=%d]" , !!(biOldButtons & IN_JUMP) , !!(biButtons & IN_JUMP) , !!(biOldButtons & IN_DUCK) , !!(biOldButtons & IN_DUCK) , !!(biOldFlags & FL_ONGROUND) )
Or this?
PHP Code:
if ( ( biButtons & IN_JUMP && !( biButtons & IN_DUCK ) && biOldButtons & IN_DUCK && biOldFlags & FL_ONGROUND ) ||
( ( biOldButtons & IN_JUMP && biButtons & IN_JUMP ) && ( biOldButtons & IN_DUCK && biButtons & IN_DUCK ) && !( biFlags & FL_ONGROUND ) ) )
__________________