AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   CountDown task + speech (https://forums.alliedmods.net/showthread.php?t=183147)

bazhenov93 04-18-2012 02:25

CountDown task + speech
 
How I can config the pitch?
How to aim directly to the button of the timer (kreedz) ?

PHP Code:

public countdown(id) {
    
    
goStart(id)
    
set_pev(idpev_flagspev(idpev_flags) | FL_FROZEN)
    
    
g_iCountTime CountSeconds;
    
set_task1.0 "countdown2" "a" g_iCountTime )
}

public 
countdown2(id) {
    
    new 
number[6]
    
num_to_word(g_iCountTimenumbercharsmax(number))
    
client_cmd(id"spk vox/%s"number)
    
    
set_hudmessage(id255 , -1.0, -1.0 1.1 1.1 0.01 0.01)
    
show_hudmessage(id"%d" g_iCountTime-- )

    if(
gNum <= 0)
    {
    if(
task_exists(TASK_ID))
    {    
    
remove_task(TASK_ID)
remove(id)
            }
        }
    }

public 
remove(id) {
    
    
set_pev(idpev_flagspev(idpev_flags) & ~FL_FROZEN)
    
    
set_hudmessage(id255 , -1.00.90 1.1 1.1 0.01 0.01)
    
show_hudmessage(id"GO GO GO!!!")

    
client_cmd(id"spk vox/go")        




All times are GMT -4. The time now is 07:55.

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