Thanks again, although I can't understand the use of "bc_all", but I will check and anything is already "MVP" and close the topic ...
I waited until 00:00 and it didn't work, can you take a look at my script? Well, the event is something that I'm creating so that the players on my server are only allowed to play 5 hours a day on my server. .
Script:
- script penalidadeconometrada -1,{
//86400000 // 1 dia
//18000000 // 5 horas
//3600000 // 1 hora
//60000 // 1 minuto
//1000 // 1 segundo
// ADD TIMER
OnClock0000:
set CHARHMC, CHARHMC = 4;
set CHARMMC, CHARMMC = 59;
set CHARSMC, CHARSMC = 59;
set VerifiqueEventMC, VerifiqueEventMC = 0;
set CallCidadeEventMC, CallCidadeEventMC = 0;
announce "A Maldição do Conometro Foi Removida...", bc_all;
end;
OnPCLoginEvent:
if(PenalidadeConometrada < 1){
PenalidadeConometrada++;
set CHARHMC, CHARHMC = 4;
set CHARMMC, CHARMMC = 59;
set CHARSMC, CHARSMC = 59;
addtimer 3600000, strnpcinfo(3) + "::OnHoras";
addtimer 60000, strnpcinfo(3) + "::OnMinutos";
addtimer 1000, strnpcinfo(3) + "::OnSegundos";
addtimer 1000, strnpcinfo(3) + "::OnVerifiqueEvent";
end;
}
else
addtimer 3600000, strnpcinfo(3) + "::OnHoras";
addtimer 60000, strnpcinfo(3) + "::OnMinutos";
addtimer 1000, strnpcinfo(3) + "::OnSegundos";
addtimer 1000, strnpcinfo(3) + "::OnVerifiqueEvent";
end;
// Labels ADDTIMER
OnHoras: // Hours
if (CHARHMC > 0){
CHARHMC--;
deltimer strnpcinfo(3) + "::OnHoras";
addtimer 3600000, strnpcinfo(3) + "::OnHoras";
end;
}
else
deltimer strnpcinfo(3) + "::OnHoras";
addtimer 3600000, strnpcinfo(3) + "::OnHoras";
end;
OnMinutos: // Minutes
if (CHARHMC == 0 && CHARMMC == 0 && CHARSMC == 0){
deltimer strnpcinfo(3) + "::OnMinutos";
addtimer 60000, strnpcinfo(3) + "::OnMinutos";
}
else
if (CHARMMC < 0){
set CHARMMC, CHARMMC = 59;
deltimer strnpcinfo(3) + "::OnMinutos";
addtimer 60000, strnpcinfo(3) + "::OnMinutos";
end;
}
else
CHARMMC--;
deltimer strnpcinfo(3) + "::OnMinutos";
addtimer 60000, strnpcinfo(3) + "::OnMinutos";
end;
OnSegundos: // Seconds
if (CHARHMC == 0 && CHARMMC == 0 && CHARSMC == 0){
set VerifiqueEventMC, VerifiqueEventMC = 1;
deltimer strnpcinfo(3) + "::OnSegundos";
addtimer 1000, strnpcinfo(3) + "::OnSegundos";
}
else
if (CHARSMC < 0){
set CHARSMC, CHARSMC = 59;
deltimer strnpcinfo(3) + "::OnSegundos";
addtimer 1000, strnpcinfo(3) + "::OnSegundos";
end;
}
else
CHARSMC--;
deltimer strnpcinfo(3) + "::OnSegundos";
addtimer 1000, strnpcinfo(3) + "::OnSegundos";
end;
OnVerifiqueEvent: // A cada 1 segundo online verifica se está com CallCidadeEventMC e OnVerifiqueEventMC Ligado == 1
if (CallCidadeEventMC == 1){
deltimer strnpcinfo(3) + "::OnVerifiqueEvent";
addtimer 1000, strnpcinfo(3) + "::OnVerifiqueEvent";
end;
}
else
if (VerifiqueEventMC == 1){
CallCidadeEventMC++;
warp "genese",214,168;
deltimer strnpcinfo(3) + "::OnVerifiqueEvent";
addtimer 1000, strnpcinfo(3) + "::OnVerifiqueEvent";
end;
}
else
deltimer strnpcinfo(3) + "::OnVerifiqueEvent";
addtimer 1000, strnpcinfo(3) + "::OnVerifiqueEvent";
end;
}