Raised This Month: $ Target: $400
 0% 

Double command using problem[anti-fastfire+advanced_bans]


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Metanabol
Member
Join Date: Feb 2009
Old 02-18-2009 , 09:15   Double command using problem[anti-fastfire+advanced_bans]
Reply With Quote #1

Hello i slightly edited ant_fastfire 1.2v for working with advanced bans. But script for fast fire bans 2 times, sometimes 3times... so my question is how to stop this command for banned player, after advanced_bans banip for 1 hour ? here is code:

PHP Code:
public checkBulletCount()
{
    if (
get_cvar_num("amx_af") == 1)
    {
        for(new 
i=1;i<=g_MaxPlayers;i++)
        {
            if(
is_user_alive(i))
            {
                
//client_print(i,print_chat,"%i",countBullets[i])
                
if (countBullets[i] > get_cvar_num("amx_af_max"))
                {
                    new 
Authid[35],Name[32],CurrentTime[29],Map[32],ping,loss,Message[256]
                    
//client_print(0,print_chat,"%i",countBullets[i])
                    
get_user_name(i,Name,31)
                    
get_user_authid(i,Authid,34)
                    
get_mapname(Map,31)
                    
get_user_ping(i,ping,loss)
                    
get_time("%d/%m-%Y - %H:%M:%S",CurrentTime,29)
                    
                    
format(Message,255,"[Anti FastFire %s - %s] %s<%s> using FastFire type of cheat (Ping: %d )",CurrentTime,Map,Name,Authid,ping)
                    
log_amx(Message)

                    
client_print(0print_chat"%s booted by AF plugin.",Name)

                    if (
get_cvar_num("amx_af") == 1)
                    {
                        
server_cmd("amx_banip #%d 60 ^"[AC]FAST-FIRE Detected.^"",get_user_userid(i))
                    }
                    else
                    {
                        
server_cmd("amx_banip #%d 60 ^"[AC]FAST-FIRE Detected.^"",get_user_userid(i))
                    }
                }
            }
            
countBullets[i] = 0
        
}
    }


Last edited by Metanabol; 02-18-2009 at 09:17.
Metanabol 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 17:07.


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