View Single Post
marcelowzd
Senior Member
Join Date: Feb 2011
Location: São Paulo, Brazil
Old 11-14-2018 , 07:39   Re: Detecting JUMP+DUCK to boost yourself
Reply With Quote #5

Quote:
Originally Posted by Bugsy View Post
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 ) ) ) 
I Just did with prethink because the original bhop plugin uses this, but i Will Also try with CmdStart and post the results

Quote:
Originally Posted by SHIELD755 View Post
is it amx_forcejump
No It isn't
__________________
marcelowzd is offline