Raised This Month: $ Target: $400
 0% 

High Ping Kicker "Argument Mismatch"


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
leonard19941
Veteran Member
Join Date: Jun 2011
Old 06-25-2012 , 21:40   Re: High Ping Kicker "Argument Mismatch"
Reply With Quote #5

Quote:
Originally Posted by StickP0le View Post
what had you change?
Delete 'szParam[ ]' put 'id' directly.


PHP Code:
public CheckFrequencyszParam[ ] ) 

    if( 
get_pcvar_numg_pCvarHPKPingChecks ) < 
        
set_pcvar_numg_pCvarHPKPingChecks

    new 
id szParam

    if( 
get_user_flagsid ) & ADMIN_IMMUNITY && get_pcvar_numg_pCvarHPKImmunity ) == 
    { 
        
remove_taskid 
        
ChatColorid"!g[ HPK ] !yPing checking disabled due to immunity..." ); 
        return 
PLUGIN_CONTINUE
    } 

    new 
iPingiLoss
    
get_user_pingidiPingiLoss )  

    
g_iPingid ] += iPing 
    
++g_iSamplesid 

    if( ( 
g_iSamplesid ] > get_pcvar_numg_pCvarHPKPingChecks ) ) && ( g_iPingid ] / g_iSamplesid ] > get_pcvar_numg_pCvarHPKMaxPing ) ) ) 
        
KickPlayerid 

    return 
PLUGIN_CONTINUE 





PHP Code:
public CheckFrequencyid 

    if( 
get_pcvar_numg_pCvarHPKPingChecks ) < 
        
set_pcvar_numg_pCvarHPKPingChecks

    if( 
get_user_flagsid ) & ADMIN_IMMUNITY && get_pcvar_numg_pCvarHPKImmunity ) == 
    { 
        
remove_taskid 
        
ChatColorid"!g[ HPK ] !yPing checking disabled due to immunity..." ); 
        return 
PLUGIN_CONTINUE
    } 

    new 
iPingiLoss
    
get_user_pingidiPingiLoss )  

    
g_iPingid ] += iPing 
    
++g_iSamplesid 

    if( ( 
g_iSamplesid ] > get_pcvar_numg_pCvarHPKPingChecks ) ) && ( g_iPingid ] / g_iSamplesid ] > get_pcvar_numg_pCvarHPKMaxPing ) ) ) 
        
KickPlayerid 

    return 
PLUGIN_CONTINUE 

__________________

Last edited by leonard19941; 06-25-2012 at 21:40.
leonard19941 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 06:08.


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