#meS Posted June 24, 2015 Share Posted June 24, 2015 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
Dazee Posted June 24, 2015 Share Posted June 24, 2015 (edited) 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 June 24, 2015 by Guest Link to comment
zocken212 Posted June 24, 2015 Share Posted June 24, 2015 @upper poster: That is more than wrong.. 2k ms = 2 seconds, 10k ms = 10 seconds 2 minutes (120 seconds) = 120000 ms 10 minutes (600 seconds) = 600000 ms (or simply do this: seconds * 1000) Link to comment
Walid Posted June 24, 2015 Share Posted June 24, 2015 Before you start asking questions , use google there is 1000 website. Convert Minutes to Milliseconds Link to comment
#meS Posted June 24, 2015 Author Share Posted June 24, 2015 lp = getLocalPlayer() function runt() if getElementData(lp,"RUN") == true then guiSetVisible(GUIEditor.window[8],false) end end setTimer(runt,120000,1) not working ;( Link to comment
Walid Posted June 24, 2015 Share Posted June 24, 2015 120,000 Milliseconds = 2 Minutes (be patient). Link to comment
#meS Posted June 24, 2015 Author Share Posted June 24, 2015 i know but the window is not getting off after 2 mins D: Link to comment
Walid Posted June 24, 2015 Share Posted June 24, 2015 i know but the window is not getting off after 2 mins D: post full code here. Link to comment
#meS Posted June 24, 2015 Author Share Posted June 24, 2015 (edited) REMOVED about the data of run it's in other file Edited June 24, 2015 by Guest Link to comment
#meS Posted June 24, 2015 Author Share Posted June 24, 2015 okay never mind can u post a code that warp all the players who have the data of "RUN" when one of them hit a marker? Link to comment
iMr.Dawix~# Posted June 25, 2015 Share Posted June 25, 2015 okay never mind can u post a code that warp all the players who have the data of "RUN" when one of them hit a marker? addEventHandler -- "onMarkerHit" loop -- for ..... do getElementsByType -- player getElementData -- "RUN" setElementPosition 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