Raised This Month: $12 Target: $400
 3% 

[TUT] Recording Damage/Hits Per-Round and Displaying It


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Seta00
The Seta00 user has crashed.
Join Date: Jan 2010
Location: Berlin
Old 03-18-2010 , 16:30   Re: [TUT] Recording Damage/Hits Per-Round and Displaying It
Reply With Quote #37

Remove the check for damage == 0:
PHP Code:
 if( tmp_hits || tmp_rhits )
            {
                
check 1
                tmp_dmg 
pug_dmg[id][player]
                
tmp_rdmg pug_dmg[player][id]

                if( 
id == player || cs_get_user_teamplayer ) == teamid )
                {
                    continue;
                }

                
get_user_name(player,name31)
                
client_print(id,print_chat,"%s %L",pug_header2,id,"PUG_AUX_DMG",tmp_dmg,tmp_hits,tmp_rdmg,tmp_rhitsnameis_user_aliveplayer ) ? get_user_health(player) : 0)
            } 

PHP Code:
                check 1
                tmp_dmg 
pug_dmg[id][player]
                
tmp_rdmg pug_dmg[player][id]

                if( 
id == player || cs_get_user_teamplayer ) == teamid )
                {
                    continue;
                }

                
get_user_name(player,name31)
                
client_print(id,print_chat,"%s %L",pug_header2,id,"PUG_AUX_DMG",tmp_dmg,tmp_hits,tmp_rdmg,tmp_rhitsnameis_user_aliveplayer ) ? get_user_health(player) : 0
Seta00 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 16:04.


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