29.12.2011, 14:32
Los, I doubt he will find gettime of much use. What he is looking for is a one minute timer which increments a value by one every time it is called and then updates the server time.
What this could look like:
What this could look like:
pawn Код:
new CurrentHour;
public OnGameModeInit()
{
SetTimer("UpdateTime", 60000, true);
}
forward UpdateTime();
public UpdateTime()
{
CurrentHour ++;
if(CurrentHour == 24) CurrentHour = 0;
SetWorldTime(CurrentHour);
}