Hello, guys.
I need to play a sound on some event. I write this 3 lines:
Code:
public void OnMapStart()
{
.....
.....
AddFileToDownloadsTable("sound/items/<soundname>.wav");
PrecacheSound("items/<soundname>.wav", true);
.....
.....
public Action:OnEntityTouch(entity, other)
{
....
....
EmitSoundToClient(other, "items/<soundname>.wav");
....
}
This code works good, but only with some sounds. For example: It works with: items/smallmedkit1.wav and doesnt work with items/itempickup.wav
How can I fix it?