Raised This Month: $12 Target: $400
 3% 

[ZP] Extra Addon: Countdown NEW !


Post New Thread Reply   
 
Thread Tools Display Modes
Gh05t04
Senior Member
Join Date: Jul 2015
Old 07-29-2015 , 06:37   Re: [ZP] Extra Addon: Countdown NEW !
Reply With Quote #31

Can someone help me?

https://forums.alliedmods.net/showthread.php?t=266887
Gh05t04 is offline
razb95
Junior Member
Join Date: Dec 2016
Old 05-23-2017 , 14:04   Re: [ZP] Extra Addon: Countdown NEW !
Reply With Quote #32

I know that this post is old post but i have to write this:
You there is better way to do this?! like this...
Code:
#include <amxmodx>
#include <dhudmessage>
#include <zombieplague>

#define PLUGIN "[ZP] Addon: CD"
#define VERSION "1.0"
#define AUTHOR "@.Hacker-`"

new Timer;

new const TimerSound[ ][ ] ={
	{ "" },
	{ "zombie_plague/1.wav" },
	{ "zombie_plague/2.wav" },
	{ "zombie_plague/3.wav" },
	{ "zombie_plague/4.wav" },
	{ "zombie_plague/5.wav" },
	{ "zombie_plague/6.wav" },
	{ "zombie_plague/7.wav" },
	{ "zombie_plague/8.wav" },
	{ "zombie_plague/9.wav" },
	{ "zombie_plague/10.wav" }
}

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

public plugin_precache()
{
	for( new i=1; i < sizeof( TimerSound ); i++ )
		precache_sound( TimerSound[ i ] );
}

public event_round_start()
{
	set_task(1.0, "countdown")
}

public countdown()
{
	set_task( 1.0, "CmdTimer", 0,_,_, "b" );
	Timer = 10;
}

public CmdTimer()
{
	if( Timer == 0 || zp_has_round_started() )
	{
		remove_task();
		return 1;
	}
	
	set_hudmessage(0, 85, 255, -1.0, 0.31, 1, 6.0, 1.0)
	show_hudmessage(0, "[**********]^nZombie Infected will start in^n%i second%s^n[**********]", Timer, Timer > 1 ? "s" : "")
	client_cmd(0, "spk ^"%s^"", TimerSound[ Timer ])
	
	Timer--
}
razb95 is offline
georgik57
Veteran Member
Join Date: Oct 2008
Location: 🎧Music World
Old 05-23-2017 , 16:49   Re: [ZP] Extra Addon: Countdown NEW !
Reply With Quote #33

You can find the best countdown with support for both zp4 and zp5 here: https://forums.alliedmods.net/showthread.php?t=273814
__________________
georgik57 is offline
Send a message via MSN to georgik57 Send a message via Yahoo to georgik57 Send a message via Skype™ to georgik57
shady101
Member
Join Date: Nov 2014
Location: USA
Old 10-13-2018 , 11:09   Re: [ZP] Extra Addon: Countdown NEW !
Reply With Quote #34

Quote:
Originally Posted by razb95 View Post
I know that this post is old post but i have to write this:
You there is better way to do this?! like this...
Code:
#include <amxmodx>
#include <dhudmessage>
#include <zombieplague>

#define PLUGIN "[ZP] Addon: CD"
#define VERSION "1.0"
#define AUTHOR "@.Hacker-`"

new Timer;

new const TimerSound[ ][ ] ={
	{ "" },
	{ "zombie_plague/1.wav" },
	{ "zombie_plague/2.wav" },
	{ "zombie_plague/3.wav" },
	{ "zombie_plague/4.wav" },
	{ "zombie_plague/5.wav" },
	{ "zombie_plague/6.wav" },
	{ "zombie_plague/7.wav" },
	{ "zombie_plague/8.wav" },
	{ "zombie_plague/9.wav" },
	{ "zombie_plague/10.wav" }
}

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

public plugin_precache()
{
	for( new i=1; i < sizeof( TimerSound ); i++ )
		precache_sound( TimerSound[ i ] );
}

public event_round_start()
{
	set_task(1.0, "countdown")
}

public countdown()
{
	set_task( 1.0, "CmdTimer", 0,_,_, "b" );
	Timer = 10;
}

public CmdTimer()
{
	if( Timer == 0 || zp_has_round_started() )
	{
		remove_task();
		return 1;
	}
	
	set_hudmessage(0, 85, 255, -1.0, 0.31, 1, 6.0, 1.0)
	show_hudmessage(0, "[**********]^nZombie Infected will start in^n%i second%s^n[**********]", Timer, Timer > 1 ? "s" : "")
	client_cmd(0, "spk ^"%s^"", TimerSound[ Timer ])
	
	Timer--
}
thanks
shady101 is offline
LampdaC0RE
Junior Member
Join Date: Jul 2022
Location: South Sumatra, Indonesia
Old 07-07-2022 , 21:45   Re: [ZP] Extra Addon: Countdown NEW !
Reply With Quote #35

Not working in zp 5.0.8
can anyone share countdown plugin, just for 5.0.8 to me?
LampdaC0RE is offline
georgik57
Veteran Member
Join Date: Oct 2008
Location: 🎧Music World
Old 07-08-2022 , 04:23   Re: [ZP] Extra Addon: Countdown NEW !
Reply With Quote #36

Quote:
Originally Posted by LampdaC0RE View Post
Not working in zp 5.0.8
can anyone share countdown plugin, just for 5.0.8 to me?
Quote:
Originally Posted by georgik57 View Post
You can find the best countdown with support for both zp4 and zp5 here: https://forums.alliedmods.net/showthread.php?t=273814
__________________
georgik57 is offline
Send a message via MSN to georgik57 Send a message via Yahoo to georgik57 Send a message via Skype™ to georgik57
t3rry327
New Member
Join Date: Aug 2022
Location: Argentina
Old 08-05-2022 , 04:03   Re: [ZP] Extra Addon: Countdown NEW !
Reply With Quote #37

Quote:
Originally Posted by georgik57 View Post
You can find the best countdown with support for both zp4 and zp5 here: https://forums.alliedmods.net/showthread.php?t=273814
Agree
__________________
casually reviewing shit and not doing much for community
t3rry327 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 15:44.


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