Raised This Month: $ Target: $400
 0% 

spectating climber ct_bar - kz_dajrokan


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
SlayeR
Member
Join Date: Jan 2009
Location: Poland
Old 06-09-2010 , 13:11   spectating climber ct_bar - kz_dajrokan
Reply With Quote #1

Hi.
I want to see the ct_bar from person who I actually spectating. Is this possible?

http://img191.**************/img191/830/ctbar.png - ct_bar

PHP Code:
public ct_bar() {

    new 
players[32], inumiidtl get_timeleft(), t[16]
    
get_players(playersinum)
    
get_time("Godzina: %H:%M"t15)
    for (
0inumi++) {
        
id players[i]
        if (
kz_cheat) {
              
client_cmd(id"fps_max 101")
            
client_cmd(id"fps_modem 101"
             
client_cmd(id"sv_cheats 0")
              
client_cmd(id"sv_gravity 800")
              
client_cmd(id"sv_airaccelerate 10")
              
client_cmd(id"sv_maxspeed 320")
              
client_cmd(id"sv_stepsize 18")
              
client_cmd(id"sv_maxvelocity 2000")
              
client_cmd(id"cl_forwardspeed 400")
              
client_cmd(id"cl_sidespeed 400")
              
client_cmd(id"cl_backspeed 400")
              
client_cmd(id"edgefriction 2")
              
client_cmd(id"mp_footsteps 1")
              
client_cmd(id"developer 0")
              
client_cmd(id"_cl_autowepswitch 1")
            }
        if (
climber_hud[id] && is_user_alive(id) && locs_set && kz_ct) {
            new  
Float:speed[3]
            switch (
climber_status[id]) {
                case 
STATUS_NONE: {
                    
set_hudmessage(25500, -1.00.000.0BAR_TIME 0.10.00.01)
                    switch (
climber_hud[id]) {
                        case 
1:    {show_hudmessage(id"ClimbTimer: Wylaczony")    
                        }
                        case 
2: {
                        
show_hudmessage(id"%s | TimeLeft: %02d:%02d"ttl 60tl 60)
                }
                        case 
3: {
                            
entity_get_vector(idEV_VEC_velocityspeed)
                            
show_hudmessage(id"Predkosc: %.2f px/s"vector_length(speed))
                        }
                    }
                }
                case 
STATUS_CLIMBING: {
                    
set_hudmessage(255255255, -1.00.000.0BAR_TIME 0.10.00.01)
                    switch (
climber_hud[id]) {
                        case 
1: {
                            new 
climbtimeHP[8] = ""
                            
climbtime = (get_user_time(id) - climber_time[id] + climber_checkpoints[id]*kz_cp_secs)
                            if (
get_user_godmode(id))
                                
HP " | GOD"
                            
else if (((kz_healing == 1) && !climber_no_block[id]) || !kz_healing)
                                
HP " | !HP"    
                            
show_hudmessage(id"ClimbTimer: %02d:%02d | Checkpoint: %d%s%s"climbtime 60 climbtime 60climber_checkpoints[id], climber_scout[id] > " | Scout" ""HP)
                    }
                        case 
2: {
                        
show_hudmessage(id"%s | TimeLeft: %02d:%02d"ttl 60tl 60)
                }
                        case 
3: {
                            new 
shift[32] = "brak wpisu do TOP15"0climbtime
                            climbtime 
= (get_user_time(id) - climber_time[id] + climber_checkpoints[id]*kz_cp_secs)
                            if (
climber_checkpoints[id] <= kz_cp_max) {
                                while (
compare(climber_checkpoints[id], climber_scout[id] > 0climbtimetop15_tp[j], top15_scout[j], top15_times[j])) {
                                    
j++
                                    if (
14) break
                                }
                                if (
15) {
                                    if (
compare(top15_tp[j], top15_scout[j], 0climber_checkpoints[id], climber_scout[id] > 00))
                                        
format(shift15"%d."j+1)
                                    else 
                                        
format(shift15"%d. (%d sek)"j+1climbtime top15_times[j])
                                }
                            }
                            
show_hudmessage(id"Miejsce: %s"shift)
                        }
                        case 
4: {
                            
entity_get_vector(idEV_VEC_velocityspeed)
                            
show_hudmessage(id"Predkosc: %.2f px/s"vector_length(speed))
                        }
                    }
                }
                case 
STATUS_FINISHED: {
                    
set_hudmessage(02550, -1.00.000.0BAR_TIME 0.10.00.01)
                    switch (
climber_hud[id]) {
                        case 
1:    {
                        
show_hudmessage(id"ClimbTimer: %02d:%02d | Checkpoint: %d%s", (climber_time[id]/60) , (climber_time[id]%60), climber_checkpoints[id], climber_scout[id] > " | Scout" "")
                }
                
            
                        case 
2: {    
                                
show_hudmessage(id"%s | TimeLeft: %02d:%02d"ttl 60tl 60)
                    }
                        case 
3: {
                            
entity_get_vector(idEV_VEC_velocityspeed)
                            
show_hudmessage(id"Predkosc: %.2f px/s"vector_length(speed))
                        }
                    }
                }
            }
        }
    }

    return 
PLUGIN_HANDLED

SlayeR is offline
 


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


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