@Hunter-Digital:
i never said that it would work, i just said that you should try using it.
to block jump and duck you need to hook CmdStart:
PHP Code:
#include <amxmodx>
#include <fakemeta>
public plugin_init()
{
register_plugin("No Jump & Duck", "1.0", "Dores");
register_forward(FM_CmdStart, "CmdStart");
}
public CmdStart(id, uc_handle)
{
static button;
button = get_uc(uc_handle, UC_Buttons);
if (button & IN_JUMP)
button &= ~IN_JUMP;
if (button & IN_DUCK)
button &= ~IN_DUCK;
set_uc(uc_handle, UC_Buttons, button);
}
__________________