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

fix please


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Pinnker123
Senior Member
Join Date: Jul 2014
Location: BG
Old 11-02-2015 , 14:04   fix please
Reply With Quote #1

..............................
__________________

Last edited by Pinnker123; 12-14-2021 at 15:47.
Pinnker123 is offline
Send a message via Skype™ to Pinnker123
Xalus
Veteran Member
Join Date: Dec 2009
Location: Belgium
Old 11-02-2015 , 14:41   Re: fox please
Reply With Quote #2

Wow.
__________________
Retired.

Last edited by Xalus; 11-02-2015 at 14:41.
Xalus is offline
redivcram
Veteran Member
Join Date: Jul 2014
Location: Serbia
Old 11-02-2015 , 15:12   Re: fox please
Reply With Quote #3

Store the wavs in an array, and use SyncHudMsg......
redivcram is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 11-02-2015 , 18:55   Re: fox please
Reply With Quote #4

What does the fox say?! Seriously now, how could you have the nerves to do this... I don't know how you didn't notice the error - public twenty_to...

Last edited by OciXCrom; 11-02-2015 at 18:58.
OciXCrom is offline
Send a message via Skype™ to OciXCrom
CrazY.
Veteran Member
Join Date: May 2015
Location: SP, Brazil
Old 11-07-2015 , 07:16   Re: fix please
Reply With Quote #5

Really? Pay more attention to your code.

Code:
public twenty_to() {         set_hudmessage(random(256), random(256), random(256), -1.0, 0.28, 0, 1.0, 1.0)         show_hudmessage(0, "/=====================\^n GREEN Zombie^n Infection In 22^n \=====================/") }

Code:
public twenty_two() {         set_hudmessage(random(256), random(256), random(256), -1.0, 0.28, 0, 1.0, 1.0)         show_hudmessage(0, "/=====================\^n GREEN Zombie^n Infection In 22^n \=====================/") }
__________________








CrazY. is offline
yan1255
Senior Member
Join Date: Jul 2011
Old 11-07-2015 , 10:49   Re: fix please
Reply With Quote #6

Made it better for you.. and more efficient, if you're interested.

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

#define PLUGIN    "[ZP] Extra Addon: Countdown with HUD (fixed)"
#define VERSION    "1.0"
#define AUTHOR    "FOX & kapitana"

#define    TASKID_COUNTDOWN    123456
#define START_SPEAKING        10

new cvarInfCountdown;
new 
Timer;

public 
plugin_init()

    
register_pluginPLUGINVERSIONAUTHOR );
    
    
register_event"HLTV""evRoundStart""a""1=0""2=0" );
    
    
cvarInfCountdown    register_cvar"zp_inf_countdown""1" );
}


public 
evRoundStart() 
{
    if ( 
task_existsTASKID_COUNTDOWN ) )
        
remove_taskTASKID_COUNTDOWN );
    
    
Timer    30;
    
    
set_task5.0"cmdCountdown"TASKID_COUNTDOWN );


public 
cmdCountdown() 
{
    if ( !
get_pcvar_numcvarInfCountdown ) )
        return 
1;
    
    if ( 
Timer )
    {
        
// End of countdown
        
        
return 1;
    }
    
    if ( 
Timer )
    {
        if ( 
Timer <= START_SPEAKING )
        {
            static 
szVox32 ];
            
            
num_to_wordTimerszVoxcharsmaxszVox ) );
            
            
client_cmd0"spk ^"vox/%s second%s^""szVox, (Timer 1) ? "s" "" );
        }
        
        
set_hudmessagerandom(256), random(256), random(256), -1.00.2801.01.0 );
        
        
show_hudmessage0"/=====================\^n GREEN Zombie^n Infection In %i^n \=====================/"Timer );
        
        
Timer--;
    }
    
    return 
1;

__________________
yan1255 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 05:31.


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