Quote:
Originally Posted by fysiks
Yes, it is possible. You would need to add code to precache your custom sounds and then replace the client_cmd() that plays the sounds to instead play your custom sounds.
|
Thank you, i found the code but im getting many errors, can you help me with it? (Line 4894/4895):
PHP Code:
// audio countdown
if( !( get_pcvar_num( cvar_soundsMute ) & SOUND_COUNTDOWN ) )
{
new const contador[] = "sound/5united/contador.mp3";
client_cmd(id, "mp3 play %s", contador);
}
}
It says me this:
Quote:
plugin.sma(4844) : error 001: expected token: ";", but found "-identifier-"
plugin.sma(4844) : error 017: undefined symbol "id"
plugin.sma(4844) : warning 215: expression has no effect
plugin.sma(4844) : warning 215: expression has no effect
plugin.sma(4844) : error 001: expected token: ";", but found ")"
plugin.sma(4844) : fatal error 107: too many error messages on one line
Compilation aborted.
4 Errors.
|
I don't know how to define id because im new at this type of coding, so i hope that you can help me.
You can look at the SMA file from the plugin to edit it and then send me how to define it at the code. It would help me a lot.
__________________