Code:
public Action:OnPlayerRunCmd(client, &buttons, &impulse, Float:vel[3], Float:angles[3], &weapon, &subtype, &cmdnum, &tick, &seed, mouse[2])
{
if(!IsValidClient(client))
return Plugin_Continue;
if(buttons & IN_SPEED && buttons & IN_FORWARD)
{
/* Other code */
SetEntPropFloat(client, Prop_Send, "m_flLaggedMovementValue", 2.5);
SetEntityGravity(client, 0.88);
}
/* Other code */
SetEntPropFloat(client, Prop_Send, "m_flLaggedMovementValue", 1.0);
SetEntityGravity(client, 1.0);
return Plugin_Continue;
}
Emit sound footsteps when player use button IN_SPEED and IN_FORWARD.
IN_SPEED = shift
In CS:GO when player use button shift (IN_SPEED), he has silent footsteps.