Raised This Month: $120 Target: $400
 30% 

BaseBuilder Prep Time Hud


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
legendxd
Junior Member
Join Date: Mar 2020
Old 05-08-2020 , 16:22   BaseBuilder Prep Time Hud
Reply With Quote #1

Hello , i need help to change prep time of basebuilder to hud
This Is the code
PHP Code:
if (g_iPrepTime)
        {
            
g_boolCanBuild false
            g_boolPrepTime 
true
            g_iCountDown 
g_iPrepTime+1
            set_task
(1.0"task_PrepTime"TASK_PREPTIME,__"a"g_iCountDown);
            
            
set_hudmessage(255255255, -1.00.4501.010.00.10.21)
            
show_hudmessage(0"%L"LANG_SERVER"PREP_ANNOUNCE");
            
            new 
players[32], num
            get_players
(playersnum)
            for (new 
0numi++)
            {
                if (
g_isAlive[players[i]] && !g_isZombie[players[i]])
                {
                    
ExecuteHamB(Ham_CS_RoundRespawnplayers[i])
                    
                    if (
g_iOwnedEnt[players[i]])
                        
cmdStopEnt(players[i])
                }
            }
            
print_color(0"%s^x04 %L"MODNAMELANG_SERVER"PREP_ANNOUNCE")
            
            
client_cmd(0"spk %s"PHASE_PREP)
            
            
ExecuteForward(g_fwPrepStartedg_fwDummyResult);
        }
        else
            
Release_Zombies()

        
remove_task(TASK_BUILD);
        return 
PLUGIN_HANDLED;
    }
    
    new 
szTimer[32]
    if (
g_iCountDown>10)
    {
        if (
mins && !secsnum_to_word(minsszTimer31)
        else if (!
mins && secs == 30num_to_word(secsszTimer31)
        else return 
PLUGIN_HANDLED;
        
        
client_cmd(0"spk ^"fvox/%%s remaining^""szTimer, (mins "minutes" "seconds")) 
legendxd 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 02:43.


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