Welcome to the Browser-Base Game Zone forums!
I can send you pics of my cocks if you want reference.
I'm not familiar with the code base you are working with, but usually there is a master include file that gets included on all pages.If you add something like the following to the end of it, that might work for you.$player = mysql_execute("select time_left from table medical_ward where playerID = " . $playerID);if($player->time_left > 0){ print "XXXXX";exit();}The exit function will kill any code that is supposed to run after it. So you may need to move this code around to get it to display where you want.Time_Left
<div id="content"><?php$playerdead = $db->execute("SELECT p1.username as killedby, Time_Left FROM medical_ward m INNER JOIN players p1 ON m.Killed_By_ID = p1.id where playerdead_ID = $player->id"); $playerdead1= $playerdead->fetchrow();if($playerdead1 [Time_Left] > 0){ echo "You were put in the hospital by " .$playerdead1[killedby] ."<p>"; echo "You have \n" . $playerdead1[Time_Left] . "\n Minutes remaining";exit();}?>
Why not pay me and then I can build it for you.... jkThe simplest thing is to put a link to the medical page with a flag to skip the check so, your code might look like this...$playerdead = $db->execute("select `Time_Left` from `medical_ward` where `playerdead_ID` =" . $player->id);$playerdead1= $playerdead->fetchrow();echo $playerdead1[Time_Left];if($playerdead1 [Time_Left] > 0 && $_GET['skipDeathCheck'] != 'Y'){ echo "<a href='medical.php?skipDeathCheck=Y'>You're in the Hospital</a>";exit();}Now this is not hack proof...which is why it's a good idea to store game stats in the database.Alternatively you can look at the page name and decide not to show the death Check...this may depend on your version of PHP, but you can try it:$playerdead = $db->execute("select `Time_Left` from `medical_ward` where `playerdead_ID` =" . $player->id);$playerdead1= $playerdead->fetchrow();echo $playerdead1[Time_Left];if($playerdead1 [Time_Left] > 0 && $PHP_SELF != 'medical.php'){ echo "You're in the Hospital";exit();}Since I'm helping you out with this do me a favor and create one post in another section of this forum. I like this forum and I want it to grow.