[Ajuda] Bug tres chances pra senha login!
#9

PHP код:
new tentativas[MAX_PLAYERS];
public 
OnPlayerConnect(playerid)
{
    
tentativas[playerid] = 0;
    return 
1;
}
// Response
    
if(strcmp(passDOF2_GetString(Arquivo(playerid), "Senha"), true))
    {
          
tentativas[playerid] ++;
          
          if(
tentativas[playerid] == 3)return Msg(playeridVermelho"Vocк errou 3 vezes a senha e por isso foi kickado!"), Kick(playerid);
          new 
ip[16], string2[270];    GetPlayerIp(playeridipsizeof(ip));
          
format(string2270""BRANCO2"Olб "AMARELO2"%s, "BRANCO2"vocк digitou a senha "VERMELHO2"incorretamente"BRANCO2"\nPor favor digite uma senha vбlida abaixo para fazer o login:\nVocк tem %d tentativas\n"CINZA1"Por questхes de seguranзa seu IP(%s) foi salvo em nossos registros."Nome(playerid), tentativas[playerid], ip);
          
ShowPlayerDialog(playeridLOGINDIALOG_STYLE_PASSWORD"Login"string2"Logar""Sair");
          return 
true;
    } 
Reply


Messages In This Thread
Bug tres chances pra senha login! - by best95 - 10.09.2014, 17:39
Re: Bug tres chances pra senha login! - by arakuta - 10.09.2014, 17:52
Re: Bug tres chances pra senha login! - by best95 - 10.09.2014, 18:05
Re: Bug tres chances pra senha login! - by Coreia - 10.09.2014, 18:08
Re: Bug tres chances pra senha login! - by best95 - 10.09.2014, 18:18
Re: Bug tres chances pra senha login! - by Coreia - 10.09.2014, 18:35
Re: Bug tres chances pra senha login! - by best95 - 10.09.2014, 18:38
Re: Bug tres chances pra senha login! - by Larceny - 10.09.2014, 19:07
Re: Bug tres chances pra senha login! - by Don_Speed - 10.09.2014, 19:23
Re: Bug tres chances pra senha login! - by best95 - 11.09.2014, 22:00

Forum Jump:


Users browsing this thread: 1 Guest(s)