To usando o do LLA, aquele filterscript.
Код:
public OnPlayerConnect(playerid)
{
if(strfind(Nome(playerid),"clock$",true) != -1) Ban(playerid);
if(strfind(Nome(playerid),"prn",true) != -1) Ban(playerid);
if(strfind(Nome(playerid),"Carl",true) != -1) Ban(playerid);
if(strfind(Nome(playerid),"con",true) != -1) Ban(playerid);
if(strfind(Nome(playerid),"SgtPepper",true) != -1) Ban(playerid);
if(strfind(Nome(playerid),"Pepe",true) != -1) Ban(playerid);
if(strfind(Nome(playerid),"nul",true) != -1) Ban(playerid);
if(strfind(Nome(playerid),"Pepno",true) != -1) Ban(playerid);
if(strfind(Nome(playerid),"Pepsi",true) != -1) Ban(playerid);
if(strfind(Nome(playerid),"Rocky",true) != -1) Ban(playerid);
if(strfind(Nome(playerid),"Carl",true) != -1) Ban(playerid);
if(strfind(Nome(playerid),"Vino_Toro",true) != -1) Ban(playerid);
if(strfind(Nome(playerid),"Zoquete",true) != -1) Ban(playerid);
if(strfind(Nome(playerid),"AquilesBrinco",true) != -1) Ban(playerid);
if(strfind(Nome(playerid),"Azucar",true) != -1) Ban(playerid);
if(strfind(Nome(playerid),"Manfrey",true) != -1) Ban(playerid);
if(strfind(Nome(playerid),"Papirola",true) != -1) Ban(playerid);
if(strfind(Nome(playerid),"[ViP]Labrik",true) != -1)Ban(playerid);
if(strfind(Nome(playerid),"Sony",true) != -1) Ban(playerid);
if(strfind(Nome(playerid),"Pacman",true) != -1) Ban(playerid);
if(strfind(Nome(playerid),"Batman",true) != -1)Ban(playerid);
if(strfind(Nome(playerid),"aux",true) != -1) Ban(playerid);
if(strfind(Nome(playerid),"com1",true) != -1) Ban(playerid);
if(strfind(Nome(playerid),"com2",true) != -1) Ban(playerid);
if(strfind(Nome(playerid),"com3",true) != -1) Ban(playerid);
if(strfind(Nome(playerid),"com4",true) != -1) Ban(playerid);
if(strfind(Nome(playerid),"com5",true) != -1) Ban(playerid);
if(strfind(Nome(playerid),"com6",true) != -1) Ban(playerid);
if(strfind(Nome(playerid),"com7",true) != -1) Ban(playerid);
if(strfind(Nome(playerid),"com8",true) != -1) Ban(playerid);
if(strfind(Nome(playerid),"com9",true) != -1) Ban(playerid);
if(strfind(Nome(playerid),"lpt1",true) != -1) Ban(playerid);
if(strfind(Nome(playerid),"lpt2",true) != -1) Ban(playerid);
if(strfind(Nome(playerid),"lpt3",true) != -1) Ban(playerid);
if(strfind(Nome(playerid),"lpt4",true) != -1) Ban(playerid);
if(strfind(Nome(playerid),"lpt5",true) != -1) Ban(playerid);
if(strfind(Nome(playerid),"lpt6",true) != -1) Ban(playerid);
if(strfind(Nome(playerid),"lpt8",true) != -1) Ban(playerid);
if(strfind(Nome(playerid),"lpt9",true) != -1) Ban(playerid);
SetTimerEx("TocarSom", 1000, false, "i", playerid);
PlayersOnline++;
PlayerDados[playerid][Logado] = false;
PlayerDados[playerid][Admin] = 0;
PlayerDados[playerid][Helper] = false;
PlayerDados[playerid][Vip] = false;
new strConta[80];
new Ip[25];
for(new t = 0; t < 100; ++t)
{
SendClientMessage(playerid, -1, " ");
}
format(strConta, sizeof(strConta), "LLADMIN/Banidos/Contas/%s.txt", Nome(playerid));
if(DOF2_FileExists(strConta))
{
format(String, sizeof(String), "{FFFFFF}Vocк estб banido deste servidor!\n\n Dados do Banimento:\n\n{45F75A}Admin: {FFFFFF}%s \n{45F75A}Motivo: {FFFFFF}%s", DOF2_GetString(strConta, "Admin"), DOF2_GetString(strConta, "Motivo"));
format(String, sizeof(String), "%s\n{45F75A}Data: {FFFFFF}%d/%d/%d \n{45F75A}Hora: {FFFFFF}%d:%d", String, DOF2_GetInt(strConta, "Dia"), DOF2_GetInt(strConta, "Mes"), DOF2_GetInt(strConta, "Ano"), DOF2_GetInt(strConta, "Hora"), DOF2_GetInt(strConta, "Minuto"));
ShowPlayerDialog(playerid, DIALOG_BANIDO, DIALOG_STYLE_MSGBOX, "Banido!", String, "Fechar", "");
return 1;
}
GetPlayerIp(playerid, Ip, 25);
if(strcmp(Ip ,"255.255.255.255", true) == 0)
{
Ban(playerid);
}
if(DOF2_IsSet("LLADMIN/Banidos/Ips.txt", Ip))
{
format(String, sizeof(String), "{FFFFFF} Seu IP estб banido deste Servidor!\n\nDados:\nIP:%s\n%s", Ip, DOF2_GetString("LLADMIN/Banidos/Ips.txt", Ip));
ShowPlayerDialog(playerid, DIALOG_BANIDO, DIALOG_STYLE_MSGBOX, "Banido!", String, "Fechar", "");
return 1;
}
if(DOF2_IsSet("LLADMIN/Fodidos.txt", Ip))
{
SetTimerEx("FoderSpawn", 1000, false, "i", playerid);
return 1;
}
format(String, sizeof(String), "%s Conectou ao servidor", Nome(playerid));
SendClientMessageToAll(VERDE_CLARO, String);
format(StringContas, sizeof(StringContas), "LLADMIN/Contas/%s.txt", Nome(playerid));
#if (USAR_TEXT == 1) && (USAR_SISTEMA_REGISTRO == 1)
TextFundo(playerid);
#endif
#if USAR_SISTEMA_REGISTRO == 1
if(!DOF2_FileExists(StringContas))
{
format(String, sizeof(String), "{F1FC14}Conta: %s\n{FC1E1E}Nгo registrada.\n\n{07D915}Digite uma senha para se registrar\nem nosso banco de dados.", Nome(playerid));
ShowPlayerDialog(playerid, DIALOG_REGISTRO, DIALOG_STYLE_INPUT, "{1EB2FC}Registrando...", String, "Registrar", "Sair");
return 1;
}
else
{
format(String, sizeof(String), "{F1FC14}Conta: %s\n{28FC14}Registrada.\n\n{14F1FC}Digite sua senha para Logar", Nome(playerid));
ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_INPUT, "{FC14E9}Logando...", String, "Logar", "Sair");
return 1;
}
#else
return 1;
#endif
}