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

Suggestion / Subplugin Request [ZP] Countdown with newest sound


Post New Thread Reply   
 
Thread Tools Display Modes
H.RED.ZONE
Veteran Member
Join Date: Sep 2011
Location: Serbia, Belgrade
Old 12-25-2011 , 14:26   Re: [ZP] Countdown with newest sound
Reply With Quote #11

If i was you i would cut that sound in peaces so it would be seperated...
__________________
H.RED.ZONE is offline
Y060N
BANNED
Join Date: Dec 2011
Location: www.equilibriumcs.com
Old 12-25-2011 , 14:27   Re: [ZP] Countdown with newest sound
Reply With Quote #12

If that is the only problem, then you can change:

Code:
zp_count = get_cvar_num("zp_delay")


Code:
zp_count = get_cvar_num("zp_delay") - 2
If it is displaying 12 when the count of 10 starts, this should fix it so that it displays 10 when 10 starts. Let me know if that helps. I haven't tested it because I am not at my house/don't have a local server...and I am not testing on my live server atm
Y060N is offline
rybka
Member
Join Date: Dec 2011
Old 12-25-2011 , 17:17   Re: [ZP] Countdown with newest sound
Reply With Quote #13

I upload video from my server, iff you don't know what do mean so watch my video. Well srry for quality video coz i wanted the film have got a smallest size.
I needed specialy displays number than its opening song =)

yyyy, iff i change that

Code:
zp_count = get_cvar_num("zp_delay") - 2
It plugin don't work ;>
Attached Files
File Type: zip countdowntest.zip (1.00 MB, 88 views)

Last edited by rybka; 12-25-2011 at 17:18.
rybka is offline
Y060N
BANNED
Join Date: Dec 2011
Location: www.equilibriumcs.com
Old 12-25-2011 , 18:15   Re: [ZP] Countdown with newest sound
Reply With Quote #14

The thing that sucks is that the sound file is pooly made. Whoever made it, really messed up on the timing, and the timing if off a bit. H.RED.ZONE is correct in saying to splice it into different parts but it's the same thing.

Code:
#include <amxmodx>
#include <zombieplague>

#define PLUGIN "ZP Countdown"
#define VERSION "1.0"
#define AUTHOR "yokomo/lambda"

#define TASK_COUNT 72941

new zp_count

public plugin_precache()
{
	precache_sound("zombie_plague/count/20.wav")
}

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

public event_round_start()
{
	remove_task(TASK_COUNT)
	zp_count = get_cvar_num("zp_delay")
        zp_count -= 2
	set_task(1.0, "CountDownTask", TASK_COUNT, _, _, "b")
}

public CountDownTask()
{	
	if (!zp_count) remove_task(TASK_COUNT)
	else 
	{

		client_cmd(0, "spk zombie_plague/count/%i", zp_count)
		client_print(0, print_center, "*** Infection will start on %i ***", zp_count)
	}
	
	zp_count -= 1	
}

public zp_round_started() remove_task(TASK_COUNT)

public zp_round_ended() remove_task(TASK_COUNT)
This is the best I can do. I don't think that the sound file is actually 2 seconds behind, maybe 1 second...but it's the sound file itself that is not in sync, not really the plugin. If the sounds aren't in sync in an audio file there is nothing I can do.
Y060N 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 19:26.


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