Use it in the curweapon event, when the weapon is knife change the speed, when is NOT, leave it alone...
PHP Code:
new cvar_knife_speed
public plugin_init()
{
register_event("CurWeapon", "curWeap", "be", "1=1")
cvar_knife_speed = register_cvar("amx_knife_speed", "330")
}
public curWeap(id)
{
static weapon
weapon = read_data(2)
if(weapon == CSW_KNIFE)
set_user_maxspeed(id, get_pcvar_float(cvar_knife_speed))
}
Or something like it :}
__________________