Scripting Moderators ds1-e Posted April 20, 2019 Scripting Moderators Share Posted April 20, 2019 (edited) Hey. I need to send timer details from client-side to server-side. (Need to save it, and then load if player join again.) What should i do? 1. There's a way to send triggerServerEvent within onClientPlayerQuit? I've have tested it, but seems like this wouldn't work. 2. Sync timer in client and server side? Probably not best way so far, but i am not sure. 3. Or there's other, better way? Edited April 20, 2019 by majqq Link to comment
Investor Posted April 21, 2019 Share Posted April 21, 2019 onClientPlayerQuit isn't called for the localPlayer. You should use onClientResourceStop (that will call when the resource is either stopped, or the client disconnects and the resource stops on his end). 1 Link to comment
Scripting Moderators ds1-e Posted April 21, 2019 Author Scripting Moderators Share Posted April 21, 2019 3 hours ago, Investor said: onClientPlayerQuit isn't called for the localPlayer. You should use onClientResourceStop (that will call when the resource is either stopped, or the client disconnects and the resource stops on his end). I'll try it out. Link to comment
nxFairlywell Posted April 21, 2019 Share Posted April 21, 2019 How you should save it ? i think you need to save it by the player serial because you could get the details by player serial if he was joined the server. Or ! you may use an account data. How you want to save it? Link to comment
Scripting Moderators ds1-e Posted April 21, 2019 Author Scripting Moderators Share Posted April 21, 2019 2 hours ago, NX_CI said: How you should save it ? i think you need to save it by the player serial because you could get the details by player serial if he was joined the server. Or ! you may use an account data. How you want to save it? SQLite 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