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

Suggestion / Subplugin Request [ZP] Countdown with newest sound


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
rybka
Member
Join Date: Dec 2011
Old 12-24-2011 , 22:37   [ZP] Countdown with newest sound
Reply With Quote #1

Hello dear scripters, i found not long ago a interesed sound with countdown.
I wanna the write someone scripters, specialy code for that sound =)
Just i will be wait and very thanks for read then topic.
Attached Files
File Type: zip zm_start.zip (289.1 KB, 480 views)
rybka is offline
H.RED.ZONE
Veteran Member
Join Date: Sep 2011
Location: Serbia, Belgrade
Old 12-25-2011 , 07:40   Re: [ZP] Countdown with newest sound
Reply With Quote #2

Nice sound but its only one file not seperated for every number (:
__________________
H.RED.ZONE is offline
Snaker beatter
Veteran Member
Join Date: Sep 2011
Location: Manila, Philippines
Old 12-25-2011 , 08:35   Re: [ZP] Countdown with newest sound
Reply With Quote #3

What?
__________________
Snaker beatter is offline
H.RED.ZONE
Veteran Member
Join Date: Sep 2011
Location: Serbia, Belgrade
Old 12-25-2011 , 08:57   Re: [ZP] Countdown with newest sound
Reply With Quote #4

Quote:
Originally Posted by Snaker beatter View Post
What?
It's only a sound it doesn't use separated numbers
__________________
H.RED.ZONE is offline
rybka
Member
Join Date: Dec 2011
Old 12-25-2011 , 09:42   Re: [ZP] Countdown with newest sound
Reply With Quote #5

Yes i know, its a problem coz, scripters must write code and synchronize display hud info with opening song...

I trying that but iff song said Eleven it plugin show in hud Ten ...
I don't think so that its easier to make....
rybka is offline
Y060N
BANNED
Join Date: Dec 2011
Location: www.equilibriumcs.com
Old 12-25-2011 , 12:47   Re: [ZP] Countdown with newest sound
Reply With Quote #6

You can use a countdown already made and make it use zp_delay 20, and just play the sound from there.

Here's a small edited version of mine from Yokomo - 99% credit goes to them

Rename the file 20 and place in zombie_plague/count/20.wav

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")
	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)
Y060N is offline
H.RED.ZONE
Veteran Member
Join Date: Sep 2011
Location: Serbia, Belgrade
Old 12-25-2011 , 12:58   Re: [ZP] Countdown with newest sound
Reply With Quote #7

Quote:
Originally Posted by Y060N View Post
You can use a countdown already made and make it use zp_delay 20, and just play the sound from there.

Here's a small edited version of mine from Yokomo - 99% credit goes to them

Rename the file 20 and place in zombie_plague/count/20.wav

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")
    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)
Wouldent work it starts from 13 or 12
__________________
H.RED.ZONE is offline
Old 12-25-2011, 13:40
rybka
This message has been deleted by rybka. Reason: Double Post
rybka
Member
Join Date: Dec 2011
Old 12-25-2011 , 13:41   Re: [ZP] Countdown with newest sound
Reply With Quote #8

Wouldent work, myebe synchronize time with playing song ? Well code its good, but you will fixed code with a display numbers.
Waiting for other idea ;/
rybka is offline
Y060N
BANNED
Join Date: Dec 2011
Location: www.equilibriumcs.com
Old 12-25-2011 , 14:01   Re: [ZP] Countdown with newest sound
Reply With Quote #9

I didn't understand what you said that well. The music works but the code displaying the numbers doesn't? I'll take a look at it later and try to post a working version
Y060N is offline
rybka
Member
Join Date: Dec 2011
Old 12-25-2011 , 14:23   Re: [ZP] Countdown with newest sound
Reply With Quote #10

Aff this code displaying the numbers but with delayed ...
You didn't see ? For Example .

In song we hear Ten it in display number show Twelve
Its the problem this code ...
rybka is offline
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 21:14.


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