Jump to content

Can someone help me?


KraZ

Recommended Posts

Posted

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...

Posted

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.

lol

Posted

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 

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...