[Ajuda] Salvar o tempo no relogio up
#1

Bom peguei um " FS " no forum samp de relogio up e boa pakas mais a unica coisa й que nгo estб salvando o tempo por exemplo:
eu sai do server e o tempo do relogio up ta por exemplo 2:20 dai quando eu entro dnv ele ta em 9:59 ele se reinicia alguem me ajuda ai?
o relogio up.-.

pawn Код:
new
    Text:ReloginhoUP,
    reloginhoup;
pawn Код:
ReloginhoUP = TextDrawCreate(518.000000, 4.000000, "~y~UP~p~: ~w~10~p~:~w~00");
TextDrawBackgroundColor(ReloginhoUP, 255);
TextDrawFont(ReloginhoUP, 1);
TextDrawLetterSize(ReloginhoUP, 0.460000, 1.799999);
TextDrawColor(ReloginhoUP, -1);
TextDrawSetOutline(ReloginhoUP, 1);
TextDrawSetProportional(ReloginhoUP, 1);
reloginhoup = SetTimer("RelogioUPs", 1000, 1);
pawn Код:
new minu2 = 0;
new TempoReloginho = 59;
new foicount1 = 1;
public RelogioUPs()
{

    minu2++;
    TempoReloginho--;
    new string[50];
    if(minu2>=59)
    {
        minu2 = 0;
        foicount1 ++;
        TempoReloginho = 59;
    }
    if(foicount1 == 1) format(string, 50,"~y~UP~p~: ~w~9~p~:~w~%d", TempoReloginho);
    else if(foicount1 == 2) format(string, 50,"~y~UP~p~: ~w~8~p~:~w~%d", TempoReloginho);
    else if(foicount1 == 3) format(string, 50,"~y~UP~p~: ~w~7~p~:~w~%d", TempoReloginho);
    else if(foicount1 == 4) format(string, 50,"~y~UP~p~: ~w~6~p~:~w~%d", TempoReloginho);
    else if(foicount1 == 5) format(string, 50,"~y~UP~p~: ~w~5~p~:~w~%d", TempoReloginho);
    else if(foicount1 == 6) format(string, 50,"~y~UP~p~: ~w~4~p~:~w~%d", TempoReloginho);
    else if(foicount1 == 7) format(string, 50,"~y~UP~p~: ~w~3~p~:~w~%d", TempoReloginho);
    else if(foicount1 == 8) format(string, 50,"~y~UP~p~: ~w~2~p~:~w~%d", TempoReloginho);
    else if(foicount1 == 9) format(string, 50,"~y~UP~p~: ~w~1~p~:~w~%d", TempoReloginho);
    else if(foicount1 == 10) format(string, 50,"~y~UP~p~: ~w~0~p~:~w~%d", TempoReloginho);
    TextDrawSetString(ReloginhoUP,string);
    TextDrawShowForAll(ReloginhoUP);
    if(foicount1 == 11)
    {
        foicount1 = 1;
        for(new i=0; i<MAX_PLAYERS; i++)
        {
           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") >=10){
dini_IntSet(file, "EXP", dini_Int(file, "EXP")+1);
format(string, sizeof(string), "(~){CCCCFF} Vocк ganhou +1 Exp - [ %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), "(~) Vocк ganhou 1 level [ Level Atual: %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);
}
        }
    }
    return 1;
}
alguem me ajuda a salvar o tempo em que o relogio up parou?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)