Jump to content
MakeWebGames

Recommended Posts

Posted

i have a option to pay people out of the hospital....ok so they are opening up a new window...attacking in one window then leaveing that page alone...useing the other window to pay them out of the hospital...then clicking back on the attack page and attacking again when someone has low health, below half...and i have the else if ($odata['hp'] < $odata['maxhp']/2) so thats not the problem...thanks up front for any help

Posted

Re: attack.php help

what you could do is add a Query to the following pages jail.php and hospital.php

Create a new SQL

ALTER TABLE users ADD nocache INT (11) NOT NULL DEFAULT 0;

and place this in the above pages

 

if($ir['nocache']==1) { die("<h2>Your Currently Engaged in a Fight"); }

 

open up attack take and put

$db->query("UPDATE users SET nocache=1 WHERE userid=$userid");

 

 

 

Now in attackwin and attackbeat and attacklose place

 

 

$db->query("UPDATE users SET nocache=0 WHERE userid=$userid");

 

that will stop them from using 2 pages

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