[Ajuda] /bantemp acabando antes do tempo.
#1

Olб, bom dia!

O sistema de ban temporбrio, mas sempre que ele loga ele й desbanido atй mesmo sem acabar o tempo.

pawn Code:
forward CheckDesbanAuto(playerid);
public CheckDesbanAuto(playerid)
{
    new string3[128];
    new string4[128];
    new ANO, MES, DIA;
    new ip[16];
    GetPlayerIp(playerid, ip, sizeof ip);
    format(string3, sizeof(string3), "BanidosTemp/%s.ini", PlayerName(playerid));
    format(string4, sizeof(string4), "IPsBanidosTemp/%s.ini", ip);
    if(fexist(string3))
    {
        getdate(ANO, MES, DIA);
        if(DIA >= PlayerInfo[playerid][pDiaBanTemp] && MES >= PlayerInfo[playerid][pMesBanTemp] && ANO >= PlayerInfo[playerid][pAnoBanTemp])
        {
            dini_Remove(string3);
            FoiDesban[playerid] = 1;
            SendClientMessage(playerid, COLOR_GRAD1, "  Se deu bem!");
            NaoPodeLogar[playerid] = 0;
            if(fexist(string4))
            {
                SendClientMessage(playerid, COLOR_GRAD1, "  Se deu bem!");
                NaoPodeLogar[playerid] = 0;
                dini_Remove(string4);
            }
        }
        else
        {
            SendClientMessage(playerid, COLOR_GRAD1, "  Se fudeo!");
            NaoPodeLogar[playerid] = 1;
            ForceClassSelection(playerid);
            SetTimerEx("BanAuto2", 100, 0, "i", playerid);
        }
    }
    else
    {
        NaoPodeLogar[playerid] = 0;
    }
    if(fexist(string4))
    {
        NaoPodeLogar[playerid] = 1;
        ForceClassSelection(playerid);
        SendClientMessage(playerid, COLOR_GRAD1, "  Se fudeo!");
        SetTimerEx("BanAuto2", 100, 0, "i", playerid);
    }
    else
    {
        NaoPodeLogar[playerid] = 0;
    }
    return true;
}
Vlw!
Reply


Messages In This Thread
/bantemp acabando antes do tempo. - by NuTShoT - 10.07.2013, 18:31
Re: /bantemp acabando antes do tempo. - by NuTShoT - 11.07.2013, 01:51
Re: /bantemp acabando antes do tempo. - by NuTShoT - 11.07.2013, 16:12
Re: /bantemp acabando antes do tempo. - by NuTShoT - 11.07.2013, 23:16
Re: /bantemp acabando antes do tempo. - by NuTShoT - 12.07.2013, 15:31
Re: /bantemp acabando antes do tempo. - by paulor - 12.07.2013, 15:46
Re: /bantemp acabando antes do tempo. - by NuTShoT - 12.07.2013, 15:50
Re: /bantemp acabando antes do tempo. - by paulor - 12.07.2013, 15:55
Re: /bantemp acabando antes do tempo. - by NuTShoT - 12.07.2013, 15:59
Re: /bantemp acabando antes do tempo. - by paulor - 12.07.2013, 16:01

Forum Jump:


Users browsing this thread: 1 Guest(s)