Gungneer Posted April 20, 2011 Share Posted April 20, 2011 As far as I've been led to believe, MTA 1.05 doesn't have syncronized in game time for all users, it's based on when the server was started and the users client, etc..? I have also been led to believe this is going to chance in MTA 1.1, however, I was wondering if it would be possible using a timer? For example, in the server file, have a timer set to say every 10 seconds or so which triggers a client event setting the clients clock to the time of the server? Thanks for any help. Link to comment
NeXTreme Posted April 23, 2011 Share Posted April 23, 2011 It could work, however I never tried it. Try making something like that and get a friend on your server. See if you both have the same time. Oh and maybe you could just set the clock when the player joins, cause the time should run on it's own from there. Link to comment
Gungneer Posted April 23, 2011 Author Share Posted April 23, 2011 From what I've heard, game time progresses based on how much you're lagging and shit, so say that means if I was lagging and he wasn't, he would progress faster. But what I was thinking was with the above mentioned method, it would force a client to automatically update every so often so lag will make little to no difference. Link to comment
MCvarial Posted April 24, 2011 Share Posted April 24, 2011 Why wouldn't the game time be synced? And why would the time go faster if someone has lag? 1 minute, is 1 minute. And if you really want to sync time the time might be a little of like 60ms, i.e. the ping of the player and you could compensate for that using getPlayerPing() Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now