Raised This Month: $ Target: $400
 0% 

ad sound to bankscript


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
eewokney
Junior Member
Join Date: May 2005
Old 01-05-2008 , 16:30   ad sound to bankscript
Reply With Quote #1

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")                     }
eewokney is offline
Send a message via MSN to eewokney
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 11:03.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode