AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   need help with sound (https://forums.alliedmods.net/showthread.php?t=60991)

vl@d 09-18-2007 10:14

need help with sound
 
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?

Alka 09-18-2007 10:20

Re: need help with sound
 
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...

ConnorMcLeod 09-18-2007 10:36

Re: need help with sound
 
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^"")



Alka 09-18-2007 10:46

Re: need help with sound
 
Oh yeah, LOL! How can't i thought at that ?! >.>

vl@d 09-18-2007 12:32

Re: need help with sound
 
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 :)

ConnorMcLeod 09-18-2007 14:06

Re: need help with sound
 
This is the same way, if it's that you mean.


All times are GMT -4. The time now is 16:13.

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