22.03.2014, 19:47
seria isso ?
Code:
logouagora[playerid] = 1; CheckOwner(playerid); //CheckAdmin(playerid); CheckOwnerb(playerid); CheckOwnerh(playerid); //CheckVip(playerid); }//end while fclose(UserFile);//close the file after everything has been read in the while } else { SendClientMessage(playerid, COLOR_YELLOW, "Senha errada! - Se errar a senha 5 vezes terб o IP Banido!"); new loginstring[256]; new loginname[64]; GetPlayerName(playerid,loginname,sizeof(loginname)); format(loginstring,sizeof(loginstring),"{FFFFFF}Bem Vindo(a): {FFFF00}%s\n\n{FFFFFF}Status da Conta: {00FF00}Registrada\n\n{FFFFFF}Digite sua Senha Para Logar!\n\n www.{00FF00}br-{FFFF00}vice{4876FF}city{FFFFFF}.Forumeiros.Com",loginname); ShowPlayerDialog(playerid, 1, DIALOG_STYLE_PASSWORD,"{FFFF00}Brasil Vice City",loginstring,"Logar","Sair"); fclose(UserFile); gPlayerLogTries[playerid] += 1; if(gPlayerLogTries[playerid] == 5) { new stri[64], tmp[20], tmp3[20], ip[16]; GetPlayerIp(playerid, ip, sizeof ip); format(stri, sizeof(stri), "IPsBanidos/%s.ini",ip); getdate(Ano, Mes, Dia); format(tmp, 20, "%d/%d/%d", Dia, Mes, Ano); gettime(Hora, Minuto, Segundo); format(tmp3, 20, "%d:%d:%d", Hora, Minuto, Segundo); format(stri, sizeof(stri), "IPsBanidos/%s.ini",ip); DOF2_CreateFile(stri); DOF2_SetString(stri,"Motivo","Errou a senha 5 vezes"); DOF2_SetString(stri,"Admin","Chuck_Norris"); DOF2_SetString(stri,"Data",tmp); DOF2_SetString(stri,"Hora",tmp3); DOF2_SetString(stri,"Nick",PlayerName(playerid)); } return 1; }