Nieuw lid |
|
ik heb het bestad misdaad gemaakt:
werkt helemaal goed maar nu moet het zow worden dat je om de 2 min een misdaat kan plegen.
dit is de code :
<head>
<script language="JavaScript">
var left = 0;
function movein(){
if (document.layers) {
document.layers['message'].pageX = window.pageXOffset + left;
left+=step;
if(left<moveto){ setTimeout('movein()',speed); }
else { setTimeout('closemessage()',hide); }
}
else{
document.getElementById('message').style.left=left+'px';
left+=step;
if(left<moveto){ setTimeout('movein()',speed); }
else { setTimeout('closemessage()',hide); }
}
}
function closemessage(){
if (document.layers) {document.layers['message'].visibility='hidden';}
else{document.getElementById('message').style.visibility='hidden';}
}
</script>
<style type="text/css" media="screen">
#obmessage #message {top:120px; border:1px solid black;
width:200px;background-color:lime;padding:4px;
position:absolute;}
</style>
<head>
<title>Cyber-War</title>
<link rel="stylesheet" type="text/css" href="<?php echo ($_COOKIE['v'] == 2) ? "css-v2.css" : "css-v1.css"; ?>">
</head>
<body style="background: #000000; margin: 0px;">
<table width=100%>
<center>
<FORM METHOD=post ACTION="">
<table align="center" width=100%>
<tr><td class="subTitle"><b>Misdaad</b></td></tr>
<tr><td class="mainTxt">
<?php
if ($_SERVER['REQUEST_METHOD'] == 'POST') {
$getal = rand("0","5");
if($misdaad == "velg" AND $getal == "1" || $getal == "3"){
$data->cash +=500;
echo('<script>alert("gelukt! je hebt de velgen van een auto gejat , je hebt $500 erbij"); location.href("?pagina=crime.php");</script>');
mysql_query("UPDATE `[users]` SET `bank`={$data->bank},`cash`={$data->cash} WHERE `login`='{$data->login}'");
print " <tr><td class=\"mainTxt\">Het bedrag is overgemaakt</td></tr>\n";
}
else if($misdaad == "velg" AND $getal == "0" || $getal == "2" || $getal == "4" || $getal == "5"){
echo('<script>alert("Helaas is het mislukt"); location.href("?pagina=crime.php");</script>');
}
else if($misdaad == "breek_in" AND $getal == "1" || $getal == "3"){
$data->cash +=1000;
echo('<script>alert("gelukt! je hebt ingebroken en voor $1000 gejat"); location.href("?pagina=crime.php");</script>');
mysql_query("UPDATE `[users]` SET `bank`={$data->bank},`cash`={$data->cash} WHERE `login`='{$data->login}'");
}
else if($misdaad == "breek_in" AND $getal == "0" || $getal == "2" || $getal == "4" || $getal == "5"){
echo('<script>alert("Jammer, er waren te goede sloten"); location.href("?pagina=crime.php");</script>');
}
else if($misdaad == "zakkenrollen" AND $getal == "1" || $getal == "3"){
$data->cash +=100;
echo('<script>alert("gelukt! het viel niet op dat je iemands portomonee pakte $100"); location.href("?pagina=crime.php");</script>');
mysql_query("UPDATE `[users]` SET `bank`={$data->bank},`cash`={$data->cash} WHERE `login`='{$data->login}'");
}
else if($misdaad == "zakkenrollen" AND $getal == "0" || $getal == "2" || $getal == "4" || $getal == "5"){
echo('<script>alert("Helaas, de politie kwam er in de verte aan, volgende keer beter"); location.href("?pagina=crime.php");</script>');
}
else if($misdaad == "kassa" AND $getal == "1" || $getal == "3"){
$data->cash +=2000;
echo('<script>alert("gelukt! de cassiare was zo bang dat je de kassa meteen kreeg $2000"); location.href("?pagina=crime.php");</script>');
mysql_query("UPDATE `[users]` SET `bank`={$data->bank},`cash`={$data->cash} WHERE `login`='{$data->login}'");
}
else if($misdaad == "kassa" AND $getal == "0" || $getal == "2" || $getal == "4" || $getal == "5"){
echo('<script>alert("Helaas de kassa was goed beveiligd"); location.href("?pagina=crime.php");</script>');
}
else if($misdaad == "auto" AND $getal == "1" || $getal == "3"){
$data->cash +=4000;
echo('<script>alert("gelukt! er zat geen beveiliging op de auto en je kon hem dus zo meenemen! Daarna heb je de auto verkocht voor 4500!"); location.href("?pagina=crime.php");</script>');
mysql_query("UPDATE `[users]` SET `bank`={$data->bank},`cash`={$data->cash} WHERE `login`='{$data->login}'");
}
else if($misdaad == "auto" AND $getal == "0" || $getal == "2" || $getal == "4" || $getal == "5"){
echo('<script>alert("Helaas de alarm ging af..."); location.href("?pagina=crime.php");</script>');
}
else if($misdaad == "dreigen" AND $getal == "1" || $getal == "3"){
$data->cash +=1500;
echo('<script>alert("gelukt! je dreigde hem om zijn geld te geven aan jou, hij had $1500 bij zich!"); location.href("?pagina=crime.php");</script>');
mysql_query("UPDATE `[users]` SET `bank`={$data->bank},`cash`={$data->cash} WHERE `login`='{$data->login}'");
}
else if($misdaad == "dreigen" AND $getal == "0" || $getal == "2" || $getal == "4" || $getal == "5"){
echo('<script>alert("Helaas hij rende weg en je kon um niet optijd pakken"); location.href("?pagina=crime.php");</script>');
}
else if($misdaad == "bankberoven" AND $getal == "1" || $getal == "3"){
$data->cash +=7500;
echo('<script>alert("gelukt! je had een kluis mee genomen en er zat $7500 erin"); location.href("?pagina=crime.php");</script>');
mysql_query("UPDATE `[users]` SET `bank`={$data->bank},`cash`={$data->cash} WHERE `login`='{$data->login}'");
}
else if($misdaad == "bankberoven" AND $getal == "0" || $getal == "2" || $getal == "4" || $getal == "5"){
echo('<script>alert("Helaas de kluis was goed beveiligd"); location.href("?pagina=crime.php");</script>');
}
else if($misdaad == "schooien" AND $getal == "1" || $getal == "3"){
$data->cash +=50;
echo('<script>alert("gelukt! de mensen in de stad waren zo gek om je een beetje geld te geven! $50"); location.href("?pagina=crime.php");</script>');
mysql_query("UPDATE `[users]` SET `bank`={$data->bank},`cash`={$data->cash} WHERE `login`='{$data->login}'");
}
else if($misdaad == "schooien" AND $getal == "0" || $getal == "2" || $getal == "4" || $getal == "5"){
echo('<script>alert("Helaas iedereen vond dat je erg vies er uit zag dus niemand wilde geld geven"); location.href("?pagina=crime.php");</script>');
}
else if($misdaad == "drugssmokkelen" AND $getal == "1" || $getal == "3"){
$data->cash +=8500;
echo('<script>alert("gelukt! de wouten zagen niks, en onderweg hadden ze niet de kofferbak nagekeken! je verdient $8500"); location.href("?pagina=crime.php");</script>');
mysql_query("UPDATE `[users]` SET `bank`={$data->bank},`cash`={$data->cash} WHERE `login`='{$data->login}'");
}
else if($misdaad == "drugssmokkelen" AND $getal == "0" || $getal == "2" || $getal == "4" || $getal == "5"){
echo('<script>alert("Helaas de wouten hadden je aangehouden"); location.href("?pagina=crime.php");</script>');
}
else if($misdaad == "spullenstelen" AND $getal == "1" || $getal == "3"){
$data->cash +=250;
echo('<script>alert("gelukt! je had een paar keer achter elkaar spullen gestolen in de winkel! $250"); location.href("?pagina=crime.php");</script>');
mysql_query("UPDATE `[users]` SET `bank`={$data->bank},`cash`={$data->cash} WHERE `login`='{$data->login}'");
}
else if($misdaad == "spullenstelen" AND $getal == "0" || $getal == "2" || $getal == "4" || $getal == "5"){
echo('<script>alert("Helaas de alarm van de winkel ging af!"); location.href("?pagina=crime.php");</script>');
}
}
else if($misdaad == ""){
echo "<table><td></td><td><form method=POST>
<input type=radio value=bankberoven name=\"misdaad\"> Beroof de bank<br>
<input type=radio value=zakkenrollen name=\"misdaad\"> Ga zakkenrollen<br>
<input type=radio value=dreigen name=\"misdaad\"> Iemand dreigen zijn geld te geven!<br>
<input type=radio value=auto name=\"misdaad\"> Jat een auto<br>
<input type=radio value=kassa name=\"misdaad\"> Steel een kassa bij de supermarkt<br>
<input type=radio value=drugssmokkelen name=\"misdaad\"> Smokkel drugs en verkoop het<br>
<input type=radio value=breek_in name=\"misdaad\"> Ga bij iemand inbreken<br>
<input type=radio value=velg name=\"misdaad\"> Steel velgen van een auto<br>
<input type=radio value=spullenstelen name=\"misdaad\"> Steel spullen in de winkel<br>
<input type=radio value=schooien name=\"misdaad\"> Schooi om geld bij mensen in de stad<br>
<input type=submit value=Doen!></form></td></table>";
}?>
<tr><td class="mainTxt" align="center"><B>Je moet na een misdaad even wachten voor je de volgende misdaad kan doen!</B></td></tr></center><br>
</table>
<head> <script language="JavaScript"> var left = 0; function movein(){ if (document.layers) { document.layers['message'].pageX = window.pageXOffset + left; left+=step; if(left<moveto){ setTimeout('movein()',speed); } else { setTimeout('closemessage()',hide); } } else{ document.getElementById('message').style.left=left+'px'; left+=step; if(left<moveto){ setTimeout('movein()',speed); } else { setTimeout('closemessage()',hide); } } } function closemessage(){ if (document.layers) {document.layers['message'].visibility='hidden';} else{document.getElementById('message').style.visibility='hidden';} } </script> <style type="text/css" media="screen"> #obmessage #message {top:120px; border:1px solid black; width:200px;background-color:lime;padding:4px; position:absolute;} </style> <head> <title>Cyber-War</title> <link rel="stylesheet" type="text/css" href=" <?php echo ($_COOKIE['v'] == 2) ? "css-v2.css" : "css-v1.css"; ?>"> </head> <body style="background: #000000; margin: 0px;"> <table width=100%> <center> <FORM METHOD=post ACTION=""> <table align="center" width=100%> <tr><td class="subTitle"><b>Misdaad</b></td></tr> <tr><td class="mainTxt"> <?php if ($_SERVER['REQUEST_METHOD'] == 'POST') { if($misdaad == "velg" AND $getal == "1" || $getal == "3"){ $data->cash +=500; echo('<script>alert("gelukt! je hebt de velgen van een auto gejat , je hebt $500 erbij"); location.href("?pagina=crime.php");</script>'); mysql_query("UPDATE `[users]` SET `bank`={$data->bank},`cash`={$data->cash} WHERE `login`='{$data->login}'"); print " <tr><td class=\"mainTxt\">Het bedrag is overgemaakt</td></tr>\n"; } else if($misdaad == "velg" AND $getal == "0" || $getal == "2" || $getal == "4" || $getal == "5"){ echo('<script>alert("Helaas is het mislukt"); location.href("?pagina=crime.php");</script>'); } else if($misdaad == "breek_in" AND $getal == "1" || $getal == "3"){ $data->cash +=1000; echo('<script>alert("gelukt! je hebt ingebroken en voor $1000 gejat"); location.href("?pagina=crime.php");</script>'); mysql_query("UPDATE `[users]` SET `bank`={$data->bank},`cash`={$data->cash} WHERE `login`='{$data->login}'"); } else if($misdaad == "breek_in" AND $getal == "0" || $getal == "2" || $getal == "4" || $getal == "5"){ echo('<script>alert("Jammer, er waren te goede sloten"); location.href("?pagina=crime.php");</script>'); } else if($misdaad == "zakkenrollen" AND $getal == "1" || $getal == "3"){ $data->cash +=100; echo('<script>alert("gelukt! het viel niet op dat je iemands portomonee pakte $100"); location.href("?pagina=crime.php");</script>'); mysql_query("UPDATE `[users]` SET `bank`={$data->bank},`cash`={$data->cash} WHERE `login`='{$data->login}'"); } else if($misdaad == "zakkenrollen" AND $getal == "0" || $getal == "2" || $getal == "4" || $getal == "5"){ echo('<script>alert("Helaas, de politie kwam er in de verte aan, volgende keer beter"); location.href("?pagina=crime.php");</script>'); } else if($misdaad == "kassa" AND $getal == "1" || $getal == "3"){ $data->cash +=2000; echo('<script>alert("gelukt! de cassiare was zo bang dat je de kassa meteen kreeg $2000"); location.href("?pagina=crime.php");</script>'); mysql_query("UPDATE `[users]` SET `bank`={$data->bank},`cash`={$data->cash} WHERE `login`='{$data->login}'"); } else if($misdaad == "kassa" AND $getal == "0" || $getal == "2" || $getal == "4" || $getal == "5"){ echo('<script>alert("Helaas de kassa was goed beveiligd"); location.href("?pagina=crime.php");</script>'); } else if($misdaad == "auto" AND $getal == "1" || $getal == "3"){ $data->cash +=4000; echo('<script>alert("gelukt! er zat geen beveiliging op de auto en je kon hem dus zo meenemen! Daarna heb je de auto verkocht voor 4500!"); location.href("?pagina=crime.php");</script>'); mysql_query("UPDATE `[users]` SET `bank`={$data->bank},`cash`={$data->cash} WHERE `login`='{$data->login}'"); } else if($misdaad == "auto" AND $getal == "0" || $getal == "2" || $getal == "4" || $getal == "5"){ echo('<script>alert("Helaas de alarm ging af..."); location.href("?pagina=crime.php");</script>'); } else if($misdaad == "dreigen" AND $getal == "1" || $getal == "3"){ $data->cash +=1500; echo('<script>alert("gelukt! je dreigde hem om zijn geld te geven aan jou, hij had $1500 bij zich!"); location.href("?pagina=crime.php");</script>'); mysql_query("UPDATE `[users]` SET `bank`={$data->bank},`cash`={$data->cash} WHERE `login`='{$data->login}'"); } else if($misdaad == "dreigen" AND $getal == "0" || $getal == "2" || $getal == "4" || $getal == "5"){ echo('<script>alert("Helaas hij rende weg en je kon um niet optijd pakken"); location.href("?pagina=crime.php");</script>'); } else if($misdaad == "bankberoven" AND $getal == "1" || $getal == "3"){ $data->cash +=7500; echo('<script>alert("gelukt! je had een kluis mee genomen en er zat $7500 erin"); location.href("?pagina=crime.php");</script>'); mysql_query("UPDATE `[users]` SET `bank`={$data->bank},`cash`={$data->cash} WHERE `login`='{$data->login}'"); } else if($misdaad == "bankberoven" AND $getal == "0" || $getal == "2" || $getal == "4" || $getal == "5"){ echo('<script>alert("Helaas de kluis was goed beveiligd"); location.href("?pagina=crime.php");</script>'); } else if($misdaad == "schooien" AND $getal == "1" || $getal == "3"){ $data->cash +=50; echo('<script>alert("gelukt! de mensen in de stad waren zo gek om je een beetje geld te geven! $50"); location.href("?pagina=crime.php");</script>'); mysql_query("UPDATE `[users]` SET `bank`={$data->bank},`cash`={$data->cash} WHERE `login`='{$data->login}'"); } else if($misdaad == "schooien" AND $getal == "0" || $getal == "2" || $getal == "4" || $getal == "5"){ echo('<script>alert("Helaas iedereen vond dat je erg vies er uit zag dus niemand wilde geld geven"); location.href("?pagina=crime.php");</script>'); } else if($misdaad == "drugssmokkelen" AND $getal == "1" || $getal == "3"){ $data->cash +=8500; echo('<script>alert("gelukt! de wouten zagen niks, en onderweg hadden ze niet de kofferbak nagekeken! je verdient $8500"); location.href("?pagina=crime.php");</script>'); mysql_query("UPDATE `[users]` SET `bank`={$data->bank},`cash`={$data->cash} WHERE `login`='{$data->login}'"); } else if($misdaad == "drugssmokkelen" AND $getal == "0" || $getal == "2" || $getal == "4" || $getal == "5"){ echo('<script>alert("Helaas de wouten hadden je aangehouden"); location.href("?pagina=crime.php");</script>'); } else if($misdaad == "spullenstelen" AND $getal == "1" || $getal == "3"){ $data->cash +=250; echo('<script>alert("gelukt! je had een paar keer achter elkaar spullen gestolen in de winkel! $250"); location.href("?pagina=crime.php");</script>'); mysql_query("UPDATE `[users]` SET `bank`={$data->bank},`cash`={$data->cash} WHERE `login`='{$data->login}'"); } else if($misdaad == "spullenstelen" AND $getal == "0" || $getal == "2" || $getal == "4" || $getal == "5"){ echo('<script>alert("Helaas de alarm van de winkel ging af!"); location.href("?pagina=crime.php");</script>'); } } else if($misdaad == ""){ echo "<table><td></td><td><form method=POST> <input type=radio value=bankberoven name=\"misdaad\"> Beroof de bank<br> <input type=radio value=zakkenrollen name=\"misdaad\"> Ga zakkenrollen<br> <input type=radio value=dreigen name=\"misdaad\"> Iemand dreigen zijn geld te geven!<br> <input type=radio value=auto name=\"misdaad\"> Jat een auto<br> <input type=radio value=kassa name=\"misdaad\"> Steel een kassa bij de supermarkt<br> <input type=radio value=drugssmokkelen name=\"misdaad\"> Smokkel drugs en verkoop het<br> <input type=radio value=breek_in name=\"misdaad\"> Ga bij iemand inbreken<br> <input type=radio value=velg name=\"misdaad\"> Steel velgen van een auto<br> <input type=radio value=spullenstelen name=\"misdaad\"> Steel spullen in de winkel<br> <input type=radio value=schooien name=\"misdaad\"> Schooi om geld bij mensen in de stad<br> <input type=submit value=Doen!></form></td></table>"; }?> <tr><td class="mainTxt" align="center"><B>Je moet na een misdaad even wachten voor je de volgende misdaad kan doen!</B></td></tr></center><br> </table>
weet iemand hoe dat werkt?
|