Real Time

Started by Kewun, Sep 29, 2016, 02:12 PM

Previous topic - Next topic

Kewun

function onScriptLoad() {
  NewTimer("update",1,0)
}
function update() {
  SetTime ( date().hour, date().min );
}

As in topic title, this snippet changes your server time to real time

A good snippet for roleplay rpg servers

Murdock

So why you thought it was a good idea to spam every player with time packets every 1 millisecond if you could set the time once, and apply a realistic timerate?

Thijn