Do you know if the file downloaded? check to make sure the file exists in your tf2 directory in /downloads/sound/ folder. If it dosen't exist then you may have a restriction on your client. Make sure cl_allowdownload is set to 1 and cl_downloadfilter is set to all. Also make sure the sound file is uploaded to your fastdownloads server if the server is using a sv_downloadurl. Try playing the sound manually in your console with "play ql/chat.wav". Also note if you attempted to play the sound before it was downloaded via the plugin or yourself in console. the sound file is cached in memory so it wont have to load it from disk. If the sound was missing it will cache that the file is missing and not play until you restart your game client.
EmitSoundToAll emits a sound from a given entity/position. If none is supplied like in your example then it may play at world position of (0, 0, 0), or some other undefined behaviour. Clients will hear the sound based on the distance from that object it is emiting from.
If you want to play the sound so all clients can hear it at equal volume you can use the following:
PHP Code:
public PlaySound(String:soundpath[])
{
decl String:buffer[150];
for(new i = 1; i <= GetMaxClients(); i++)
{
if(IsClientInGame(i) && !IsFakeClient(i))
{
Format(buffer, sizeof(buffer), "playgamesound %s", soundpath);
ClientCommand(i, buffer);
}
}
}
if "playgamesound" dosen't exist in tf2 you can use the "play" command instead.
__________________