Organized Crime | Je zit in de gevangenis
Je word over $verschil seconden vrijgelaten |
ENDHTML;
}
else{
print "||||||||
";
$ggeld = $data->cash;
$gnaam = $data->login;
$gtype = $data->type;
$gstart = $data->gstart;
$gattack = $data->attack;
$gdefence = $data->defence;
$gorgtime1 = mysql_query("SELECT *,UNIX_TIMESTAMP(`orgtime`) AS `orgtime`,0 FROM `[users]` WHERE `login`='{$_SESSION['login']}'");
$gorgtime = mysql_fetch_object($gorgtime1);
if($_GET['x'] != ""){
if($_GET['x'] == 1){
$dbres = mysql_query("SELECT * FROM `[orgcrime]` WHERE `name1`='$data->login'");
}
elseif($_GET['x'] == 2){
$dbres = mysql_query("SELECT * FROM `[orgcrime]` WHERE `name2`='$data->login'");
}
elseif($_GET['x'] == 3){
$dbres = mysql_query("SELECT * FROM `[orgcrime]` WHERE `name3`='$data->login'");
}
elseif($_GET['x'] == 4){
$dbres = mysql_query("SELECT * FROM `[orgcrime]` WHERE `name4`='$data->login'");
}
$oc = mysql_fetch_object($dbres);
$oc1 = mysql_num_rows($dbres);
if($oc1 ==0){
print "You aren't doing an Organized Crime.";
}
elseif($_GET['x'] == 1){
mysql_query("UPDATE `[users]` SET `gstart`='0' WHERE `login`='$oc->name1'");
mysql_query("UPDATE `[users]` SET `gstart`='0' WHERE `login`='$oc->name2'");
mysql_query("UPDATE `[users]` SET `gstart`='0' WHERE `login`='$oc->name3'");
mysql_query("UPDATE `[users]` SET `gstart`='0' WHERE `login`='$oc->name4'");
mysql_query("DELETE FROM `[orgcrime]` WHERE `name1`='$oc->name1'");
mysql_query("INSERT INTO `[messages]`(`time`,`from`,`to`,`subject`,`message`) values(NOW(),'{$data->login}','$oc->name2','Organized Crime','De leider heeft de Organized Crime geannuleerd. Iedereen is nu al zijn spullen kwijt!')");
mysql_query("INSERT INTO `[messages]`(`time`,`from`,`to`,`subject`,`message`) values(NOW(),'{$data->login}','$oc->name3','Organized Crime','De leider heeft de Organized Crime geannuleerd. Iedereen is nu al zijn spullen kwijt!')");
mysql_query("INSERT INTO `[messages]`(`time`,`from`,`to`,`subject`,`message`) values(NOW(),'{$data->login}','$oc->name4','Organized Crime','De leider heeft de Organized Crime geannuleerd. Iedereen is nu al zijn spullen kwijt!')");
print "Je hebt de Organized Crime geannuleer. Iedereen is nu al zijn spullen kwijt!";
}
elseif($_GET['x'] == 2){
mysql_query("UPDATE `[users]` SET `gstart`='0' WHERE `login`='$data->login'");
mysql_query("UPDATE `[orgcrime]` SET `WEA`='3' WHERE `name2`='$data->login'");
print "You leaved the Organized Crime.";
}
elseif($_GET['x'] == 3){
mysql_query("UPDATE `[users]` SET `gstart`='0' WHERE `login`='$data->login'");
mysql_query("UPDATE `[orgcrime]` SET `BEA`='3' WHERE `name2`='$data->login'");
print "You leaved the Organized Crime.";
}
elseif($_GET['x'] == 4){
mysql_query("UPDATE `[users]` SET `gstart`='0' WHERE `login`='$data->login'");
mysql_query("UPDATE `[orgcrime]` SET `DRA`='3' WHERE `name2`='$data->login'");
print "You leaved the Organized Crime.";
}
}
elseif($gorgtime->orgtime + 43200 > time()){
$tijdwachten = $gorgtime->orgtime+43200-time();
print "You already did an OC the last 12 hours. You need to wait $tijdwachten seconds untill you can do a new OC.";
}
elseif($gstart ==0){
if(!isset($_POST['submit'])) {
$land = $data->City;
print <<You have started an Organized Crime! | Cancel the Organized Crime. ENDHTML; } if(isset($_POST['submit'])) { if($klaar > 2){ $dbres = mysql_query("SELECT * FROM `[users]` WHERE `login`='$WE'"); $WEl = mysql_fetch_object($dbres); $dbres = mysql_query("SELECT * FROM `[users]` WHERE `login`='$BE'"); $BEl = mysql_fetch_object($dbres); $dbres = mysql_query("SELECT * FROM `[users]` WHERE `login`='$DR'"); $DRl = mysql_fetch_object($dbres); if($data->land == $DRl->land || $data->land == $BEl->land || $data->land == $WEl->land){ $autos1 = rand(0,100); $schade = $autos+$autos1; if($schade > 100){ $schade = "100"; } mysql_query("UPDATE `[auto]` SET `schade`='$schade' WHERE `id`='$orgcrime->autoid'"); if($wapens == uzi){ $winnen1 = round($amount*10); $verliezen1 = round($amount*7); $gevangenis1 = round($amount*7); } else if($wapens == m16){ $winnen1 = round($amount*11); $verliezen1 = round($amount*8); $gevangenis = round($amount*8); } else if($wapens == Thompson){ $winnen1 = round($amount*12); $verliezen1 = round($amount*9); $gevangenis = round($amount*8); } $winnen2 = $winnen1; $verliezen2 = $verliezen1; $gevangenis2 = $gevangenis1; if($bommen == tnt){ $winnen3 = $winnen2; $verliezen3 = $verliezen2; $gevangenis3 = $gevangenis2; } else{ $winnen3 = $winnen2+5; $verliezen3 = $verliezen2-2; $gevangenis3 = $gevangenis2-3; } if($aantal ==1){ $winnen4 = $winnen3; $verliezen4 = $verliezen3; $gevangenis4 = $gevangenis3; } else{ $winnen4 = $winnen3+5; $verliezen4 = $verliezen3-2; $gevangenis4 = $gevangenis3-3; } if($autos <10){ $winnen = $winnen4; $verliezen = $verliezen4; $gevangenis = $gevangenis4; } elseif($autos >10 && !$autos > 20){ $winnen = $winnen4+2; $verliezen = $verliezen4-1; $gevangenis = $gevangenis4-1; } elseif($autos >20 && !$autos > 30){ $winnen = $winnen4+3; $verliezen = $verliezen4-1; $gevangenis = $gevangenis4-2; } elseif($autos >30 && !$autos > 40){ $winnen = $winnen4+4; $verliezen = $verliezen4-2; $gevangenis = $gevangenis4-2; } elseif($autos >40 && !$autos > 50){ $winnen = $winnen4+5; $verliezen = $verliezen4-2; $gevangenis = $gevangenis4-3; } elseif($autos >50 && !$autos > 60){ $winnen = $winnen4+6; $verliezen = $verliezen4-3; $gevangenis = $gevangenis4-3; } elseif($autos >60 && !$autos > 70){ $winnen = $winnen4+7; $verliezen = $verliezen4-3; $gevangenis = $gevangenis4-4; } elseif($autos >70 && !$autos > 80){ $winnen = $winnen4+8; $verliezen = $verliezen4-4; $gevangenis = $gevangenis4-4; } elseif($autos >80 && !$autos > 90){ $winnen = $winnen4+9; $verliezen = $verliezen4-4; $gevangenis = $gevangenis4-5; } elseif($autos >90 && $autos != 100){ $winnen = $winnen4+10; $verliezen = $verliezen4-5; $gevangenis = $gevangenis4-5; } elseif($autos ==100){ $winnen = $winnen4+15; $verliezen = $verliezen4-7; $gevangenis = $gevangenis4-8; } if($auto == 1){ $winnen = $winnen4; $verliezen = $verliezen4; $gevangenis = $gevangenis4; } elseif($auto ==2){ $winnen = $winnen4+2; $verliezen = $verliezen4-1; $gevangenis = $gevangenis4-1; } elseif($auto ==3){ $winnen = $winnen4+3; $verliezen = $verliezen4-1; $gevangenis = $gevangenis4-2; } elseif($auto ==4){ $winnen = $winnen4+4; $verliezen = $verliezen4-2; $gevangenis = $gevangenis4-2; } elseif($auto ==5){ $winnen = $winnen4+5; $verliezen = $verliezen4-2; $gevangenis = $gevangenis4-3; } elseif($auto ==6){ $winnen = $winnen4+6; $verliezen = $verliezen4-3; $gevangenis = $gevangenis4-3; } elseif($auto ==7){ $winnen = $winnen4+7; $verliezen = $verliezen4-3; $gevangenis = $gevangenis4-4; } elseif($auto ==8){ $winnen = $winnen4+8; $verliezen = $verliezen4-4; $gevangenis = $gevangenis4-4; } elseif($auto ==9){ $winnen = $winnen4+9; $verliezen = $verliezen4-4; $gevangenis = $gevangenis4-5; } elseif($auto ==10){ $winnen = $winnen4+10; $verliezen = $verliezen4-5; $gevangenis = $gevangenis4-5; } $getal = rand(0, 100); if($getal > $winnen+1){ $geld = rand(100000,10000); $TLG1 = $geld/10000*2000; $WEG1 = $geld/10000*3250; $BEG1 = $geld/10000*2500; $DRG1 = $geld/10000*2250; $TLG = ceil($TLG1); $WEG = ceil($WEG1); $BEG = ceil($BEG1); $DRG = ceil($DRG1); mysql_query("DELETE FROM `[orgcrime]` WHERE `name1`='$gnaam'"); mysql_query("UPDATE `[users]` SET `orgtime`=NOW(), `attack`=`attack`+'1000', `defence`=`defence`+'500' WHERE `login`='$gnaam'"); mysql_query("UPDATE `[users]` SET `orgtime`=NOW(), `attack`=`attack`+'1000', `defence`=`defence`+'750' WHERE `login`='$WE'"); mysql_query("UPDATE `[users]` SET `orgtime`=NOW(), `attack`=`attack`+'1000', `defence`=`defence`+'550' WHERE `login`='$BE'"); mysql_query("UPDATE `[users]` SET `orgtime`=NOW(), `attack`=`attack`+'1000', `defence`=`defence`+'550' WHERE `login`='$DR'"); mysql_query("UPDATE `[users]` SET `gstart`='0' WHERE `login`='$gnaam'"); mysql_query("UPDATE `[users]` SET `gstart`='0' WHERE `login`='$WE'"); mysql_query("UPDATE `[users]` SET `gstart`='0' WHERE `login`='$BE'"); mysql_query("UPDATE `[users]` SET `gstart`='0' WHERE `login`='$DR'"); mysql_query("UPDATE `[users]` SET `cash` =`cash`+'$geld' WHERE `login` = '{$_SESSION['login']}'"); mysql_query("INSERT INTO `[messages]`(`time`,`from`,`to`,`subject`,`message`) values(NOW(),'{$data->login}','$WE','Georganiseerde misdaad','Jullie hebben met succes de Natinale Bank beroofd! De buit bedraagt: $geld dollar. Vraag je leider om jouw deel.')"); mysql_query("INSERT INTO `[messages]`(`time`,`from`,`to`,`subject`,`message`) values(NOW(),'{$data->login}','$BE','Georganiseerde misdaad','Jullie hebben met succes de Natinale Bank beroofd! De buit bedraagt: $geld dollar. Vraag je leider om jouw deel.')"); mysql_query("INSERT INTO `[messages]`(`time`,`from`,`to`,`subject`,`message`) values(NOW(),'{$data->login}','$DR','Georganiseerde misdaad','Jullie hebben met succes de Natinale Bank beroofd! De buit bedraagt: $geld dollar. Vraag je leider om jouw deel.')"); print "Je hebt de Nationale bank met succes beroofd. Je hebt $geld dollar gestolen. Hieronder staat een berekening hoe jij het geld kan verdelen."; print << Leader |
$TLG |
Wapen expert |
$WEG |
Bom expert |
$BEG |
Driver |
$DRG |
|
Your Job
You are the weapons expert for your team, which requires you to buy and distribute the weapons. There are three weapons to choose from. The more expensive weapons will give you a better chance in successfully completeing the mission.
Weapon
Amount:
Explosive Expert
Explosives TNT kost $2500,- en C4 kost $5000,-
Aantal
Driver
Auto id: