ey, im using the CS Bank plugin (
http://forums.alliedmods.net/showthread.php?t=18617)
what i wanna do is when you take a widraw from the bank that a sound is played
the sound is called coin05.wav located in sounds\misc\(coin05.wav)
what is tried is to put client_cmd(0, "spk misc/coin05.wav") ad the scripting part if cash is witdrawn but that didnt worked also did
precache_sound( "misc/coin05.wav")
i cant get it to work >.>
what i got:
Code:
if(cs_get_user_money(id) + str_to_num(read)>10000)
{
bank[id] += (str_to_num(read) + cs_get_user_money(id)) - 10000
cs_set_user_money(id,10000)
client_cmd(0, "spk misc/coin05.wav")
}