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

Countdown for zp 4.3


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
BaltaZar_Serbia
Senior Member
Join Date: Dec 2011
Location: Serbia
Old 06-04-2014 , 11:15   Countdown for zp 4.3
Reply With Quote #1

i have try mani countdown plugins but always server down or some bugs, can u give me real countdown plugin NO BUGS
BaltaZar_Serbia is offline
Send a message via Yahoo to BaltaZar_Serbia
!Morte
Veteran Member
Join Date: May 2010
Old 06-04-2014 , 22:21   Re: Countdown for zp 4.3
Reply With Quote #2

It's a simple countdown

PHP Code:
#include < amxmodx >
#include < amxmisc >

const TASK_COUNTDOWN 1000

new const countdown_sound[ ][ ] =
{
    
"count/one.wav",
    
"count/two.wav",
    
"count/three.wav",
    
"count/four.wav",
    
"count/five.wav"
}

new 
g_Countdown

public plugin_precache( )
{
    for ( new 
0sizeofcountdown_sound ); i++ )
        
precache_soundcountdown_sound] )
}

public 
plugin_init( )
{
    
register_logevent"logevent_round_start",2"1=Round_Start" )
}

public 
logevent_round_start( )
{
    
remove_taskTASK_COUNTDOWN )
    
g_Countdown 5
    set_task
1.0"task_countdown"TASK_COUNTDOWN__"b" )
}

public 
task_countdown( )
{
    if( 
g_Countdown )
    {
        
client_cmd0"spk ^"%s^""countdown_soundg_Countdown ] )
            
        
set_hudmessage17900, -1.00.2520.021.00.010.110 )
        
show_hudmessage0"%i"g_Countdown )
        
    }
    
g_Countdown--
    
    if( 
g_Countdown == remove_taskTASK_COUNTDOWN )

__________________
First Zombie Class
[ZP] Zombie Class: Houndeye Zombie
Quote:
Originally Posted by lucas_7_94 View Post
tenes que saber pawn antes de intentar hacer algo digno.

Last edited by !Morte; 06-04-2014 at 22:34.
!Morte is offline
Send a message via MSN to !Morte Send a message via Skype™ to !Morte
Light_Dark
Member
Join Date: Jul 2013
Old 06-06-2014 , 02:10   Re: Countdown for zp 4.3
Reply With Quote #3

Its just very simple!
PHP Code:
#include <amxmodx> 
#include <amxmisc> 
#include <zombieplague> 

#define PLUGIN "[ZP] Countdown 1.0" 
#define VERSION "1.0" 
#define AUTHOR "Unknown" 

new countdown 
new time_s 

public plugin_init() { 
    
register_plugin(PLUGINVERSIONAUTHOR
    
register_event("HLTV""event_round_start""a""1=0""2=0"


public 
plugin_precache() 

    
precache_sound"zombie_plague/ten.wav" 
    
precache_sound"zombie_plague/nine.wav" 
    
precache_sound"zombie_plague/eight.wav" 
    
precache_sound"zombie_plague/seven.wav" 
    
precache_sound"zombie_plague/six.wav" 
    
precache_sound"zombie_plague/five.wav" 
    
precache_sound"zombie_plague/four.wav" 
    
precache_sound"zombie_plague/three.wav" 
    
precache_sound"zombie_plague/two.wav" 
    
precache_sound"zombie_plague/one.wav" 


public 
event_round_start() 

    
set_task(1.0"zombie_countdown"
    
time_s 10 
    countdown 



public 
zombie_countdown() 
{     
    new 
speak10 ][] = { "zombie_plague/one.wav""zombie_plague/two.wav""zombie_plague/three.wav""zombie_plague/four.wav""zombie_plague/five.wav""zombie_plague/six.wav""zombie_plague/seven.wav""zombie_plague/eight.wav""zombie_plague/nine.wav""zombie_plague/ten.wav" 

    
emit_sound0CHAN_VOICEspeakcountdown ], 1.0ATTN_NORM0PITCH_NORM 
    
countdown-- 
         
    
set_hudmessage(17900, -1.00.2820.021.00.010.110);  
    
show_hudmessage(0"%i"time_s);  
    --
time_s
         
    if(
time_s >= 1
    { 
        
set_task(1.0"zombie_countdown"
    } 

this is what i made for my server
its with cso countdown sounds

and took sounds from this thread :https://forums.alliedmods.net/showthread.php?t=155441

Last edited by Light_Dark; 06-06-2014 at 02:10.
Light_Dark is offline
ArabicMan
Veteran Member
Join Date: Feb 2014
Location: مصر
Old 06-06-2014 , 02:16   Re: Countdown for zp 4.3
Reply With Quote #4

Try this.
ArabicMan is offline
BaltaZar_Serbia
Senior Member
Join Date: Dec 2011
Location: Serbia
Old 06-06-2014 , 11:46   Re: Countdown for zp 4.3
Reply With Quote #5

i try both of plugins, it works (half) - when countdown start letters(10, 9 ,8...) desapear and then return again, something like 10 , 9 , 7 , 5 , 4 , 2 , 1 aaaaa... and in both of case sounds dont work, i put in right folder, when i enter the server it donwload that sounds and on server no countdown sounds

Last edited by BaltaZar_Serbia; 06-06-2014 at 11:46.
BaltaZar_Serbia is offline
Send a message via Yahoo to BaltaZar_Serbia
ArabicMan
Veteran Member
Join Date: Feb 2014
Location: مصر
Old 06-07-2014 , 00:06   Re: Countdown for zp 4.3
Reply With Quote #6

Quote:
Originally Posted by BaltaZar_Serbia View Post
i try both of plugins, it works (half) - when countdown start letters(10, 9 ,8...) desapear and then return again, something like 10 , 9 , 7 , 5 , 4 , 2 , 1 aaaaa... and in both of case sounds dont work, i put in right folder, when i enter the server it donwload that sounds and on server no countdown sounds
You try this and not working or what you say?

Last edited by ArabicMan; 06-07-2014 at 00:06.
ArabicMan is offline
Light_Dark
Member
Join Date: Jul 2013
Old 06-07-2014 , 02:07   Re: Countdown for zp 4.3
Reply With Quote #7

Quote:
Originally Posted by BaltaZar_Serbia View Post
i try both of plugins, it works (half) - when countdown start letters(10, 9 ,8...) desapear and then return again, something like 10 , 9 , 7 , 5 , 4 , 2 , 1 aaaaa... and in both of case sounds dont work, i put in right folder, when i enter the server it donwload that sounds and on server no countdown sounds
try the code that i posted it 100% works
and if u want different sounds just edit the code

i am using it in my own server and it works ! perfectly
Light_Dark 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:36.


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