pawn Код:
minute++;
if(minute == 60)
{
minute = 0;
hour++;
gamehour++;
}
if(hour == 12 && minute == 0)
{
if(IsMorning == true){IsMorning = false;}
else{IsMorning = true;}
}
if(hour == 13){hour = 1;}
if(gamehour == 24){gamehour = 0;}
if(gamehour == 0 && minute == 0){day++;}
if(day == 7){day = 0;}
SetWorldTime(gamehour);