Jump to content
MakeWebGames

Recommended Posts

Posted

Re: Is it possible to do this?

Assuming you understand what a time stamp is I will do. For the jail and hospital you can just edit the current code. So where it puts them into jail or hospital it will be a number of minutes; a minute contains 60 seconds so all you need to do is multiply the minutes by 60 and add it to the current time stamp, the value will be a long number if you have it right.

 

$jailTime = time() + ($jailTime * 60);

 

Now you will need to check if they are in or not..

 

if($jailTime > time()) {

       echo 'This person is in jail';
       $h->endpage(); 
       die();

}

 

The other ones may need a bit morethinking. Energy,will,nerve and HP will be possible with a "check on page load". The HP will need to be checked when someone attacks which could be done by creating a simple function.

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