AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   BaseBuilder Prep Time Hud (https://forums.alliedmods.net/showthread.php?t=324183)

legendxd 05-08-2020 15:22

BaseBuilder Prep Time Hud
 
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")) 



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

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