08.08.2018, 01:04
PHP код:
if(dialogid == 10102)
{
if(response)
{
new idc = GetPVarInt(playerid,"portaofrente");
if(strcmp(inputtext, FilePortao(idc), true) == 0){
if(PortaoOcupado[idc] == 1) return SendClientMessage(playerid, -1,"Portгo em movimento ! Aguarde atй ele parar.");
SistemaAbrirPortao(playerid, idc);
}else{
ShowPlayerDialog(playerid,10102, DIALOG_STYLE_INPUT, "Senha Portao", "{ff0000}[ERRO] {ffffff}Senha Incorreta !\nDigite a Senha deste portao:", "Ok", "Cancelar");
}
}
return 1;
}
PHP код:
static FilePortao(idc){
new file[64];
format(file, sizeof(file), "ArquivosBPS/Portoes/Portao_%d.ini", idc);
return DOF2_SetString(file, "PortaoSenha");
}

