03.03.2020, 01:35
PHP Code:
if(dialogid == 781)
{
if(response)
{
GetPlayerName(playerid, Name, sizeof(Name));
format(String, sizeof(String), CONTAS_PLAYER, Name);
DOF2_SetString(String, "Sexo", "Masculino");
DOF2_SaveFile();
format(String, sizeof(String), "%s seu Sexo й %s.", Name, DOF2_GetString(String, "Sexo"));
SendClientMessage(playerid, -1, String);
format(String, sizeof(String), "\n{7FFFD4}Nome: {1E90FF}%s Registrado\n\n{FFFFFF} Digite sua Senha Corretamente para Logar\n", Name);
ShowPlayerDialog(playerid, LOGIN, DIALOG_STYLE_PASSWORD, "Sistema de Login", String, "Logar", "Cancelar");
}
else
{
GetPlayerName(playerid, Name, sizeof(Name));
format(String, sizeof(String), CONTAS_PLAYER, Name);
DOF2_SetString(String, "Sexo", "Feminino");
DOF2_SaveFile();
format(String, sizeof(String), "%s seu Sexo й %s.", Name, Name, DOF2_GetString(String, "Sexo"));
SendClientMessage(playerid, -1, String);
format(String, sizeof(String), "\n{7FFFD4}Nome: {1E90FF}%s Registrado\n\n{FFFFFF} Digite sua Senha Corretamente para Logar\n", Name);
ShowPlayerDialog(playerid, LOGIN, DIALOG_STYLE_PASSWORD, "Sistema de Login", String, "Logar", "Cancelar");
}
return true;
}