_Ricky_ Posted April 24, 2009 Posted April 24, 2009 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 Quote
Uridium Posted April 24, 2009 Posted April 24, 2009 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 Quote
bigm Posted April 24, 2009 Posted April 24, 2009 Re: attack.php help Maybe set a timer on how soon after attacking they can attack again ? 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.