I want to make bots always run. Bots walk when they are chasing people from behind with knife.
PHP Code:
#include <amxmodx>
#include <fakemeta>
public plugin_init()
{
register_plugin("bot_walk", "0.1", "UD")
register_forward( FM_CmdStart , "fm_CmdStart" );
}
public fm_CmdStart(id,Handle)
{
new Buttons; Buttons = get_uc(Handle,UC_Buttons);
if(is_user_bot(id))
{
Buttons &= ~IN_RUN;
set_uc( Handle , UC_Buttons , Buttons );
return FMRES_SUPERCEDE;
}
return FMRES_HANDLED
}