View Single Post
  #8  
Old 01-08-2005, 10:53 PM
Velox Cruentus Velox Cruentus is offline
Registered User
Velox Cruentus's Avatar
Join Date: Dec 2004
Location: Quebec, Canada
Posts: 465
Velox Cruentus is on a distinguished road
Send a message via ICQ to Velox Cruentus Send a message via AIM to Velox Cruentus
PHP Code:
//#CLIENTSIDE
if (created){
  
timeshift strtofloat(#s(serverr.timeshift));
  
gmt 0;
  
timeout 5;
}
if (
timeout){
  
totalmin int(timevar 12) + timeshift gmt 60;
  
setplayerprop #c,Hour: #v(int(totalmin/60)%24):#v(totalmin);
  
timeout 5;

Breifly. That would work to simulate realtime. Basically, timeshift is the amount of minutes you must add to the current timevar to get the right time (find this manually), then you have gmt, whom would change the amount of hours, depending on your time zone. Then you just need to treat it like virtual time.
Reply With Quote