FadeClientVolume Function

Fades a client's volume level toward silence or a given percentage.

void FadeClientVolume(int client, float percent, float outtime, float holdtime, float intime)

Parameters

int client

Client index.

float percent

Fade percentage.

float outtime

Fade out time, in seconds.

float holdtime

Hold time, in seconds.

float intime

Fade in time, in seconds.

Errors

Invalid client index or client not in game.