View Single Post
  #9  
Old 11-23-2009, 09:46 PM
Riot Riot is offline
Delteria Management
Join Date: Nov 2003
Location: Seminole County, Florida
Posts: 280
Riot is on a distinguished road
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 [p60;
  
temp.hours int(timevar 60) [p24;
  
temp.display =  (temp.hours 10 "0" "") @ temp.hours ":" @ (temp.minutes 10 "0" "") @ temp.minutes;

  
with (findimg(200)) {
    
text "Time: " temp.display;
    
font "Arial";
    
5;
    
5;
    
layer 4;
  }
  
  
setTimer(5);

This will display the time in the top-left corner of your screen using timevar as a synchronized timer.
Reply With Quote