Jump to content
MakeWebGames

Is There Anyway I Could........


-CrAzY-
 Share

Recommended Posts

Make It So You Have To Wait, Say: 1 Minute In Between Doing A Crime, So If Someone Does A Crime Then Clicks On Crime Straight Away It Just Comes Up With: Sorry, You Have To Wait **Minute And **Seconds Before You Can Do Another Crime!, Thanks!

Because I Don't Like Brave Anymore, I Want A Timing, Thanks!

Link to comment
Share on other sites

Re: Is There Anyway I Could........

Well you need a table or a $_SESSION variable that tracks the last time they did a crime. Then when they go to do a crime, you do a simple calculation.

If Lasttime > time() - 60 Then Give notice that they must wait

Else Proceed

Link to comment
Share on other sites

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.

 Share

×
×
  • Create New...