But if you update the pcvar the cvar won't change.
I have remove the engine & and cstrike module now, I can't get block jump to work.
Code:
public fm_cmd_start(id,uc_handle,seed)
{
if((get_pcvar_num(cvar_execution) != 1) || (!is_user_alive(id)))
{
return FMRES_IGNORED;
}
new button = get_uc(uc_handle,UC_Buttons);
if(g_player_downed[id])
{
if(button & IN_ATTACK)
{
button &= ~IN_ATTACK;
set_uc(uc_handle,UC_Buttons,button);
}
if(button & IN_ATTACK2)
{
button &= ~IN_ATTACK2;
set_uc(uc_handle,UC_Buttons,button);
}
if(button & IN_JUMP)
{
button &= ~IN_JUMP;
set_uc(uc_handle,UC_Buttons,button);
}
}
if(button & IN_USE)
{
g_player_use[id] = true;
}
else if(button & ~IN_USE)
{
g_player_use[id] = false;
}
return FMRES_HANDLED;
}