[Ajuda] '-' ajudinha minima '-'
#3

esta aqui o comando quando dou vip para o player ii ele se desloga muda a senha e nem da para colocar a senha para logar
pawn Код:
if(strcmp(cmd, "/darvip", true) == 0)
    {
        if(IsPlayerConnected(playerid))
        {
            if(PlayerInfo[playerid][pAdmin] < 1337)
            {

                return 1;
            }
            tmp = strtok(cmdtext, idx);
            if(!strlen(tmp))
            {
                SendClientMessage(playerid, COLOR_GRAD2, "USE: /darvip [id] [Meses]");
                return 1;
            }
            new para1;
            new level;
            new meses;
            para1 = ReturnUser(tmp);
            tmp = strtok(cmdtext, idx);
            meses = strval(tmp);
            if(!strlen(tmp))
            {
                SendClientMessage(playerid, COLOR_GRAD2, "USE: /darvip [id] [Meses]");
                return 1;
            }
            level = strval(tmp);
            GetPlayerName(para1, giveplayer, sizeof(giveplayer));
            GetPlayerName(playerid, sendername, sizeof(sendername));
            if(IsPlayerConnected(para1))
            {
                if(para1 != INVALID_PLAYER_ID)
                {
                    if(level < 1)return SendClientMessage(playerid, COLOR_LIGHTBLUE, "Vocк nгo pode definir para 0 meses!");
                    format(string, sizeof string, "Vocк deu %d meses de VIP para %s", level, giveplayer);
                    SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
                    format(string, sizeof string, "Admin %s te deu %d meses de VIP com R$%d e %d Niveis, Aproveite Nossos beneficios!", sendername, level, 15000000*meses, 3*meses);
                    SendClientMessage(para1, COLOR_LIGHTBLUE, string);
                    getdate(year, month, day);
                    gettime(hour,minute,second);
                    format(string, sizeof(string), "%s deu vip ao %s nнvel %d (%d/%d/%d - %d:%d)",sendername,giveplayer,level,day, month, year,hour, minute);
                    VipsLog(string);
                    PlayerInfo[para1][pLevel] += 3*meses;
                    PlayerInfo[para1][pVIP] = 1;
                    PlayerInfo[para1][pTimeVIP] = 0;
                    GivePlayerMoney(para1, 15*meses);
                    ScoreLevel(para1);
                    PlayerInfo[para1][pDiaVIP] = day;
                    PlayerInfo[para1][pMesVIP] = month+level;
                    PlayerInfo[para1][pAnoVIP] = year;
                    if(PlayerInfo[para1][pMesVIP] > 12)
                    {
                        PlayerInfo[para1][pMesVIP] -= 12;
                        PlayerInfo[para1][pAnoVIP]++;
                    }
                    OnPlayerSave(para1);
                }
            }
        }
        return 1;
    }
Reply


Messages In This Thread
'-' ajudinha minima '-' - by killler - 22.01.2013, 12:34
Re: '-' ajudinha minima '-' - by iStronG - 22.01.2013, 12:44
Re: '-' ajudinha minima '-' - by killler - 22.01.2013, 13:41
Re: '-' ajudinha minima '-' - by Copom_policia - 22.01.2013, 13:43
Re: '-' ajudinha minima '-' - by killler - 22.01.2013, 13:55
Re: '-' ajudinha minima '-' - by Copom_policia - 22.01.2013, 14:02
Re: '-' ajudinha minima '-' - by killler - 22.01.2013, 14:16
Re: '-' ajudinha minima '-' - by Copom_policia - 22.01.2013, 14:17
Re: '-' ajudinha minima '-' - by tonisantolia - 22.01.2013, 14:24
Re: '-' ajudinha minima '-' - by Copom_policia - 22.01.2013, 14:55

Forum Jump:


Users browsing this thread: 3 Guest(s)