Vice City: Multiplayer

Server Development => Scripting and Server Management => Snippet Showroom => Topic started by: Kewun on Sep 29, 2016, 02:12 PM

Title: Real Time
Post by: Kewun on Sep 29, 2016, 02:12 PM
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
Title: Re: Real Time
Post by: Murdock on Sep 29, 2016, 03:17 PM
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?
Title: Re: Real Time
Post by: Thijn on Sep 29, 2016, 04:33 PM
ROFL