[Ajuda] Erro Dini
#3

Nгo entendi, vc quer colocar DOF2 ? se for tб ae

PHP код:
public OnPlayerRequestClass(playeridclassid)
{
    if(
IsPlayerNPC(playerid))
    {
        
SpawnPlayer(playerid);
        return 
true;
    }
    new 
string[128];
    new 
string3[128];
    new 
ip[16];
    
GetPlayerIp(playeridipsizeof ip);
    
format(string3sizeof(string3), "Banidos/%s.ini"PlayerName(playerid));
    if(
fexist(string3))
    {
        
ClearChatbox(playerid10);
        
strmid(BanInfo[playerid][pMotivo], DOF2_GetString(string3,"Motivo"), 0strlen(DOF2_GetString(string3,"Motivo")), 255);
        
strmid(BanInfo[playerid][pAdmBan], DOF2_GetString(string3,"Admin"), 0strlen(DOF2_GetString(string3,"Admin")), 255);
        
strmid(BanInfo[playerid][pData], DOF2_GetString(string3,"Data"), 0strlen(DOF2_GetString(string3,"Data")), 255);
        
strmid(BanInfo[playerid][pHora], DOF2_GetString(string3,"Hora"), 0strlen(DOF2_GetString(string3,"Hora")), 255);
        
SendClientMessage(playeridCOLOR_WHITE". . . . . . . . . . . . . . . . . . . . Banido . . . . . . . . . . . . . . . . . . . .");
        
format(stringsizeof(string), "Seu NICK, %s, estб banido do servidor."PlayerName(playerid));
        
SendClientMessage(playeridCOLOR_LIGHTREDstring);
        
format(stringsizeof(string), "Motivo: %s"BanInfo[playerid][pMotivo]);
        
SendClientMessage(playeridCOLOR_YELLOWstring);
        
format(stringsizeof(string), "Admin: %s"BanInfo[playerid][pAdmBan]);
        
SendClientMessage(playeridCOLOR_YELLOWstring);
        
format(stringsizeof(string), "Dia: %s, Hora: %s"BanInfo[playerid][pData], BanInfo[playerid][pHora]);
        
SendClientMessage(playeridCOLOR_YELLOWstring);
        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))
        {
            
Kick(playerid);
        }
     }
    else
    {
        
DOF2_SetString(stri,"Motivo",BanInfo[playerid][pMotivo]);
        
DOF2_SetString(stri,"Admin",BanInfo[playerid][pAdmBan]);
        
DOF2_SetString(stri,"Data",BanInfo[playerid][pData]);
        
DOF2_SetString(stri,"Hora",BanInfo[playerid][pHora]);
        
DOF2_SetString(stri,"Nick",PlayerName(playerid));
    }
    
Kick(playerid); 
Reply


Messages In This Thread
Erro Dini - by CleytonTrac - 07.11.2013, 20:34
Re: Erro Dini - by CharlieBrown - 07.11.2013, 20:52
Re: Erro Dini - by [R] ousenber [K] - 07.11.2013, 20:53
Re: Erro Dini - by Juniiro3 - 07.11.2013, 20:57
Respuesta: Erro Dini - by DanDRT - 07.11.2013, 20:59
Re: Erro Dini - by CleytonTrac - 07.11.2013, 21:11

Forum Jump:


Users browsing this thread: 1 Guest(s)