03.06.2014, 03:49
you can also do this (just remembering)
pawn Код:
//
minute++;
if(minute == 60)
{
minute = 0;
hour++;
gamehour++;//define it with the minute thingy
}
if(hour == 12 && minute == 0)
{
if(IsMorning == true){IsMorning = false;}
else{IsMorning = true;}
}
if(hour == 13){hour = 1;}
if(gamehour > 23){gamehour = 0;}
SetWorldTime(gamehour, minute);// for detailed maybe