I'm not sure what you want. You want zombie to duck and disallow him to jump? If so, you can try this (not tested and I doubt that it will work flawlessly).
Code:
public FwdCmdStart(id, uc_handle, seed)
{
if(!is_user_alive(id) || !zp_get_user_zombie(id))
return FMRES_IGNORED
static Buttons, DoAction;
Buttons = get_uc(uc_handle, UC_Buttons);
if (!(Buttons & IN_DUCK))
{
DoAction = true;
Buttons |= IN_DUCK;
}
if (Buttons & IN_JUMP)
{
DoAction = true;
Buttons |= ~IN_JUMP;
}
if (DoAction)
{
set_uc(uc_handle, UC_Buttons, Buttons);
return FMRES_SUPERCEDE;
}
return FMRES_IGNORED;
}
__________________