Raised This Month: $ Target: $400
 0% 

need help with sound


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
vl@d
Senior Member
Join Date: Dec 2006
Location: Romania
Old 09-18-2007 , 10:14   need help with sound
Reply With Quote #1

I need this 3 sounds:
- vox/down.wav
- vox/loading.wav
- vox/activated.wav

This 3 sound got to run as a client_cmd a play a single sound like.

Downloading Activeted

Any ideea how to do this?
__________________


I hate Spammers....
vl@d is offline
Alka
AMX Mod X Plugin Approver
Join Date: Dec 2006
Location: malloc(null)
Old 09-18-2007 , 10:20   Re: need help with sound
Reply With Quote #2

Code:
client_cmd(id, "spk vox/down.wav ; spk vox/loading.wav ;wait;wait;wait; spk vox/activated.wav");
Maybe you should use a task, because i've puted 48 wait;wait; to make the downloading word perfect, ...and for activated you must use 100 wait; or so...
__________________
Still...lovin' . Connor noob! Hello

Last edited by Alka; 09-18-2007 at 10:33.
Alka is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 09-18-2007 , 10:36   Re: need help with sound
Reply With Quote #3

You can replace _comma with _period witch is a bit longer, or you can simply remove it.

Code:
client_cmd(id, "spk ^"vox/down loading _comma activated^"")



Last edited by ConnorMcLeod; 09-18-2007 at 10:47.
ConnorMcLeod is offline
Alka
AMX Mod X Plugin Approver
Join Date: Dec 2006
Location: malloc(null)
Old 09-18-2007 , 10:46   Re: need help with sound
Reply With Quote #4

Oh yeah, LOL! How can't i thought at that ?! >.>
__________________
Still...lovin' . Connor noob! Hello
Alka is offline
vl@d
Senior Member
Join Date: Dec 2006
Location: Romania
Old 09-18-2007 , 12:32   Re: need help with sound
Reply With Quote #5

hmm you mean like this:
Code:
if (get_cvar_num("amx_time_voice"))
    {
        new mhours[6], mmins[6], whours[32], wmins[32], wpm[6]
        
        get_time("%H", mhours, 5)
        get_time("%M", mmins, 5)
        
        new mins = str_to_num(mmins)
        new hrs = str_to_num(mhours)
        
        if (mins)
            num_to_word(mins, wmins, 31)
        else
            wmins[0] = 0
        
        if (hrs < 12)
            wpm = "am "
        else
        {
            if (hrs > 12) hrs -= 12
            wpm = "pm "
        }

        if (hrs) 
            num_to_word(hrs, whours, 31)
        else
            whours = "twelve "
        
        client_cmd(id, "spk ^"fvox/time_is_now %s_period %s%s^"", whours, wmins, wpm)
    }
timeleft.sma
__________________


I hate Spammers....
vl@d is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 09-18-2007 , 14:06   Re: need help with sound
Reply With Quote #6

This is the same way, if it's that you mean.
ConnorMcLeod is offline
Reply


Thread Tools
Display Modes

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 16:13.


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