[AJUDA]Sistema DOF2...
#1

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
PHP код:
     if(RegistrationStep[playerid] == && 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(playeridipsizeof (ip));
        
format(string3sizeof(string3), "Banidos/%s.ini"pNome(playerid));
        if(
DOF2_FileExists(string3))
        {
            
ClearChatbox(playerid10);
              
strmid(PlayerInfo[playerid][pMotivo], DOF2_GetString(string3,"Motivo"), 0strlen(DOF2_GetString(string3,"Motivo")), 255);
            
strmid(PlayerInfo[playerid][pAdmBan], DOF2_GetString(string3,"Admin"), 0strlen(DOF2_GetString(string3,"Admin")), 255);
            
strmid(PlayerInfo[playerid][pData], DOF2_GetString(string3,"Data"), 0strlen(DOF2_GetString(string3,"Data")), 255);
            
strmid(PlayerInfo[playerid][pHora], DOF2_GetString(string3,"Hora"), 0strlen(DOF2_GetString(string3,"Hora")), 255);
            
format(info1sizeof(info1), "{FF6600}Seu Nick:[%s] estб Banido do PlAyErS ViRtUaL ReAlItIeS"pNome(playerid));
            
format(info2sizeof(info2), "{FF6600}Motivo: %s"PlayerInfo[playerid][pMotivo]);
            
format(info3sizeof(info3), "{FF6600}Admin: %s"PlayerInfo[playerid][pAdmBan]);
            
format(info4sizeof(info4), "{FF6600}Dia: %s, Hora: %s"PlayerInfo[playerid][pData], PlayerInfo[playerid][pHora]);
            
format(info5sizeof(info5),"{E31919}Para revisгo de ban acesse nosso forum: http://playervirtualreality.forumeiros.com/");
            
format(info6sizeof(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(strisizeof(stri), "IPsBanidos/%s.ini",ip);
            
getdate(AnoMesDia);
            
format(tmp20"%d/%d/%d"DiaMesAno);
            
gettime(HoraMinutoSegundo);
            
format(tmp220"%d:%d:%d"HoraMinutoSegundo);
            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(string3sizeof(string3), "IPsBanidos/%s.ini"ip);
         if(
DOF2_FileExists(string3))
        {
               
ClearChatbox(playerid10);
            
strmid(PlayerInfo[playerid][pMotivo], DOF2_GetString(string3,"Motivo"), 0strlen(DOF2_GetString(string3,"Motivo")), 255);
            
strmid(PlayerInfo[playerid][pAdmBan], DOF2_GetString(string3,"Admin"), 0strlen(DOF2_GetString(string3,"Admin")), 255);
            
strmid(PlayerInfo[playerid][pData], DOF2_GetString(string3,"Data"), 0strlen(DOF2_GetString(string3,"Data")), 255);
            
strmid(PlayerInfo[playerid][pHora], DOF2_GetString(string3,"Hora"), 0strlen(DOF2_GetString(string3,"Hora")), 255);
            
strmid(PlayerInfo[playerid][pNick], DOF2_GetString(string3,"Nick"), 0strlen(DOF2_GetString(string3,"Nick")), 255);
            
format(info1sizeof(info1), "Seu IP:[%s] estб Banido do PlAyErS ViRtUaL ReAlItIeS"ip);
            
format(info2sizeof(info2), "Motivo: %s"PlayerInfo[playerid][pMotivo]);
            if(
strcmp(PlayerInfo[playerid][pNick],""true ) == 0)
            {
                
format(info3sizeof(info3), "Admin: %s"PlayerInfo[playerid][pAdmBan]);
            }
            else
            {
                
format(info3sizeof(info3), "Admin: %s, Nick Fake: %s"PlayerInfo[playerid][pAdmBan], PlayerInfo[playerid][pNick]);
            }
            
format(info4sizeof(info4), "Dia: %s, Hora: %s"PlayerInfo[playerid][pData], PlayerInfo[playerid][pHora]);
            
format(info5sizeof(info5),"{E31919}Para revisгo de ban acesse nosso forum: http://playervirtualreality.forumeiros.com/");
            
format(info6sizeof(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(stringsizeof(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(playerid1DIALOG_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(playerid2DIALOG_STYLE_PASSWORD"{E31919}Registrar"string"Registrar""Sair");
        }
    } 
Imagem
Reply


Messages In This Thread
[AJUDA]Sistema DOF2... - by lucas_mdr1235 - 07.11.2011, 21:50
Re: [AJUDA]Sistema DOF2... - by ViniBorn - 07.11.2011, 21:54
Re: [AJUDA]Sistema DOF2... - by lucas_mdr1235 - 07.11.2011, 22:27
Re: [AJUDA]Sistema DOF2... - by DreeH - 07.11.2011, 23:05
Re: [AJUDA]Sistema DOF2... - by lucas_mdr1235 - 08.11.2011, 12:28
Re: [AJUDA]Sistema DOF2... - by lucas_mdr1235 - 10.11.2011, 19:35
Re: [AJUDA]Sistema DOF2... - by ReDKiiL - 10.11.2011, 19:36
Re: [AJUDA]Sistema DOF2... - by Pharrel - 10.11.2011, 19:40
Re: [AJUDA]Sistema DOF2... - by Bruno Pereira - 10.11.2011, 19:41
Re: [AJUDA]Sistema DOF2... - by lucas_mdr1235 - 10.11.2011, 21:38

Forum Jump:


Users browsing this thread: 1 Guest(s)