AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   fix please (https://forums.alliedmods.net/showthread.php?t=274145)

Pinnker123 11-02-2015 14:04

fix please
 
..............................

Xalus 11-02-2015 14:41

Re: fox please
 
Wow.

redivcram 11-02-2015 15:12

Re: fox please
 
Store the wavs in an array, and use SyncHudMsg......

OciXCrom 11-02-2015 18:55

Re: fox please
 
What does the fox say?! :fox: 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...

CrazY. 11-07-2015 07:16

Re: fix please
 
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 \=====================/") }
:arrow:
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 \=====================/") }

yan1255 11-07-2015 10:49

Re: fix please
 
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;




All times are GMT -4. The time now is 17:22.

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