ztime = -1;
?!(local server) : goto "wait"
ztime = random 24
weather = random 1
fog = random 0.8
publicvariable "weather"
publicvariable "fog"
publicvariable "ztime"
#wait
@(ztime != -1)
skiptime ztime
0 setovercast weather
0 setfog fog
; dont forget a gamelogic named "server"
Found this somewhere on HD
Maybe it's what U need, don't know the author...
*edit* : hmm...this script is for random time too I think...