Jump to content
MakeWebGames

Mad Bomber ( Defuse this or have blue eyes one blew this way...)


Recommended Posts

Posted

<?php

include "globals.php";

//------------------------------------------------------------------------//

// - Mad Bomber Mod free - by virtualshogun //

//----------------------------------------------------------------------//

if($ir['jail'] or $ir['hospital']) { die("This page cannot be accessed while in jail or hospital."); }

print "<h1>The Bomb Stop</h1>";

print "<hr />";

print "

<font color=red>Red Wire</font>

<font color=blue>Blue Wire</font>

<font color=green>Green Wire</font>

";

print "<hr />";

if($_GET['c'] == 1) {

$chance = rand(1,3);

if ($chance == 1) {

$hospital=(int) rand(1,10);

$loseruser = $ir['userid'];

$hospreason = 'Its the bomb!';

$db->query("UPDATE users SET hospital=10 WHERE userid=$userid",$c);

$db->query("UPDATE users SET hospreason='$hospreason' WHERE userid=$userid",$c);

die ("you snip the first wire and well this dosent end well...

");

}

if ($chance == 2) {

$jail=(int) rand(5,10);

$loseruser = $ir['userid'];

$jail_reason = 'Suspected Bomber!';

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

$db->query("UPDATE users SET jail_reason='$jail_reason' WHERE userid=$userid",$c);

die ("!You go to disarm the bomb and get a tap on the shoulder the police think you set the bomb!

");

}

if ($chance == 3) {

$gained=rand(20,90)*$ir[level];

print "<font color=green>You cut the right wire and get rewarded with $$gained dollars </font>";

$db->query("update users set money=money+$gained where userid=$userid",$c);

}

}

if($_GET['c'] == 2) {

$chance = rand(1,3);

if ($chance == 1) {

$hospital=(int) rand(1,10);

$loseruser = $ir['userid'];

$hospreason = 'Blown up not blow up doll!';

$db->query("UPDATE users SET hospital=10 WHERE userid=$userid",$c);

$db->query("UPDATE users SET hospreason='$hospreason' WHERE userid=$userid",$c);

die ("you snip the second wire and you now know what it feels like to have blue eyes on this way one that way...

");

}

if ($chance == 2) {

$jail=(int) rand(5,10);

$loseruser = $ir['userid'];

$jail_reason = 'Mad bomber!';

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

$db->query("UPDATE users SET jail_reason='$jail_reason' WHERE userid=$userid",$c);

die ("!You go to disarm the bomb and get a tap on the shoulder the police think you set the bomb!

");

}

if ($chance == 3) {

$gained=rand(20,90)*$ir[level];

print "<font color=green>You cut the right wire and get rewarded with $$gained dollars </font>";

$db->query("update users set money=money+$gained where userid=$userid",$c);

}

}

if($_GET['c'] == 3) {

$chance = rand(1,3);

if ($chance == 1) {

$hospital=(int) rand(1,10);

$loseruser = $ir['userid'];

$hospreason = 'Blown up not blow up doll!';

$db->query("UPDATE users SET hospital=10 WHERE userid=$userid",$c);

$db->query("UPDATE users SET hospreason='$hospreason' WHERE userid=$userid",$c);

die ("you snip the second wire and you now know what it feels like to have blue eyes on this way one that way...

");

}

if ($chance == 2) {

$jail=(int) rand(5,10);

$loseruser = $ir['userid'];

$jail_reason = 'Mad bomber!';

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

$db->query("UPDATE users SET jail_reason='$jail_reason' WHERE userid=$userid",$c);

die ("!You go to disarm the bomb and get a tap on the shoulder the police think you set the bomb!

");

}

if ($chance == 3) {

$gained=rand(20,90)*$ir[level];

//Adjust the money above ;)

print "<font color=green>You cut the right wire and get rewarded with $$gained dollars </font>";

$db->query("update users set money=money+$gained where userid=$userid",$c);

}

}

EOF;

$h->endpage();

?>

Posted

to each person their own, Im curious what you mean why would i have this on a site, it was a mod made just for the kicks of it. don't like it dont use it pretty simple. free mod that works and its not good enough for free lol.

Posted
Meh I won't use it.

 

Could you please use

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

tag's round your code please. It makes it easier for user's to read

Maybe you should explain why you wouldn't use it?

Seems a waste of posts if you don't give a explanation in the first post.

Posted
Meh I won't use it.

 

Could you please use

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

tag's round your code please. It makes it easier for user's to read

Maybe you should explain why you wouldn't use it?

Seems a waste of posts if you don't give a explanation in the first post.

I just wouldn't >,< Don't see a point, if you do please enlighten me

Posted

I only see a few problems with this mod your using Jail and hosp as a Rand yet your not using the rand when they goto hosp or jail was alos a bit confused about the EOF; as its not being used anywhere else...

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