Winkel | |
Welkom in de winkel, selecteer een keuse. - Wapens - Bescherming - Verdediging - Auto's - Lucht Vervoer - Tanks | ![]() |
\n";
}
else {
print "Je hebt niet genoeg geld.\n";
}
}
if(isset($_POST['2']) && preg_match('/^[0-9]+$/',$_POST['a2'])) {
$guns = $_POST['a2'];
$power = round($_POST['a2']*10);
$power1 = round($_POST['a2']*5);
$prijs = round($_POST['a2']*380);
$aantal = round($data['wapens']+$_POST['a2']);
$type1 = array("","gangsters","terroristen","agenten");
$type = $type1[$data['type']];
if($prijs <= $data['cash']) {
mysql_query("UPDATE `[users]` SET `cash`=`cash`-$prijs,`attack`=`attack`+$power,`defence`=`defence`+$power1 WHERE `login`='{$data['login']}'");
print "Je hebt {$_POST['a2']} uzi(s) gekocht. \n"; } else { print "Je hebt niet genoeg geld.\n"; } } if(isset($_POST['3']) && preg_match('/^[0-9]+$/',$_POST['a3'])) { $guns = $_POST['a3']; $power = round($_POST['a3']*15); $power1 = round($_POST['a3']*10); $prijs = round($_POST['a3']*760); $aantal = round($data['wapens']+$_POST['a3']); $type1 = array("","gangsters","terroristen","agenten"); $type = $type1[$data['type']]; if($prijs <= $data['cash']) { mysql_query("UPDATE `[users]` SET `cash`=`cash`-$prijs,`attack`=`attack`+$power,`defence`=`defence`+$power1 WHERE `login`='{$data['login']}'"); print "Je hebt {$_POST['a3']} mp5k(s) gekocht. \n"; } else { print "Je hebt niet genoeg geld.\n"; } } if(isset($_POST['4']) && preg_match('/^[0-9]+$/',$_POST['a4'])) { $guns = $_POST['a4']; $power = round($_POST['a4']*20); $power1 = round($_POST['a4']*3); $prijs = round($_POST['a4']*910); $aantal = round($data['wapens']+$_POST['a4']); $type1 = array("","gangsters","terroristen","agenten"); $type = $type1[$data['type']]; if($prijs <= $data['cash']) { mysql_query("UPDATE `[users]` SET `cash`=`cash`-$prijs,`attack`=`attack`+$power,`defence`=`defence`+$power1 WHERE `login`='{$data['login']}'"); print "Je hebt {$_POST['a4']} shotgun(s) gekocht. \n"; } else { print "Je hebt niet genoeg geld.\n"; } } if(isset($_POST['5']) && preg_match('/^[0-9]+$/',$_POST['a5'])) { $guns = $_POST['a5']; $power = round($_POST['a5']*20); $power1 = round($_POST['a5']*10); $prijs = round($_POST['a5']*1500); $aantal = round($data['wapens']+$_POST['a5']); $type1 = array("","gangsters","terroristen","agenten"); $type = $type1[$data['type']]; if($prijs <= $data['cash']) { mysql_query("UPDATE `[users]` SET `cash`=`cash`-$prijs,`attack`=`attack`+$power,`defence`=`defence`+$power1 WHERE `login`='{$data['login']}'"); print "Je hebt {$_POST['a5']} g36c(s) gekocht. \n"; } else { print "Je hebt niet genoeg geld.\n"; } } if(isset($_POST['6']) && preg_match('/^[0-9]+$/',$_POST['a6'])) { $guns = $_POST['a6']; $power = round($_POST['a6']*100); $power1 = round($_POST['a6']*500); $prijs = round($_POST['a6']*15200); $aantal = round($data['wapens']+$_POST['a6']); $type1 = array("","gangsters","terroristen","agenten"); $type = $type1[$data['type']]; if($prijs <= $data['cash']) { mysql_query("UPDATE `[users]` SET `cash`=`cash`-$prijs,`attack`=`attack`+$power,`defence`=`defence`+$power1 WHERE `login`='{$data['login']}'"); print "Je hebt {$_POST['a6']} sig 552(s) gekocht. \n"; } else { print "Je hebt niet genoeg geld.\n"; } } if(isset($_POST['7']) && preg_match('/^[0-9]+$/',$_POST['a7'])) { $guns = $_POST['a7']; $power = round($_POST['a7']*25); $power1 = round($_POST['a7']*5); $prijs = round($_POST['a7']*2200); $aantal = round($data['wapens']+$_POST['a7']); $type1 = array("","gangsters","terroristen","agenten"); $type = $type1[$data['type']]; if($prijs <= $data['cash']) { mysql_query("UPDATE `[users]` SET `cash`=`cash`-$prijs,`attack`=`attack`+$power,`defence`=`defence`+$power1 WHERE `login`='{$data['login']}'"); print "Je hebt {$_POST['a7']} ak47(s) gekocht. \n"; } else { print "Je hebt niet genoeg geld.\n"; } } if(isset($_POST['8']) && preg_match('/^[0-9]+$/',$_POST['a8'])) { $guns = $_POST['a8']; $power = round($_POST['a8']*30); $power1 = round($_POST['a8']*20); $prijs = round($_POST['a8']*3040); $aantal = round($data['wapens']+$_POST['a8']); $type1 = array("","gangsters","terroristen","agenten"); $type = $type1[$data['type']]; if($prijs <= $data['cash']) { mysql_query("UPDATE `[users]` SET `cash`=`cash`-$prijs,`attack`=`attack`+$power,`defence`=`defence`+$power1 WHERE `login`='{$data['login']}'"); print "Je hebt {$_POST['a8']} m4a1(s) gekocht. \n"; } else { print "Je hebt niet genoeg geld.\n"; } } if(isset($_POST['9']) && preg_match('/^[0-9]+$/',$_POST['a9'])) { $guns = $_POST['a9']; $power = round($_POST['a9']*100); $power1 = round($_POST['a9']*50); $prijs = round($_POST['a9']*6800); $aantal = round($data['wapens']+$_POST['a9']); $type1 = array("","gangsters","terroristen","agenten"); $type = $type1[$data['type']]; if($prijs <= $data['cash']) { mysql_query("UPDATE `[users]` SET `cash`=`cash`-$prijs,`attack`=`attack`+$power,`defence`=`defence`+$power1 WHERE `login`='{$data['login']}'"); print "Je hebt {$_POST['a9']} ak beta(s) gekocht. \n"; } else { print "Je hebt niet genoeg geld.\n"; } } if(isset($_POST['10']) && preg_match('/^[0-9]+$/',$_POST['a10'])) { $guns = $_POST['a10']; $power = round($_POST['a10']*20); $power1 = round($_POST['a10']*10); $prijs = round($_POST['a10']*2000); $aantal = round($data['wapens']+$_POST['a10']); $type1 = array("","gangsters","terroristen","agenten"); $type = $type1[$data['type']]; if($prijs <= $data['cash']) { mysql_query("UPDATE `[users]` SET `cash`=`cash`-$prijs,`attack`=`attack`+$power,`defence`=`defence`+$power1 WHERE `login`='{$data['login']}'"); print "Je hebt {$_POST['a10']} scherpschut geweren gekocht. \n"; } else { print "Je hebt niet genoeg geld.\n"; } } if(isset($_POST['11']) && preg_match('/^[0-9]+$/',$_POST['a11'])) { $guns = $_POST['a11']; $power = round($_POST['a11']*35); $power1 = round($_POST['a11']*15); $prijs = round($_POST['a11']*2500); $aantal = round($data['wapens']+$_POST['a11']); $type1 = array("","gangsters","terroristen","agenten"); $type = $type1[$data['type']]; if($prijs <= $data['cash']) { mysql_query("UPDATE `[users]` SET `cash`=`cash`-$prijs,`attack`=`attack`+$power,`defence`=`defence`+$power1 WHERE `login`='{$data['login']}'"); print "Je hebt {$_POST['a11']} m4(s) gekocht. \n"; } else { print "Je hebt niet genoeg geld.\n"; } } if(isset($_POST['12']) && preg_match('/^[0-9]+$/',$_POST['a12'])) { $guns = $_POST['a12']; $power = round($_POST['a12']*150); $power1 = round($_POST['a12']*50); $prijs = round($_POST['a12']*7500); $aantal = round($data['wapens']+$_POST['a12']); $type1 = array("","gangsters","terroristen","agenten"); $type = $type1[$data['type']]; if($prijs <= $data['cash']) { mysql_query("UPDATE `[users]` SET `cash`=`cash`-$prijs,`attack`=`attack`+$power,`defence`=`defence`+$power1 WHERE `login`='{$data['login']}'"); print "Je hebt {$_POST['a12']} m82a1(s) gekocht. \n"; } else { print "Je hebt niet genoeg geld.\n"; } } if(isset($_POST['13']) && preg_match('/^[0-9]+$/',$_POST['a13'])) { $guns = $_POST['a13']; $power = round($_POST['a13']*85); $power1 = round($_POST['a13']*35); $prijs = round($_POST['a13']*12000); $aantal = round($data['wapens']+$_POST['a13']); $type1 = array("","gangsters","terroristen","agenten"); $type = $type1[$data['type']]; if($prijs <= $data['cash']) { mysql_query("UPDATE `[users]` SET `cash`=`cash`-$prijs,`attack`=`attack`+$power,`defence`=`defence`+$power1 WHERE `login`='{$data['login']}'"); print "Je hebt {$_POST['a13']} granaat lanceerders gekocht. \n"; } else { print "Je hebt niet genoeg geld.\n"; } } if(isset($_POST['14']) && preg_match('/^[0-9]+$/',$_POST['a14'])) { $guns = $_POST['a14']; $power = round($_POST['a14']*45); $power1 = round($_POST['a14']*10); $prijs = round($_POST['a14']*9000); $aantal = round($data['wapens']+$_POST['a14']); $type1 = array("","gangsters","terroristen","agenten"); $type = $type1[$data['type']]; if($prijs <= $data['cash']) { mysql_query("UPDATE `[users]` SET `cash`=`cash`-$prijs,`attack`=`attack`+$power,`defence`=`defence`+$power1 WHERE `login`='{$data['login']}'"); print "Je hebt {$_POST['a14']} m3m .50cal(s) gekocht. \n"; } else { print "Je hebt niet genoeg geld.\n"; } } if(isset($_POST['15']) && preg_match('/^[0-9]+$/',$_POST['a15'])) { $guns = $_POST['a15']; $power = round($_POST['a15']*100); $power1 = round($_POST['a15']*300); $prijs = round($_POST['a15']*14130); $aantal = round($data['wapens']+$_POST['a15']); $type1 = array("","gangsters","terroristen","agenten"); $type = $type1[$data['type']]; if($prijs <= $data['cash']) { mysql_query("UPDATE `[users]` SET `cash`=`cash`-$prijs,`attack`=`attack`+$power,`defence`=`defence`+$power1 WHERE `login`='{$data['login']}'"); print "Je hebt {$_POST['a15']} bazooka(s) gekocht. \n"; } else { print "Je hebt niet genoeg geld.\n"; } } if(isset($_POST['16']) && preg_match('/^[0-9]+$/',$_POST['a16'])) { $guns = $_POST['a16']; $power = round($_POST['a16']*450); $power1 = round($_POST['a16']*325); $prijs = round($_POST['a16']*18000); $aantal = round($data['wapens']+$_POST['a16']); $type1 = array("","gangsters","terroristen","agenten"); $type = $type1[$data['type']]; if($prijs <= $data['cash']) { mysql_query("UPDATE `[users]` SET `cash`=`cash`-$prijs,`attack`=`attack`+$power,`defence`=`defence`+$power1 WHERE `login`='{$data['login']}'"); print "Je hebt {$_POST['a16']} miniguns gekocht. \n"; } else { print "Je hebt niet genoeg geld.\n"; } } ?> |