Raised This Month: $32 Target: $400
 8% 

Countdown soun


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Seishiro
Junior Member
Join Date: Sep 2010
Old 09-10-2010 , 09:46   Countdown soun
Reply With Quote #1

Hi, I have a problem with the countdown of my server, I changed the sound of the countdown and I modified the file .sma I see the countdown but I do not hear the sounds, do I modify something else to hear the sounds?

Edit : Countdown sound *, mistake in the title
Seishiro is offline
nikhilgupta345
Veteran Member
Join Date: Aug 2009
Location: Virginia
Old 09-11-2010 , 01:56   Re: Countdown soun
Reply With Quote #2

Something like this?

http://forums.alliedmods.net/showthread.php?t=97536

oh, and if u want help with ur code specifically, post ur code.
nikhilgupta345 is offline
Send a message via ICQ to nikhilgupta345 Send a message via Yahoo to nikhilgupta345
Seishiro
Junior Member
Join Date: Sep 2010
Old 09-11-2010 , 08:42   Re: Countdown sound
Reply With Quote #3

Yes, I'm using this plugin, I changed the code but it didn't work, I have 7 sounds, I changed those codes :

public plugin_precache()
{
precache_sound("fvox/1.wav");
precache_sound("fvox/2.wav");
precache_sound("fvox/3.wav");
precache_sound("fvox/4.wav");
precache_sound("fvox/5.wav");
precache_sound("fvox/6.wav");
precache_sound("fvox/7.wav");
}

{
new speak[7][] = {
"fvox/1.wav",
"fvox/2.wav",
"fvox/3.wav",
"fvox/4.wav",
"fvox/5.wav",
"fvox/6.wav",
"fvox/7.wav",
}


Can someone help me ?
Seishiro is offline
Old 11-25-2010, 05:43
rrduna
This message has been deleted by rrduna. Reason: edit
rrduna
Member
Join Date: Nov 2010
Location: Brazil
Old 11-25-2010 , 05:44   Re: Countdown soun
Reply With Quote #4

#include <amxmodx>
#include <amxmisc>
#include <csx>
#include <zombieplague>

#define PLUGIN "[ZP] Infection Countdown"
#define VERSION "1.1"
#define AUTHOR "Dels"

new countdown_timer;
new g_msgsync;
const TASK_ID = 1603;

public plugin_init(){
register_plugin(PLUGIN, VERSION, AUTHOR);
register_event("HLTV", "event_round_start", "a", "1=0", "2=0");

g_msgsync = CreateHudSyncObj();
}

public event_round_start(){
remove_task(TASK_ID);
countdown_timer = get_cvar_num("zp_delay") - 1;
set_task(4.0, "countdown", TASK_ID);
}

public countdown(){
new speak[11][] = {
"zp_countdown/biohazard_detected.wav",
"zp_countdown/one.wav",
"zp_countdown/two.wav",
"zp_countdown/three.wav",
"zp_countdown/four.wav",
"zp_countdown/five.wav",
"zp_countdown/six.wav",
"zp_countdown/seven.wav",
"zp_countdown/eight.wav",
"zp_countdown/nine.wav",
"zp_countdown/ten.wav"
}

if (countdown_timer > 1)
{
emit_sound(0, CHAN_VOICE, speak[countdown_timer-1], 1.0, ATTN_NORM, 0, PITCH_NORM);
set_hudmessage(179, 0, 0, -1.0, 0.28, 2, 0.02, 1.0, 0.01, 0.1, 10);
if (countdown_timer != 1)
{
ShowSyncHudMsg(0, g_msgsync, "%i", countdown_timer-1);
}
}
--countdown_timer;

if(countdown_timer >= 1)
{
set_task(1.0, "countdown", TASK_ID);
}
else
{
remove_task(TASK_ID);
}
}

public plugin_precache(){
precache_sound("zp_countdown/biohazard_detected.wav");
precache_sound("zp_countdown/one.wav");
precache_sound("zp_countdown/two.wav");
precache_sound("zp_countdown/three.wav");
precache_sound("zp_countdown/four.wav");
precache_sound("zp_countdown/five.wav");
precache_sound("zp_countdown/six.wav");
precache_sound("zp_countdown/seven.wav");
precache_sound("zp_countdown/eight.wav");
precache_sound("zp_countdown/nine.wav");
precache_sound("zp_countdown/ten.wav");
}



this is the complete code, change according to your tastes;)
rrduna is offline
abdul-rehman
Veteran Member
Join Date: Jan 2010
Location: Khi, Pakistan
Old 11-25-2010 , 05:53   Re: Countdown soun
Reply With Quote #5

PLz use code tags
__________________

My Plugins For ZP

Inactive due to College and Studies
abdul-rehman is offline
Send a message via Yahoo to abdul-rehman Send a message via Skype™ to abdul-rehman
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 22:20.


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