I have written a simple jailbreak mod for the Jail mod that was posted here
<?
//Jailbreak
//DM Entertainment copyright 2006
session_start();
require "global_func.php";
if($_SESSION['loggedin']==0) { header("Location: login.php");exit; }
$userid=$_SESSION['userid'];
require "header.php";
$h = new headers;
$h->startheaders();
include "mysql.php";
global $c;
$is=mysql_query("SELECT u.*,us.* FROM users u LEFT JOIN userstats us ON u.userid=us.userid WHERE u.userid=$userid",$c) or die(mysql_error());
$ir=mysql_fetch_array($is);
check_level();
$h->userdata($ir,$lv,$fm,$cm);
$h->menuarea();
if(rand(1,100) <= 50)
{
print "You successfully broke out of the County Jail.";
mysql_query("UPDATE users SET jail=0 WHERE userid=$userid",$c);
}
else
{
$jailtime=(int) rand(1,30);
print "You were caught attempting to break out of the County Jail.
The officers beat you for a while and added $jailtime minutes to your sentence.";
mysql_query("UPDATE users SET jail=jail+$jailtime WHERE userid=$userid", $c);
mysql_query("UPDATE users SET jailreason='Caught attempting to escape' WHERE userid=$userid", $c);
}
?>
then go into your header.php file and find:
$q=mysql_query("SELECT * FROM ads ORDER BY rand() LIMIT 1",$c);
if(mysql_num_rows($q))
and insert this before it:
if ($ir['jail'] > 0)
print ("{$ir['username']} You are in Jail for {$ir['jail']} minutes. You gotta get better at this. Attempt escape");
You can make it easier or more difficult to escape by changing the 50 to whatever you want in this line:
if(rand(1,100) <= 50)
The higher the number the harder it is to get out.
I know it works on V1.1... that is what I wrote it for. Hope you find it helpful. It was easy and I guess you all can code it but I put it here anyway.