If you use 1 timevar tick is equal to 1 hour, an in-game day will take 2 minutes.
It would probably be better to use timevar as minutes:
(replace [p] with a percent sign....)
PHP Code:
//#CLIENTSIDE
function onCreated() {
onTimeout();
}
function onTimeout() {
temp.minutes = timevar [p] 60;
temp.hours = int(timevar / 60) [p] 24;
temp.display = (temp.hours < 10 ? "0" : "") @ temp.hours @ ":" @ (temp.minutes < 10 ? "0" : "") @ temp.minutes;
with (findimg(200)) {
text = "Time: " @ temp.display;
font = "Arial";
x = 5;
y = 5;
layer = 4;
}
setTimer(5);
}
This will display the time in the top-left corner of your screen using timevar as a synchronized timer.