[Pedido] Vip automatico
#8

Nгo vai funcionar devido ter que possui os parвmetros do gettime(ano,mes,dia);
Toma aqui,.


pawn Код:
stock vipDias(playerid, dias)
{
    if(!IsPlayerConnected(playerid)) return 1;
    new j_ano, j_dia, j_mes, j_String[128], j_Nome[MAX_PLAYER_NAME];
    GetPlayerName(playerid, j_Nome, sizeof(j_Nome));
    getdate(j_ano, j_mes, j_dia);
    j_dia += dias;
    while(j_dia > 31) {
        j_dia -= 31;
        j_mes++;
    }
    while(j_mes > 12) {
        j_mes -= 12;
        j_ano++;
    }
    format(j_String, sizeof(j_String), "Vip%s.ini", j_Nome);
    if(!dini_Exists(j_String)) {
        dini_Create(j_String);
        dini_IntSet(j_String, "Dia", j_dia);
        dini_IntSet(j_String, "Mes", j_mes);
        dini_IntSet(j_String, "Ano", j_ano);
    }
    else {
        dini_IntSet(j_String, "Dia", j_dia);
        dini_IntSet(j_String, "Mes", j_mes);
        dini_IntSet(j_String, "Ano", j_ano);
    }
    PlayerInfo[playerid][pVip] = 1;
    return 0x01;
}
Eu quem fiz, testa.


reputation? :/
Reply


Messages In This Thread
[Pedido] Vip automatico - by brunim - 25.07.2011, 15:33
Re: [Pedido] Vip automatico - by FoxXx - 25.07.2011, 15:41
Re: [Pedido] Vip automatico - by brunim - 25.07.2011, 15:57
Re: [Pedido] Vip automatico - by FoxXx - 25.07.2011, 16:06
Re: [Pedido] Vip automatico - by Shadoww5 - 25.07.2011, 17:49
Re: [Pedido] Vip automatico - by brunim - 26.07.2011, 01:49
Re: [Pedido] Vip automatico - by brunim - 26.07.2011, 10:37
Re: [Pedido] Vip automatico - by Ricop522 - 26.07.2011, 13:27
Re: [Pedido] Vip automatico - by RockFire - 26.07.2011, 13:35
Re: [Pedido] Vip automatico - by Ricop522 - 26.07.2011, 14:33

Forum Jump:


Users browsing this thread: 1 Guest(s)