Raised This Month: $ Target: $400
 0% 

loading sound with timelimit


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Hawk552
AMX Mod X Moderator
Join Date: Aug 2005
Old 11-04-2005 , 14:55  
Reply With Quote #1

You mean it will randomly choose one of 5 sounds? Or it counts down from 60?
__________________
Hawk552 is offline
Send a message via AIM to Hawk552
Mulan
Senior Member
Join Date: Jul 2005
Location: [GER]Worbis
Old 11-04-2005 , 15:03  
Reply With Quote #2

no... ^^

The 1st sound comes 60sec befor the maps end (the change.wav)

And the last 3 seconds comes 3 female voice (3.wav,2.wav and 1.wav)
she says the last 3seconds before maps ends.
im german, i hope u understand me
Mulan is offline
Send a message via ICQ to Mulan
Hawk552
AMX Mod X Moderator
Join Date: Aug 2005
Old 11-04-2005 , 15:09  
Reply With Quote #3

Oh, well in one of the base plugins, that should exist already. There's probably somewhere in one of the base plugins where it has something like:

Code:
client_cmd(0,"spk vox/1")

If you can find anything like that, just change "vox" to "fvox".

EDIT: In timeleft.sma, change this line

Code:
return format(text,len,"spk ^"vox/%s%s%s%s%s%s%s^"", temp[0],temp[1],temp[2],temp[3],temp[4],temp[5],temp[6] )

To

Code:
return format(text,len,"spk ^"fvox/%s%s%s%s%s%s%s^"", temp[0],temp[1],temp[2],temp[3],temp[4],temp[5],temp[6] )
__________________
Hawk552 is offline
Send a message via AIM to Hawk552
Mulan
Senior Member
Join Date: Jul 2005
Location: [GER]Worbis
Old 11-04-2005 , 15:16  
Reply With Quote #4

Thats a pity. I have a own female voice. can i integrate my female-voice to the timeleft.sma?
Mulan is offline
Send a message via ICQ to Mulan
Hawk552
AMX Mod X Moderator
Join Date: Aug 2005
Old 11-04-2005 , 15:24  
Reply With Quote #5

Try this:

Code:
#include <amxmodx> #define SOUNDS 3 new sound[SOUNDS][] = {     "misc/fvoice1.wav",     "misc/fvoice2.wav",     "misc/fvoice3.wav" } public plugin_init() {     register_plugin("Voice Timeleft","1.0","Hawk552");         register_cvar("amx_timeleft_voice","1");         set_task(0.8,"check_time"); } public plugin_precache() {     for(new i = 0;i <= SOUNDS-1;i++)         precache_sound(sound[i]); } public check_time() {     if(!get_cvar_num("amx_timeleft_voice"))         return 0;             new timeleft = get_timeleft();         if(timeleft <= SOUNDS)     {         client_cmd(0,"spk %s",sound[timeleft-1]);     }         set_task(0.8,"check_time");             return 0; }
__________________
Hawk552 is offline
Send a message via AIM to Hawk552
Mulan
Senior Member
Join Date: Jul 2005
Location: [GER]Worbis
Old 11-04-2005 , 16:01  
Reply With Quote #6

works very fine
Thx and +Karma once again
Mulan is offline
Send a message via ICQ to Mulan
Reply



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 23:38.


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