23.11.2011, 14:34
(
Последний раз редактировалось Master_Pawn; 23.11.2011 в 23:02.
)
RESOLVIDO brigado Gustavo Por me ajudar Via MSN
if(response) { if(dialogid == 12346 || dialogid == 12347) { if(strlen(inputtext)) { new tmppass[64]; strmid(tmppass, inputtext, 0, strlen(inputtext), 255); Encrypt(tmppass); OnPlayerLogin(playerid,tmppass); } else { new loginstring[128]; new loginname[64]; GetPlayerName(playerid,loginname,sizeof(loginname)); format(loginstring,sizeof(loginstring),"SENHA INCORRETA\n\nFavor inserir a senha correta:\nSe errar novamente vocк serб banido",loginname); ShowPlayerDialog(playerid,12347,DIALOG_STYLE_PASSWORD,"Insanity UnderWord Revolution",loginstring,"Logar-se","Sair"); gPlayerLogTries[playerid] += 1; if(gPlayerLogTries[playerid] == 4) { Ban(playerid); } } }
if(dialogid == 12345) { if(strlen(inputtext)) { GetPlayerName(playerid, sendername, sizeof(sendername)); format(string, sizeof(string), "%s.ini", sendername); new File: hFile = fopen(string, io_read); if (hFile) { SendClientMessage(playerid, COLOR_YELLOW, "Esta conta jб existe em nosso sistema de registros, por favor escolha outro."); fclose(hFile); return 1; } new tmppass[64]; strmid(tmppass, inputtext, 0, strlen(inputtext), 255); Encrypt(tmppass); OnPlayerRegister(playerid,tmppass); } else { new regstring[128]; new regname[64]; GetPlayerName(playerid,regname,sizeof(regname)); format(regstring,sizeof(regstring),"Conta nгo registrada\nNome: %s\n\nPor favor insira sua senha:",regname); ShowPlayerDialog(playerid,12345,DIALOG_STYLE_PASSWORD,"Insanity UnderWord Revolution",regstring,"Registrar-se","Sair"); } }