Raised This Month: $ Target: $400
 0% 

Hs ratio help


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
avril-lavigne
Banned
Join Date: Apr 2009
Old 09-24-2012 , 13:09   Hs ratio help
Reply With Quote #1

PHP Code:
public client_damage(attackervictimdamagewpnindexhitplace)
{
    if ( 
attacker == victim || get_user_frags(attacker) < 10 ) return
    
    if ( 
hitplace == HIT_HEAD )
    {
        
gHeadShots[attacker]++
        
        
client_print(attackerprint_chat"[DEBUG] You now have %d headshots!"gHeadShots[attacker])
        
        
check_ratio(attacker)
        
    }

}


check_ratio(id) {     
      new 
Float:ratio 0.9 float(get_user_frags(id))
      
client_print(id,3,"Ratio hs/kill is %i"/*floatround */    ratio)
      if(
gHeadShots(id) > ratio
              
punish(id)

       
     }

in debug I always see ratio is 123654234 huge number

what I need - check Hs per kill . if over 90% ban
__________________
VDS in Europe 1 gb/s unmetered.Any configurations.
I accept Paypal, Moneybookers,etc

Last edited by avril-lavigne; 09-24-2012 at 13:10.
avril-lavigne 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 08:10.


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