Jump to content

Hospital Escape for V2


Recommended Posts


include "globals.php";

if($ir['energy'] < 10)


die("Sorry, it costs 10 energy to help someone escape from hospital. You only have {$ir['energy']} energy. Come back later.");




die("You cannot help escape people from hospital while in jail.");




die("You cannot help escape people from hospital while in hospital.");


$_GET['ID']=abs((int) $_GET['ID']);

$r=$db->fetch_row($db->query("SELECT * FROM users WHERE userid={$_GET['ID']}"));



die("Invalid user");




die("That user is not in hospital!");



$chance=min(($ir['crimexp']/$mult)*50+1, 95);

if(rand(1,100) < $chance)



print "You successfully helped {$r['username']}escape out of hospital.

> Back";

$db->query("UPDATE users SET crimexp=crimexp+{$gain} WHERE userid=$userid");

$db->query("UPDATE users SET jail=0 WHERE userid={$r['userid']}");

event_add($r['userid'], "{$ir['username']} busted you out of jail.", $c);




print "While trying to help escape your friend from hospital, a Cop spotted you and dragged you into jail yourself. Unlucky!

> Go to Jail";

$time=min($mult, 100);

$db->query("UPDATE users SET jail=$time, jail_reason='Caught trying to help escape from hospital {$r['username']}' WHERE userid=$userid");

event_add($r['userid'], "{$ir['username']} was caught trying to bust you out of jail.", $c);





heres anouther new mod i made Escape From Hospital you can help spmeone escape from the hospital if you get caught you will be sent to JAIL

[Hospital Escape] add this into the Hospital for the link to help spmeone escape from the Hospital

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

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