For strafe hack
https://pastebin.com/fwFD2Fbz
Code:
#include <amxmodx>
#include <fakemeta>
#include <xs>
const ButtonBits = ( IN_DUCK );
new anti_strafes;
public plugin_init()
{
anti_strafes = register_cvar( "amx_strafe_speed", "0.80" );
register_forward( FM_CmdStart , "fw_FMCmdStart" );
}
public fw_FMCmdStart( id , handle , seed )
{
if ( get_uc( handle , UC_Buttons ) & ButtonBits )
{
static Float:Velocity[3]
pev(id, pev_velocity, Velocity)
if (Velocity[0] > 250.0 || Velocity[1] > 250.0 || Velocity[2] > 250.0)
{
xs_vec_mul_scalar( Velocity, get_pcvar_float(anti_strafes), Velocity)
set_pev(id, pev_velocity, Velocity)
}
}
return FMRES_IGNORED
}