[Ajuda] Uma pequena ajuda no relogio up
#1

bom meu relogio up conta de 10 minuto igual a cada experiencia, mais e bugado quando eu saio do samp ele fica contando dai ele fica desagrupado com a experiencia Exemplo:
o relogio up ta em 9:50 quando eu sai e volta ele ta em 3:50 um exemplo so queria que ele fica-se salvado o tempo que ele paro e dps voltar tipo se eu sair 9:50 e eu sair e voltar tem que continuar contando do 9:50 alguem ajuda? REPLY
Reply
#2

https://sampforum.blast.hk/showthread.php?tid=435450
Reply
#3

desisto rsrsrs
Reply
#4

A cada 10 minutos o player tem que upar de nнvel ?
Reply
#5

pawn Код:
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") >=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);
tipo isso a cada 10 minuto ele ganha 1 de experiencia ajuntando 5 de EXP ele ganha 1 level entendeu? mais o relogio n fica igual quando eu fecho o samp ele tipo fica contando ainda
Reply
#6

Manda o sistema inteiro.
Reply
#7

Cara a unica coisa era que salva-se de onde o relogio up parou se ele parou nos 2:20 e eu relogar ele tem que estar em 2:20 ainda entendeu? Skype Thiago.andre31
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)