25.09.2015, 00:38
PHP код:
case DIALOG_LOGIN:
{
if(!response) return true;
if(strlen(inputtext) < 1)
{
SendClientMessage(playerid, -1, "Vocк precisa digitar sua senha!");
return 1;
}
if(!strcmp(PlayerInfo[playerid][pPassword], inputtext, true, 129))
{
DigitouLogin[playerid] = 1;
}
else
{
SendClientMessage(playerid, -1, "[ATENЗГO] Senha incorreta!");
ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_PASSWORD, "Digite sua senha:", "Vocк jб й um player registrado, digite uma senha abaixo para logar-se", "Logar", "Voltar");
}
return 1;
}