Jump to content
MakeWebGames

Recommended Posts

Posted

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

Posted

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.

Posted

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? :)

Posted

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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...