[AJUDA] Sistema de UP
#7

Nгo seria assim?
pawn Код:
public RelogioUP()
{
    new string[256], segUP = 0, minUP = 0; minUP--;
    if(segUP<1) {
        segUP=59; minUP--;
    }
    if(minUP<1) {
        minUP = 9;
    }
    if(segUP <= 9) {
        format(string,60,"~w~%d:0%d +Exp",minUP,segUP);
    }
    else {
        format(string,60,"~w~%d:%d +Exp",minUP,segUP);
    }
    TextDrawSetString(UPRelogio,string);
    return 1;
}
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), P_CONTAS, aname);
            //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Exp
            if(dini_Int(file, "Tempo") >=7)
            {
                dini_IntSet(file, "EXP", dini_Int(file, "EXP")+1);
                format(string, sizeof(string), "| UP | Vocк ganhou +1 experiкncia! [%d / 5]",dini_Int(file, "EXP"));
                PlayerPlaySound(i, 1057, 0, 0, 0);
                SendClientMessage(i, 0x75EA00AA, 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), "| UP | Vocк juntou 5 experiкncias e ganhou +1 level! [ %d ] ",dini_Int(file, "Level"));
                SendClientMessage(i, 0x75EA00AA, string);
                PlayerPlaySound(i, 1057, 0, 0, 0);
                dini_IntSet(file, "EXP",0);
                //dini_IntSet(file, "rouboubanco", 0);
                dini_IntSet(file, "CriouBarreira", 0);
                jasequestro[i] = 0;
                jacomeupizza[i] = 0;
            }
        }
    }
    return 1;
}
?
Ja que vc ja subistuiu a 'level up'
Reply


Messages In This Thread
[AJUDA] Sistema de UP - by Allanrokeiro - 15.01.2012, 17:40
Re: [AJUDA] Sistema de UP - by Gui_Mendes - 15.01.2012, 20:05
Re: [AJUDA] Sistema de UP - by Allanrokeiro - 15.01.2012, 20:10
Re: [AJUDA] Sistema de UP - by Gui_Mendes - 15.01.2012, 20:20
Re: [AJUDA] Sistema de UP - by Allanrokeiro - 15.01.2012, 20:23
Re: [AJUDA] Sistema de UP - by Sergiinhonike - 15.01.2012, 21:11
Re: [AJUDA] Sistema de UP - by dPlaYer_ - 15.01.2012, 21:12
Re: [AJUDA] Sistema de UP - by Allanrokeiro - 16.01.2012, 00:42
Re: [AJUDA] Sistema de UP - by dPlaYer_ - 17.01.2012, 23:57
Re: [AJUDA] Sistema de UP - by Allanrokeiro - 18.01.2012, 00:44

Forum Jump:


Users browsing this thread: 1 Guest(s)