Hello. I am new on this, so I do not know almost anything about what I am doing. I just copy and paste pieces of code. My problem is about EmitSoundToall function.
I have read this but I did not get anything:
http://forums.alliedmods.net/showthread.php?t=94535
My sound is custom, so I have to make players to download it from my server. I have done that and precached sound, but still not working... Any idea?
Here I post what I think is relevant:
Code:
#include <sourcemod>
#include <sdktools>
#include <sdkhooks>
#include <sdktools_sound>
Code:
public OnPluginStart()
{
//deleted not needed stuff
AddFileToDownloadsTable("sound/jihad/jihad.wav");
PrecacheSound("jihad/jihad.wav", true);
}
Code:
public OnMapStart()
{
AddFileToDownloadsTable("sound/jihad/jihad.wav");
PrecacheSound("sound/jihad/jihad.wav", true);
}
Code:
if blablalbalba
{
EmitSoundToAll("jihad/jihad.wav", client, SNDCHAN_AUTO, SNDLEVEL_MINIBIKE);
}
else
...
I missed something? Did something wrong?
Place in mind that this code is about copy pasting from other codes
Hopeto get into a solution soon,
Thanks,
McD0n3ld