shady9980 Posted March 8, 2009 Posted March 8, 2009 Hello all, I am new here when it comes to posting, but i have been lurking around earlier. I find mccodes modding very entertaining and fun, plus i learn a lot from it.. I am not that good with php and i wanted to ask you for help. What i am trying to make is a timer that counts down. Like when you are doing a crime and go to jail. Right now all it shows is the x minutes i have to wait, and it doesnt count down in seconds. Also i have to refresh the page to see when it goes down. I know there has been some posts on this forum on how to make it show as hours, minutes and seconds. But even when i code in that it wont count down of it self, i would still have to refresh the site. I would love if anyone who sees this as an easy thing to do, to help me out <3 I was planning to have a little "You are in jail for "2 hours, 32 minutes, and 21 seconds" above the mainmenu wich ticked down on its own. ofc it would only print when the user was in jail, and if in hospital it would say hospital if you understand. I am sorry for any typos and such.. Thanks in advance i will be checking around for response :-D Quote
POG1 Posted March 8, 2009 Posted March 8, 2009 Re: Mccodes v2 - Jail,Hospital,Courses Timer To have time down to the seconds it will need to use a timestamp which the mccode hospital and jail do not use as standard. To then count down it would need JavaScript to do that. Quote
shady9980 Posted March 9, 2009 Author Posted March 9, 2009 Re: Mccodes v2 - Jail,Hospital,Courses Timer To have time down to the seconds it will need to use a timestamp which the mccode hospital and jail do not use as standard. To then count down it would need JavaScript to do that. Oh ok, like unix? Any chance i could get you into helping me with this? :) Quote
shady9980 Posted March 13, 2009 Author Posted March 13, 2009 Re: Mccodes v2 - Jail,Hospital,Courses Timer Anyone done this before? Quote
Magictallguy Posted March 14, 2009 Posted March 14, 2009 Re: Mccodes v2 - Jail,Hospital,Courses Timer I have a countdown method, and it is in days, hours, minutes, and seconds - but it's not JavaScript. It's entirely PHP. Which means that the user would have to refresh to see the updated time.. Quote
shady9980 Posted March 14, 2009 Author Posted March 14, 2009 Re: Mccodes v2 - Jail,Hospital,Courses Timer Yeah that is what i need, just with the time ticking down without refresh, timestamp etc.. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.