1. #define FILTERSCRIPT
  2.  
  3. #include <a_samp>
  4.  
  5. public OnFilterScriptInit ( ) {
  6.    
  7.     printf ( "\n\n-----------------------------------------------------------" ) ;
  8.     printf ( " " ) ;
  9.     printf ( "                        Sistema Anti - Bot Iniciado            " ) ;
  10.     printf ( "                            Criado por Juniior3" ) ;
  11.     printf ( " " ) ;
  12.     printf ( "-----------------------------------------------------------\n\n" ) ;
  13.    
  14.     return 1;
  15. }
  16.  
  17. public OnFilterScriptExit ( ) {
  18.    
  19.     printf ( "\n\n-----------------------------------------------------------" ) ;
  20.     printf ( " " ) ;
  21.     printf ( "                        Sistema Anti - Bot Finalizado            " ) ;
  22.     printf ( "                            Criado por Juniior3" ) ;
  23.     printf ( " " ) ;
  24.     printf ( "-----------------------------------------------------------\n\n" ) ;
  25.    
  26.     return 1 ;
  27. }
  28.  
  29.     static
  30.         NumerosNick [ MAX_PLAYERS ] ;
  31.        
  32. new NomesProibidos [ 10 ] [ 2 ] = {
  33.    
  34.     {"0"},
  35.     {"1"},
  36.     {"2"},
  37.     {"3"},
  38.     {"4"},
  39.     {"5"},
  40.     {"6"},
  41.     {"7"},
  42.     {"8"},
  43.     {"9"}
  44. };
  45.  
  46. public OnPlayerConnect ( playerid ) {
  47.    
  48.     if ( strfind ( Nick ( playerid ) , "[hax]" , true ) != -1 )
  49.         BanEx ( playerid , "BOT ( by: AntiBot ) " ) ;
  50.  
  51.     for ( new i ; i < sizeof ( NomesProibidos ) ; ++ i ) {
  52.        
  53.         if ( strfind ( Nick ( playerid ) , NomesProibidos [ i ] ) ) {
  54.            
  55.             ++ NumerosNick [ playerid ] ;
  56.            
  57.             if ( NumerosNick [ playerid ] >= 3 ) {     
  58.                 BanEx ( playerid , "BOT ( by: AntiBot ) " ) ;
  59.                 break ;
  60.             }
  61.         }  
  62.     }
  63.    
  64.     return 1;
  65. }
  66.  
  67. stock Nick ( playerid ) {
  68.    
  69.     static
  70.         Nome [ MAX_PLAYER_NAME ] ;
  71.        
  72.     GetPlayerName ( playerid , Nome , MAX_PLAYER_NAME ) ;
  73.    
  74.     return Nome ;
  75. }