Jump to content

timer


#meS

Recommended Posts

hello guys

i'm trying to make a running mode.....

so i made a window with a button

the name of the button is enter game

so when he click enter game it shows him a window

i want to set a timer for that window like after waiting 2 mins game starts and warp him a to a postion after 10 mins of playing

i want it to warp all the players who have the data of "xRUN" to a pos and show them the window

-------------------------------------

i did the window the problem is

the timer how much is 2 mins

and how much is 10 mins?

-----------------------------------

Link to comment

Two minutes is 120000 ticks

setTimer(someFunction,120000,1) 

Ten minutes is 600000 ticks

setTimer(someFunction,600000,1) 

if you didnt already know the third attribute is the number of times the timer should be run that being "1" in the above examples, but if it's 0 then it's infinite.

Edited by Guest
Link to comment

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