serverside:
PHP Code:
if (playertouchsme) {
this.temp = timevar2;
this.hours = int(this.temp/(60*60))%24;
this.mins = int((this.temp/60)%60);
this.secs = int((this.temp)%60);
message #v(this.hours)H:#v(this.mins)M:#v(this.secs)S;
}
that should always give the current GMT time (minutes seems to be inacurate
code stolen from ZeroTrack's post:
http://forums.graalonline.com/forums...7&page=2&pp=15
there is already a clock availible, timevar2
edit: it seems to be inaccurate by like a half hour though
Quote:
|
Originally Posted by Stefan
- the timevar2 variable is improved: it is now displaying the unix time (seconds since 1970/1/1), with nanosecond-precision (the old timevar2 variable was very precise but was reset when the server was restarted)
|