include("_include-config.php"); include("_include-gevangenis.php"); include("timer_as.php"); if(! check_login()) { header("Location: login.php"); exit; } $dbres = mysql_query("SELECT *,UNIX_TIMESTAMP(`signup`) AS `signup`,UNIX_TIMESTAMP(`online`) AS `online` FROM `[users]` WHERE `login`='{$_SESSION['login']}'"); $data = mysql_fetch_object($dbres); $R1 = $_POST['R1']; $autos = mysql_query("SELECT * FROM `[auto]` WHERE `owner`='{$_SESSION['login']}'"); $aantal = mysql_num_rows($autos); $maxautos = 999999999999999999999999999999; ?> /layout/layoutlayout; ?>/css/css.css"; ?>">
Auto Stelen |
Je hebt nog geen garage gekocht! Ga er hier een kopen! |
Je kunt geen auto's meer stelen, want je garage is vol! |
De code is onjuist! |
"; if($data->auto1 < 160){ mysql_query("UPDATE `[users]` SET `auto1`=`auto1`+'4' WHERE `login`='$data->login'"); } $schade = rand(0,100); if($_POST['R1'] ==1){ $getal = rand(1,100); if($getal <$p1+1){ $geld = rand(1,6); $geld2 = Array("","Seat","Opel","Nissan","Fiat","Ford","Mini"); $geld1 = $geld2[$geld]; mysql_query("INSERT INTO `[auto]`(soort,schade,owner,land) values('$geld','$schade','$data->login','$data->land')"); mysql_query("UPDATE `[users]` SET `auto`=NOW(),`rankvord`=`rankvord`+'$rankvord',`autoP`=`autoP`+1 WHERE `login`='{$_SESSION['login']}'"); mysql_query("UPDATE `[users]` SET `auto`=NOW(), `attack`=`attack`+'100', `defence`=`defence`+'100' WHERE `login`='{$_SESSION['login']}'"); mysql_query("UPDATE `[users]` SET `auto2`=`auto2`+'1' WHERE `login`='$data->login'"); print "Het is gelukt! Je hebt een $geld1 gestolen met $schade procent schade."; } else{ $getal = rand(1,8); if($getal ==1){ mysql_query("UPDATE `[users]` SET `auto`=NOW(),`rankvord`=`rankvord`+'$rankvord',`autoP`=`autoP`+1 WHERE `login`='{$_SESSION['login']}'"); mysql_query("UPDATE `[users]` SET `gevangenis`=NOW(), `gevangenistijd`='300' WHERE `login`='{$_SESSION['login']}'"); mysql_query("UPDATE `[users]` SET `auto`=NOW() WHERE `login`='{$_SESSION['login']}'"); print "Het is mislukt en je zit voor 5 minuten in de gevangenis."; } else{ mysql_query("UPDATE `[users]` SET `auto`=NOW(),`rankvord`=`rankvord`+'$rankvord',`autoP`=`autoP`+1 WHERE `login`='{$_SESSION['login']}'"); mysql_query("UPDATE `[users]` SET `auto`=NOW() WHERE `login`='{$_SESSION['login']}'"); print "Het is mislukt maar je bent ontsnapt aan de politie."; } } } if($R1 ==2){ $getal = rand(1,100); if($getal <$p2+1){ $geld = rand(6,12); $geld2 = Array("","","","","","","Mini","Toyota","Honda","Smart","Volkswagen","Lotus","Bmw"); $geld1 = $geld2[$geld]; mysql_query("UPDATE `[users]` SET `auto`=NOW(),`rankvord`=`rankvord`+'$rankvord',`autoP`=`autoP`+1 WHERE `login`='{$_SESSION['login']}'"); mysql_query("INSERT INTO `[auto]`(soort,schade,owner,land) values('$geld','$schade','$data->login','$data->land')"); mysql_query("UPDATE `[users]` SET `auto`=NOW(), `attack`=`attack`+'100', `defence`=`defence`+'100' WHERE `login`='{$_SESSION['login']}'"); mysql_query("UPDATE `[users]` SET `auto2`=`auto2`+'1' WHERE `login`='$data->login'"); print "Het is gelukt! Je hebt een $geld1 gestolen met $schade procent schade."; } else{ $getal = rand(1,8); if($getal ==1){ mysql_query("UPDATE `[users]` SET `auto`=NOW(),`rankvord`=`rankvord`+'$rankvord',`autoP`=`autoP`+1 WHERE `login`='{$_SESSION['login']}'");mysql_query("UPDATE `[users]` SET `gevangenis`=NOW(), `gevangenistijd`='300' WHERE `login`='{$_SESSION['login']}'"); mysql_query("UPDATE `[users]` SET `auto`=NOW() WHERE `login`='{$_SESSION['login']}'"); print "Het is mislukt en je zit voor 5 minuten in de gevangenis."; } else{ mysql_query("UPDATE `[users]` SET `auto`=NOW(),`rankvord`=`rankvord`+'$rankvord',`autoP`=`autoP`+1 WHERE `login`='{$_SESSION['login']}'");mysql_query("UPDATE `[users]` SET `auto`=NOW() WHERE `login`='{$_SESSION['login']}'"); print "Het is mislukt maar je bent ontsnapt aan de politie."; } } } if($R1 ==3){ $getal = rand(1,100); if($getal <$p3+1){ $geld = rand(12,17); $geld2 = Array("","","","","","","","","","","","","Bmw","Dodge","Jeep","Pontiac","Mercedes","Eagle"); $geld1 = $geld2[$geld]; mysql_query("UPDATE `[users]` SET `auto`=NOW(),`rankvord`=`rankvord`+'$rankvord',`autoP`=`autoP`+1 WHERE `login`='{$_SESSION['login']}'"); mysql_query("INSERT INTO `[auto]`(soort,schade,owner,land) values('$geld','$schade','$data->login','$data->land')"); mysql_query("UPDATE `[users]` SET `auto`=NOW(), `attack`=`attack`+'100', `defence`=`defence`+'100' WHERE `login`='{$_SESSION['login']}'"); mysql_query("UPDATE `[users]` SET `auto2`=`auto2`+'1' WHERE `login`='$data->login'"); print "Het is gelukt! Je hebt een $geld1 gestolen met $schade procent schade."; } else{ $getal = rand(1,8); if($getal ==1){ mysql_query("UPDATE `[users]` SET `auto`=NOW(),`rankvord`=`rankvord`+'$rankvord',`autoP`=`autoP`+1 WHERE `login`='{$_SESSION['login']}'");mysql_query("UPDATE `[users]` SET `gevangenis`=NOW(), `gevangenistijd`='300' WHERE `login`='{$_SESSION['login']}'"); mysql_query("UPDATE `[users]` SET `auto`=NOW() WHERE `login`='{$_SESSION['login']}'"); print "Het is mislukt en je zit voor 5 minuten in de gevangenis."; } else{ mysql_query("UPDATE `[users]` SET `auto`=NOW(),`rankvord`=`rankvord`+'$rankvord',`autoP`=`autoP`+1 WHERE `login`='{$_SESSION['login']}'");mysql_query("UPDATE `[users]` SET `auto`=NOW() WHERE `login`='{$_SESSION['login']}'"); print "Het is mislukt maar je bent ontsnapt aan de politie."; } } } if($R1 ==4){ $getal = rand(1,100); if($getal <$p4+1){ $geld = rand(17,22); $geld2 = Array("","","","","","","","","","","","","","","","","","Eagle","Chrysler","Porsche","Jaguar","Viper","Ferarri"); $geld1 = $geld2[$geld]; mysql_query("UPDATE `[users]` SET `auto`=NOW(),`rankvord`=`rankvord`+'$rankvord',`autoP`=`autoP`+1 WHERE `login`='{$_SESSION['login']}'"); mysql_query("INSERT INTO `[auto]`(soort,schade,owner,land) values('$geld','$schade','$data->login','$data->land')"); mysql_query("UPDATE `[users]` SET `auto`=NOW(), `attack`=`attack`+'100', `defence`=`defence`+'100' WHERE `login`='{$_SESSION['login']}'"); mysql_query("UPDATE `[users]` SET `auto2`=`auto2`+'1' WHERE `login`='$data->login'"); print "Het is gelukt! Je hebt een $geld1 gestolen met $schade procent schade."; } else{ $getal = rand(1,8); if($getal ==1){ mysql_query("UPDATE `[users]` SET `auto`=NOW(),`rankvord`=`rankvord`+'$rankvord',`autoP`=`autoP`+1 WHERE `login`='{$_SESSION['login']}'");mysql_query("UPDATE `[users]` SET `gevangenis`=NOW(), `gevangenistijd`='300' WHERE `login`='{$_SESSION['login']}'"); mysql_query("UPDATE `[users]` SET `auto`=NOW() WHERE `login`='{$_SESSION['login']}'"); print "Het is mislukt en je zit voor 5 minuten in de gevangenis."; } else{ mysql_query("UPDATE `[users]` SET `auto`=NOW(),`rankvord`=`rankvord`+'$rankvord',`autoP`=`autoP`+1 WHERE `login`='{$_SESSION['login']}'");mysql_query("UPDATE `[users]` SET `auto`=NOW() WHERE `login`='{$_SESSION['login']}'"); print "Het is mislukt maar je bent ontsnapt aan de politie."; } } } if($R1 ==5){ $getal = rand(1,100); if($getal <$p5+1){ $geld = rand(23,26); $geld2 = Array("","","","","","","","","","","","","","","","","","","","","","","","Ford Shelby GT500","Mitsubishi Eclipse GT","Audi Le Mans quattro","Jaguar XK"); $geld1 = $geld2[$geld]; mysql_query("UPDATE `[users]` SET `auto`=NOW(),`rankvord`=`rankvord`+'$rankvord',`autoP`=`autoP`+1 WHERE `login`='{$_SESSION['login']}'"); mysql_query("INSERT INTO `[auto]`(soort,schade,owner,land) values('$geld','$schade','$data->login','$data->land')"); mysql_query("UPDATE `[users]` SET `auto`=NOW(), `attack`=`attack`+'100', `defence`=`defence`+'100' WHERE `login`='{$_SESSION['login']}'"); mysql_query("UPDATE `[users]` SET `auto2`=`auto2`+'1' WHERE `login`='$data->login'"); print "Het is gelukt! Je hebt een $geld1 gestolen met $schade procent schade."; } else{ $getal = rand(1,8); if($getal ==1){ mysql_query("UPDATE `[users]` SET `auto`=NOW(),`rankvord`=`rankvord`+'$rankvord',`autoP`=`autoP`+1 WHERE `login`='{$_SESSION['login']}'");mysql_query("UPDATE `[users]` SET `gevangenis`=NOW(), `gevangenistijd`='900' WHERE `login`='{$_SESSION['login']}'"); mysql_query("UPDATE `[users]` SET `auto`=NOW() WHERE `login`='{$_SESSION['login']}'"); print "Toen de auto open wilde breken gingen de sirenes af. De politie kwam snel aan en pakte je op. Je zit een kwartier vast."; } else{ mysql_query("UPDATE `[users]` SET `auto`=NOW(),`rankvord`=`rankvord`+'$rankvord',`autoP`=`autoP`+1 WHERE `login`='{$_SESSION['login']}'");mysql_query("UPDATE `[users]` SET `auto`=NOW() WHERE `login`='{$_SESSION['login']}'"); print "Het is mislukt maar je bent ontsnapt aan de politie."; } } } } print " |