#define FILTERSCRIPT
#include <a_samp>
public OnFilterScriptInit ( ) {
printf ( "\n\n-----------------------------------------------------------" ) ;
printf ( " " ) ;
printf ( " Sistema Anti - Bot Iniciado " ) ;
printf ( " Criado por Juniior3" ) ;
printf ( " " ) ;
printf ( "-----------------------------------------------------------\n\n" ) ;
return 1;
}
public OnFilterScriptExit ( ) {
printf ( "\n\n-----------------------------------------------------------" ) ;
printf ( " " ) ;
printf ( " Sistema Anti - Bot Finalizado " ) ;
printf ( " Criado por Juniior3" ) ;
printf ( " " ) ;
printf ( "-----------------------------------------------------------\n\n" ) ;
return 1 ;
}
static
NumerosNick [ MAX_PLAYERS ] ;
new NomesProibidos [ 10 ] [ 2 ] = {
{"0"},
{"1"},
{"2"},
{"3"},
{"4"},
{"5"},
{"6"},
{"7"},
{"8"},
{"9"}
};
public OnPlayerConnect ( playerid ) {
if ( strfind ( Nick ( playerid ) , "[hax]" , true ) != -1 )
BanEx ( playerid , "BOT ( by: AntiBot ) " ) ;
for ( new i ; i < sizeof ( NomesProibidos ) ; ++ i ) {
if ( strfind ( Nick ( playerid ) , NomesProibidos [ i ] ) ) {
++ NumerosNick [ playerid ] ;
if ( NumerosNick [ playerid ] >= 3 ) {
BanEx ( playerid , "BOT ( by: AntiBot ) " ) ;
break ;
}
}
}
return 1;
}
stock Nick ( playerid ) {
static
Nome [ MAX_PLAYER_NAME ] ;
GetPlayerName ( playerid , Nome , MAX_PLAYER_NAME ) ;
return Nome ;
}