Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /*
- * Module Maker: JasonTB
- * Module Name: Rob a Local Dealer
- * Module Support: [email protected] or JasonTB on MWG
- */
- require(__DIR__.'/globals.php');
- $error = ' ';
- if($ir['hospital'] > 0){
- $error .= "You can not rob a dealer while in the hospital. " ;
- }
- if($ir['jail'] > 0){
- $error .= "You can not rob a dealer while in the jail. ";
- }
- if ($ir['rld'] != 0){
- $error .= "You can only rob the local deals once a day.";
- }
- if($error <> ' ') {
- echo $error;
- $h->endpage();
- exit;
- }
- if (!$_GET['action']){
- echo"<h3>Rob a Local Dealer</h3><br />
- You drove around the neighbor hood and notices three different dealers selling different things.<br />
- Who would you like to rob?<br />
- <a href='robdealer.php?action=weed'>Weed Dealer</a>  
- <a href='robdealer.php?action=crack'>Crack Dealer</a>  
- <a href='robdealer.php?action=heroin'>Heroin Dealer</a>";
- }
- elseif ($_GET['action'] == 'weed'){
- global $db, $ir, $c, $userid;
- $chance = rand(1, 10);
- $steal1 = rand(30, 125);
- if($chance < 6){
- echo"The weed dealer seen you watching from down the block,<br /> without taking a chance he opens fires on you putting you in the hospital for 20 mins.";
- $db->query("UPDATE users SET hospital = hospital +20, hospreason = 'Shot by Weed Dealer', rld = 1 WHERE userid = {$ir['userid']}");
- }
- else{
- echo"You run up on the weed dealer and put your gun to his head,<br /> he drops all his drugs and runs away you pick up {$steal1} grams and disappear.";
- $db->query("UPDATE users SET weed = weed + {$steal1}, rld = 1 WHERE userid = {$ir['userid']}");
- }
- }
- elseif ($_GET['action'] == 'crack'){
- global $db, $ir, $c, $userid;
- $chance = rand(1, 10);
- $steal2 = rand(10, 50);
- if($chance < 4){
- echo"The crack dealer seen you watching from down the block,<br /> without taking a chance he opens fires on you putting you in the hospital for 20 mins";
- $db->query("UPDATE users SET hospital = hospital +20, hospreason = 'Shot by Crack Dealer', rld = 1 WHERE userid = {$ir['userid']}");
- }
- else{
- echo"You run up on the crack dealer and put your gun to his head,<br /> he dopes all his drugs and runs away you pick up {$steal2} ounces and disappear.";
- $db->query("UPDATE users SET crack = crack + {$steal2}, rld = 1 WHERE userid = {$ir['userid']}");
- }
- }
- elseif ($_GET['action'] == 'heroin'){
- global $db, $ir, $c, $userid;
- $chance = rand(1, 10);
- $steal3 = rand(5, 25);
- if($chance < 2){
- echo"The heroin dealer seen you watching from down the block,<br /> without taking a chance he opens fires on you putting you in the hospital for 20 mins";
- $db->query("UPDATE users SET hospital = hospital +20, hospreason = 'Shot by Heroin Dealer', rld = 1 WHERE userid = {$ir['userid']}");
- }
- else{
- echo"You run up on the heroin dealer and put your gun to his head,<br /> he dopes all his drugs and runs away you pick up {$steal3} grams and disappear.";
- $db->query("UPDATE users SET heroin = herion + {$steal3}, rld = 1 WHERE userid = {$ir['userid']}");
- }
- }
- $h->endpage();
Advertisement
Add Comment
Please, Sign In to add comment