Raised This Month: $ Target: $400
 0% 

spectating climber ct_bar - kz_dajrokan


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
SlayeR
Member
Join Date: Jan 2009
Location: Poland
Old 06-13-2010 , 08:49   Re: spectating climber ct_bar - kz_dajrokan
Reply With Quote #4

Hmm I ain't good with scripting :s

Maybe someone Can rewrite this function from kz-arg to kz_dajrokan

Here's something like I need.

PHP Code:
public playersecondtask(id)
{
    
id -= TASK_ID_MINISECOND
    
    
if( get_pcvar_num(cvar_enable) != )
        return 
PLUGIN_CONTINUE
        
    
    
if( g_showtimein[id] > && g_playerstart[id] && is_user_alive(id) )
    {
        new 
Float:tiempo kz_realplayer_time(id)
        new 
iMinFloat:iSec
        iMin 
floatround(tiempofloatround_floor)/60
        
iSec tiempo - (60*iMin);
        
        if( 
g_showtimein[id] == )
        {
            
kz_hud_over(id"Timer: %02d:%s%.5f | CheckPoint: %i | GoCheck: %i"iMiniSec 10 "0"""iSecg_playercheckpoint[id], g_playergocheck[id])
        }
        else if( 
g_showtimein[id] == )
        {
            
kz_reymon_statustext(id0"Timer: %02d:%s%.5f | CheckPoint: %i | GoCheck: %i"iMiniSec 10 "0"""iSecg_playercheckpoint[id], g_playergocheck[id])
        }
    }
    
    if( !
is_user_alive(id) )
    {
        new 
mode pev(idpev_iuser1)
        if( 
mode == || mode == 
        {
            new 
target pev(idpev_iuser2)
            
g_idspecting[1][id] = target
            g_idspecting
[0][id] = true
            
            
if( get_pcvar_num(kz_specinfo) == && g_showkeyspec[id] )
            {
                new 
target pev(idpev_iuser2)

                new 
button pev(targetpev_button)
                new 
tiempo =  stock_get_user_roundtime(target)
    
                
// Credit of this --> cheap_suit
                
static key[6][6]
                
formatex(key[0], 5"%s", (button IN_FORWARD) && !(button IN_BACK) ? " W " "   ")
                
formatex(key[1], 5"%s", (button IN_BACK) && !(button IN_FORWARD) ? " S " "   ")
                
formatex(key[2], 5"%s", (button IN_MOVELEFT) && !(button IN_MOVERIGHT) ? "A   " "      ")
                
formatex(key[3], 5"%s", (button IN_MOVERIGHT) && !(button IN_MOVELEFT) ? "   D" "      ")
                
formatex(key[4], 5"%s", (button IN_DUCK) ? " DUCK " "      ")
                
formatex(key[5], 5"%s", (button IN_JUMP) ? " JUMP " "      ")
    
                
kz_hud_center(id"%s^n%s    %s^n%s^n%s^n%s^n^n^nTime: %02d:%02d  GoChecks: %d"key[0], key[2], key[3], key[1], key[5], key[4], (tiempo/60), (tiempo%60), g_playergocheck[target])
            }
        }
        else
        {
            
g_idspecting[0][id] = false
        
}
    }
    else if( 
is_user_alive(id) && get_pcvar_num(kz_specinfo) == && g_showkey[id] )
    {
        new 
button pev(idpev_button)
    
        
// Credit of this --> cheap_suit
        
static key[6][6]
        
formatex(key[0], 5"%s", (button IN_FORWARD) && !(button IN_BACK) ? " W " "   ")
        
formatex(key[1], 5"%s", (button IN_BACK) && !(button IN_FORWARD) ? " S " "   ")
        
formatex(key[2], 5"%s", (button IN_MOVELEFT) && !(button IN_MOVERIGHT) ? "A   " "      ")
        
formatex(key[3], 5"%s", (button IN_MOVERIGHT) && !(button IN_MOVELEFT) ? "   D" "      ")
        
formatex(key[4], 5"%s", (button IN_DUCK) ? " DUCK " "      ")
        
formatex(key[5], 5"%s", (button IN_JUMP) ? " JUMP " "      ")
    
        
kz_hud_center(id"%s^n%s    %s^n%s^n%s^n%s"key[0], key[2], key[3], key[1], key[5], key[4])
    }
    
    return 
PLUGIN_CONTINUE

SlayeR is offline
 



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:24.


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