Am o problema cu resetarea vreau sa se reseteze la toti playeri chiar daca nu sunt online ca daca is merge am testat si cu alta ora si cu verificare daca e connectat / logat si fara si tot la fel e eu vreau si daca nu is logati cum pot face asta?
if(hour == 0) {
foreach(Player, i) {
if(IsPlayerConnected(i) && gPlayerLogged == 1)
{
PlayerInfo[pQuestZ] = 0;
PlayerInfo[pQuestZ2] = 0;
PlayerInfo[pQuestZProgres] = 0;
PlayerInfo[pQuestZProgres2] = 0;
Update(i,pQuestZx);
Update(i,pQuestZ2x);
Update(i,pQuestZProgresx);
Update(i,pQuestZProgres2x);
GiveQuest(i);
GiveQuest2(i);
SendClientMessageToAll(COLOR_YELLOW, "(Quests) {FFFFFF}Misiunile au fost resetate cu succes, tastati comanda /quests pentru a vedea ce misiuni a-ti primit!");
}
}
}
PS:Am incecat si fara verficarile daca e logat / connectat si tot la fel!
PS: Functia este pusa la SyncUp folosesc gm gen bigzone!