[AJUDA] Sistema UP upando para 1 player
#5

pawn Код:
public LevelUP()
{
    for(new i=0;i<MAX_PLAYERS;i++)
    {
        if(IsPlayerConnected(i))
        {
            new string[256];
            new aname[MAX_PLAYER_NAME];
            GetPlayerName(i, aname, MAX_PLAYER_NAME);
            format(file, sizeof(file), PASTA_CONTAS, aname);
                if(AFK[i] == 0)
                {
                    dini_IntSet(file, "Tempo", dini_Int(file, "Tempo")+1);
                    //====== [EXP] ======
                    if(dini_Int(file, "Tempo") >=1)
                    {
                        dini_IntSet(file, "EXP", dini_Int(file, "EXP")+1);
                        format(string, sizeof(string), "» Vocк ganhou +1 exp.(%d)",dini_Int(file, "EXP"));
                        PlayerPlaySound(i, 1133, 0, 0, 0);
                        SendClientMessage(i, 0x33AAFFFF, string);
                        dini_IntSet(file, "Tempo",0);
                    }
                    if(dini_Int(file, "EXP") >=5)
                    {
                        dini_IntSet(file, "Level", dini_Int(file, "Level")+1);
                        format(string, sizeof(string), "(INFO) Vocк juntou 5 de respeito, e ganhou +1 level. (%d) ",dini_Int(file, "Level"));
                        SendClientMessage(i, 0x75EA00AA, string);
                        PlayerPlaySound(i, 1057, 0, 0, 0);
                        dini_IntSet(file, "EXP",0);
                    }
                 }
                 else
                 {
                 }
        }
    }
}
Reply


Messages In This Thread
[AJUDA] Sistema UP upando para 1 player - by Chis - 18.01.2012, 21:14
Respuesta: [AJUDA] Sistema UP upando para 1 player - by Chis - 18.01.2012, 22:11
Re: [AJUDA] Sistema UP upando para 1 player - by Cristhian - 18.01.2012, 23:07
[No subject] - by Chis - 19.01.2012, 00:03
Re: [AJUDA] Sistema UP upando para 1 player - by DrTHE - 19.01.2012, 10:43
[No subject] - by Chis - 19.01.2012, 18:34
Re: [AJUDA] Sistema UP upando para 1 player - by Hardware - 19.01.2012, 18:38
Respuesta: [AJUDA] Sistema UP upando para 1 player - by Chis - 19.01.2012, 19:00
Re: [AJUDA] Sistema UP upando para 1 player - by Hardware - 19.01.2012, 19:30
Respuesta: [AJUDA] Sistema UP upando para 1 player - by Chis - 19.01.2012, 19:55

Forum Jump:


Users browsing this thread: 1 Guest(s)