You aren't checking for IsClientConnected, you're checking !IsClientConnected or if client is
not connected. Same thing with your "IsFakeClient". And then you're having it continue to a function that is trying to perform something on a client that is either not there or is a fake client.
You should change it to something like this:
PHP Code:
for (int i = 1; i < MaxClients; i++) {
if (IsClientConnected(i) && !IsFakeClient(i)) {
EmitSoundToClient(i, sound_witch, witch_id, SNDCHAN_AUTO, SNDLEVEL_NORMAL, SND_NOFLAGS, SNDVOL_NORMAL, SNDPITCH_NORMAL, -1, NULL_VECTOR, NULL_VECTOR, true, 0.0);
}
}