KraZ Posted November 30, 2012 Share Posted November 30, 2012 I haven't got any code yet because im not sure how I would go about doing this but could someone type a basic server and client side code on how you would set a serverside timer and when someone joins it displays that timer to them? I tried this once but the timer was reset everytime someone new joins, that is because I had the timer clientside, could someone just do this basic code for me please, I could do the rest like dxText etc... Link to comment
Smart. Posted November 30, 2012 Share Posted November 30, 2012 What do you mean? You want every player to have his own timer and show the timer to that player? EDIT: This can be made without setting a timer server sided. Link to comment
Castillo Posted November 30, 2012 Share Posted November 30, 2012 You could use server side text functions: https://wiki.multitheftauto.com/wiki/Ser ... _functions You can also make an element and set to that element the time left every second. Then get it client side and draw it. Server side: createElement setElementData getTimerDetails setTimer Client side: getElementByID getElementData 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