Raised This Month: $ Target: $400
 0% 

Searching for bugfree Countdown


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Vechta
Veteran Member
Join Date: Jun 2010
Old 02-25-2013 , 11:26   Searching for bugfree Countdown
Reply With Quote #1

Someone have this version without bugs?

Code:
#include < amxmodx >
#include < fakemeta >
#pragma semicolon 1

static const PLUGIN[] = "[ZP] CountDown | New Version";
static const VERSION[] = "1.0";
static const AUTHOR[] = "Luqqas' aka lucas_7_94 & Mr.Apple";

const Float:HUD_X = -1.0;
const Float:HUD_Y = 0.33;

static szTime[33], g_MsgSync, countdown;

static sounds[ 10 ][] = { "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" };

public plugin_init( ) {
    register_plugin( PLUGIN, VERSION , AUTHOR );
    
    register_event( "HLTV" , "event_round" , "a" , "1=0" , "2=0" );
    
    g_MsgSync = CreateHudSyncObj( );
}

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( )
{
    set_task(0.4, "CountDown");
    szTime[ 0 ] = 10;
    countdown = 9;
}

public CountDown( )
{        
    emit_sound( 0, CHAN_VOICE, sounds[ countdown ], 1.0, ATTN_NORM, 0, PITCH_NORM );
    countdown--;
    
    // Show the immunity seconds
    set_hudmessage( 85, 127, 255, HUD_X, HUD_Y, 1, 0.1, 3.0, 0.05, 0.05, -1 );
    ShowSyncHudMsg( 0, g_MsgSync, "The Infection start in %i", szTime[ 0 ] );
    
    --szTime[ 0 ];
    
    set_task( 1.0, "CountDown", 0 );
}
Vechta is offline
paulito
Member
Join Date: Feb 2013
Old 02-27-2013 , 04:54   Re: Searching for bugfree Countdown
Reply With Quote #2

yes
paulito is offline
Vechta
Veteran Member
Join Date: Jun 2010
Old 02-27-2013 , 06:47   Re: Searching for bugfree Countdown
Reply With Quote #3

idiot.
Vechta is offline
TheDS1337
Veteran Member
Join Date: Jun 2012
Old 03-06-2013 , 13:21   Re: Searching for bugfree Countdown
Reply With Quote #4

Quote:
Originally Posted by Vechta View Post
idiot.
lol, maybe he don't know what are you talking about xD
TheDS1337 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 04:53.


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