Thread: Unstuck help
View Single Post
Napoleon_be
Veteran Member
Join Date: Jul 2011
Location: Belgium
Old 11-02-2020 , 08:44   Re: Unstuck help
Reply With Quote #2

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)) 
__________________

Last edited by Napoleon_be; 11-02-2020 at 08:49.
Napoleon_be is offline
Send a message via Skype™ to Napoleon_be