07.11.2011, 21:50
(
Последний раз редактировалось lucas_mdr1235; 08.11.2011 в 12:28.
)
ai gente meu problema e q nao esta caregando o dialog quando o player esta banido, quando o player nao esta banido o dialog de login ou registro funciona o problema e so no dialog de ban quando carrega
Imagem
PHP код:
if(RegistrationStep[playerid] == 0 && gPlayerLogged[playerid] != 1)
{
new info[512],info1[70],info2[70],info3[70],info4[70],info5[128],info6[80];
new ip[16];
new string3[128];
GetPlayerIp(playerid, ip, sizeof (ip));
format(string3, sizeof(string3), "Banidos/%s.ini", pNome(playerid));
if(DOF2_FileExists(string3))
{
ClearChatbox(playerid, 10);
strmid(PlayerInfo[playerid][pMotivo], DOF2_GetString(string3,"Motivo"), 0, strlen(DOF2_GetString(string3,"Motivo")), 255);
strmid(PlayerInfo[playerid][pAdmBan], DOF2_GetString(string3,"Admin"), 0, strlen(DOF2_GetString(string3,"Admin")), 255);
strmid(PlayerInfo[playerid][pData], DOF2_GetString(string3,"Data"), 0, strlen(DOF2_GetString(string3,"Data")), 255);
strmid(PlayerInfo[playerid][pHora], DOF2_GetString(string3,"Hora"), 0, strlen(DOF2_GetString(string3,"Hora")), 255);
format(info1, sizeof(info1), "{FF6600}Seu Nick:[%s] estб Banido do PlAyErS ViRtUaL ReAlItIeS", pNome(playerid));
format(info2, sizeof(info2), "{FF6600}Motivo: %s", PlayerInfo[playerid][pMotivo]);
format(info3, sizeof(info3), "{FF6600}Admin: %s", PlayerInfo[playerid][pAdmBan]);
format(info4, sizeof(info4), "{FF6600}Dia: %s, Hora: %s", PlayerInfo[playerid][pData], PlayerInfo[playerid][pHora]);
format(info5, sizeof(info5),"{E31919}Para revisгo de ban acesse nosso forum: http://playervirtualreality.forumeiros.com/");
format(info6, sizeof(info6),"{2F991A}Atenзгo: Vocк sу serб desbanido caso for inocente !");
format(info,350,"%s\n%s\n%s\n%s\n%s\n%s",info1,info2,info3,info4,info5,info6);
ShowPlayerDialog(playerid,0000,DIALOG_STYLE_MSGBOX,"{E31919}|_______________ Informaзхes do Nick _______________|",info,"Ok","");
new stri[64], tmp[20], tmp2[20];
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(tmp2, 20, "%d:%d:%d", Hora, Minuto, Segundo);
if(!DOF2_FileExists(stri))
{
DOF2_CreateFile(stri);
DOF2_SetString(stri,"Motivo",PlayerInfo[playerid][pMotivo]);
DOF2_SetString(stri,"Admin",PlayerInfo[playerid][pAdmBan]);
DOF2_SetString(stri,"Data",PlayerInfo[playerid][pData]);
DOF2_SetString(stri,"Hora",PlayerInfo[playerid][pHora]);
DOF2_SetString(stri,"Nick",pNome(playerid));
DOF2_SaveFile();
}
Kick(playerid);
}
format(string3, sizeof(string3), "IPsBanidos/%s.ini", ip);
if(DOF2_FileExists(string3))
{
ClearChatbox(playerid, 10);
strmid(PlayerInfo[playerid][pMotivo], DOF2_GetString(string3,"Motivo"), 0, strlen(DOF2_GetString(string3,"Motivo")), 255);
strmid(PlayerInfo[playerid][pAdmBan], DOF2_GetString(string3,"Admin"), 0, strlen(DOF2_GetString(string3,"Admin")), 255);
strmid(PlayerInfo[playerid][pData], DOF2_GetString(string3,"Data"), 0, strlen(DOF2_GetString(string3,"Data")), 255);
strmid(PlayerInfo[playerid][pHora], DOF2_GetString(string3,"Hora"), 0, strlen(DOF2_GetString(string3,"Hora")), 255);
strmid(PlayerInfo[playerid][pNick], DOF2_GetString(string3,"Nick"), 0, strlen(DOF2_GetString(string3,"Nick")), 255);
format(info1, sizeof(info1), "Seu IP:[%s] estб Banido do PlAyErS ViRtUaL ReAlItIeS", ip);
format(info2, sizeof(info2), "Motivo: %s", PlayerInfo[playerid][pMotivo]);
if(strcmp(PlayerInfo[playerid][pNick],"", true ) == 0)
{
format(info3, sizeof(info3), "Admin: %s", PlayerInfo[playerid][pAdmBan]);
}
else
{
format(info3, sizeof(info3), "Admin: %s, Nick Fake: %s", PlayerInfo[playerid][pAdmBan], PlayerInfo[playerid][pNick]);
}
format(info4, sizeof(info4), "Dia: %s, Hora: %s", PlayerInfo[playerid][pData], PlayerInfo[playerid][pHora]);
format(info5, sizeof(info5),"{E31919}Para revisгo de ban acesse nosso forum: http://playervirtualreality.forumeiros.com/");
format(info6, sizeof(info6),"{2F991A}Atenзгo: Vocк sу serб desbanido caso for inocente !");
format(info,350,"%s\n%s\n%s\n%s\n%s\n%s",info1,info2,info3,info4,info5,info6);
ShowPlayerDialog(playerid,0000,DIALOG_STYLE_MSGBOX,"{E31919}|_______________ Informaзхes do IP _______________|",info,"Ok","");
Kick(playerid);
}
format(string, sizeof(string), "Contas/%s.ini", pNome(playerid));
if(fexist(string))
{
gPlayerConta[playerid] = 1;
format(string,sizeof(string),"%s Seja Bem Vindo!\nDigite sua Senha para Logar!",pNome(playerid));
ShowPlayerDialog(playerid, 1, DIALOG_STYLE_PASSWORD, "{E31919}Logar", string, "Logar", "Sair");
}
else
{
gPlayerConta[playerid] = 0;
format(string,sizeof(string),"%s Seja Bem Vindo!\nDigite sua Senha para Registrar!",pNome(playerid));
ShowPlayerDialog(playerid, 2, DIALOG_STYLE_PASSWORD, "{E31919}Registrar", string, "Registrar", "Sair");
}
}