Jump to content

Voice System


SuleymanM

Recommended Posts

Posted

Hi all,

I have an question...

How when countdown started (3 - 2 - 1 - GO) on Race Gamemode .. to start sound ... i have sounds .. "Three - Two..."

Please help me

Race_server:

...

g_RaceStartCountdown = Countdown.create(6, launchRace)

g_RaceStartCountdown:useImages('img/countdown_%d.png', 474, 204)

g_RaceStartCountdown:enableFade(true)

g_RaceStartCountdown:addClientHook(6, 'playSound','audio/Ready.wav', 44)

g_RaceStartCountdown:addClientHook(5, 'playSound','audio/DestructionBegin.wav', 44)

g_RaceStartCountdown:addClientHook(3, 'playSoundFrontEnd', 44)

g_RaceStartCountdown:addClientHook(2, 'playSoundFrontEnd', 44)

g_RaceStartCountdown:addClientHook(1, 'playSoundFrontEnd', 44)

g_RaceStartCountdown:addClientHook(0, 'playSoundFrontEnd', 45)

g_RaceStartCountdown:addClientHook(3, 'playSound','audio/3.mp3', 44)

g_RaceStartCountdown:addClientHook(2, 'playSound','audio/2.mp3', 44)

g_RaceStartCountdown:addClientHook(1, 'playSound','audio/1.mp3', 44)

g_RaceStartCountdown:addClientHook(0, 'playSound','audio/countgo.wav', 44)

...

Posted

No errors?

Try this:

g_RaceStartCountdown = Countdown.create(6, launchRace) 
g_RaceStartCountdown:useImages('img/countdown_%d.png', 474, 204) 
g_RaceStartCountdown:enableFade(true) 
g_RaceStartCountdown:addClientHook(6, 'playSound','audio/Ready.wav', 44) 
g_RaceStartCountdown:addClientHook(5, 'playSound','audio/DestructionBegin.wav', 44) 
g_RaceStartCountdown:addClientHook(3, 'playSoundFrontEnd', 44) 
g_RaceStartCountdown:addClientHook(2, 'playSoundFrontEnd', 44) 
g_RaceStartCountdown:addClientHook(1, 'playSoundFrontEnd', 44) 
g_RaceStartCountdown:addClientHook(0, 'playSoundFrontEnd', 45) 
g_RaceStartCountdown:addClientHook(3, 'playSound', 'audio/3.mp3') 
g_RaceStartCountdown:addClientHook(2, 'playSound', 'audio/2.mp3') 
g_RaceStartCountdown:addClientHook(1, 'playSound', 'audio/1.mp3') 
g_RaceStartCountdown:addClientHook(0, 'playSound', 'audio/countgo.wav) 
 

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

Posted

now not spawn ....

When entries in server ... not spawn ... window is black ... only Map ; Nextmap ; FPS

ERROR: ?:0: attempt to index global g_GameOptions (a nil value)

How solve?

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...