PHP Code:
stock EmitAmbientSoundAny(const String:name[], // switch to "sample"
const Float:pos[3],
entity = SOUND_FROM_WORLD,
level = SNDLEVEL_NORMAL,
flags = SND_NOFLAGS,
Float:vol = SNDVOL_NORMAL,
pitch = SNDPITCH_NORMAL,
Float:delay = 0.0)
{
decl String:szSound[PLATFORM_MAX_PATH];
if (g_bNeedsFakePrecache)
{
Format(szSound, sizeof(szSound), "*%s", sample); // cuz here "sample"
}
else
{
strcopy(szSound, sizeof(szSound), sample);
}
EmitAmbientSound(szSound, pos, entity, level, flags, vol, pitch, delay);
}