Jump to content
MakeWebGames

jds137

Members
  • Posts

    402
  • Joined

  • Last visited

Everything posted by jds137

  1. Re: [mccode v2] Stock Market. Working + Secured Looks like we may finally get a working stock market, that does not greatly boost a players cash gain.
  2. Re: [mc code V2]Updated Lottery I have 2 errors, will anyone help?    
  3. Re: Effects mod with cron works with v2 Great idea. I am sure people will cry, but who cares, good work.
  4. Re: View Item Information great stuff
  5. Re: Add Super rewards points to your site!!! Thank you for your help. I added it, and it is working as far as I can tell. I use Offerpal as well, I bet this this will be the same way as well.
  6. Re: Add Super rewards points to your site!!! How does it pick up on the users ID #?
  7. Re: Add Super rewards points to your site!!! can we clarify the coding? Is it all 1 big blob, or 3 separate ones?
  8. Re: [mccode v2] Site lockdown Not working, and thats running your sql? Any thoughts, ideas, concerns? :evil:
  9. Re: This isn't necessarily a mod but css optimization for fast web page loading! DITTO
  10. Re: [Mcc Code V2] Quick Mugging Mod Config has an option of setting for donators or non donators.
  11. Re: [Mcc Code V2] Quick Mugging Mod Heres a quick way to limit mugging as well:     if($ir['mug'] > 3) { die ("You have mugged enough people today. Any more would be criminally insane. Go home and get some rest [url='index.php']Go Home.[/url]"); }   Add mug int 11 not null 0 to the users table. Then add $db->query("UPDATE users SET mug = 0");   to what ever cron you wish, and your all done. Does anyone wanna make this mod better, feel free to contact me, and lets get to work.
  12. I was reading the forums, and saw one there was a new search added. It has an option to mug people. Since I did not see a Mug Mod, I took the Hack PC mod, and changed it over. http://criminalexistence.com/ceforums/index.php?topic=930.0 Which was coded by Dabomstew. All I did was change it to mugging, and add jail for failing. I have a prison in my game, so you will need to rename prison to jail as well. mug.php <?php ----------------------------------------------------------------------- -- Mug Player -- (C) 2009 Psycho Killa Entertainment ----------------------------------------------------------------------- require "globals.php"; if($ir['prison'] or $ir['hospital']) { die("This page cannot be accessed while in prison or hospital."); } include "mug.config.php"; global $db_config; if($db_config[''] && !$ir['']) { print "Error - this feature is for donators only."; $h->endpage(); exit; } $in = abs((int) $_GET['ID']); if(!$in) { print "Error - no valid player ID to hunt for specified."; $h->endpage(); exit; } $q = mysql_query("SELECT * FROM `users` WHERE userid = {$in}", $c); if(!mysql_num_rows($q)) { print "Error - player ID specified does not exist."; $h->endpage(); exit; } $r = mysql_fetch_array($q); if(in_array($in, $db_config['prohibited'])) { print "Error - this player cannot be mugged."; $h->endpage(); exit; } if($r['user_level'] == 0 && $db_config['nohuntnpc']) { print "Error - NPCs cannot be hunted."; $h->endpage(); exit; } if($in == $userid) { print "Error - you cannot hunt yourself!"; $h->endpage(); exit; } if($r['fedjail']) { print "Error - people in fedjail cannot be mugged"; $h->endpage(); exit; } if($ir['brave'] < $db_config['bravecost']) { print "Error - you need {$db_config['bravecost']} Brave to mug this player for money."; $h->endpage(); exit; } $rsf = rand(1,10); $exga = rand($db_config['minexp'],$db_config['maxexp']); if($rsf <= $db_config['chance']) { mysql_query("UPDATE users SET exp=exp+{$exga}, brave=brave-{$db_config['bravecost']} WHERE userid={$userid}", $c); $stole=(int) (rand($r['money']/10,$r['money']/30)); if ($stole<0) {$stole=0;} if ($stole>0) { mysql_query("UPDATE users SET money=money+{$stole} WHERE userid={$userid}", $c); mysql_query("UPDATE users SET money=money-{$stole} WHERE userid={$in}", $c); } event_add($in, "[url='viewuser.php?u=$userid']{$ir['username']}[/url] beat you down and stole $stole! dollars, Click [url='mug.php?ID={$userid}']here[/url] to try to take your revenge!", $c); print "You succesfully mugged {$r['username']} and robbed \$$stole dollars."; } else { $prison = rand(100, 250); mysql_query("UPDATE users SET brave=brave-{$db_config['bravecost']} WHERE userid={$userid}", $c); event_add($in, "[url='viewuser.php?u=$userid']{$ir['username']}[/url] looked in your wallet, and searched your pockets. They did not find a single dime.", $c); print "Unfortunately, {$r['username']}'s wallet was empty, and while checking the police came and caught ya."; mysql_query("update users set prison=$prison where userid='" . mysql_real_escape_string($userid) . "'", $c); mysql_query("update users set prisonreason='Busted mugging another Mobster' userid='" . mysql_real_escape_string($userid) . "'", $c); } $h->endpage(); ?>   mug.config.php <?php /* ----------------------------------------------------------------------- -- Mug Player -- (C) 2009 Psycho Killa Entertainment ----------------------------------------------------------------------- */ $db_config = array ( 'donatoronly' => false, //Set this to true to restrict mugging to donators only. 'prohibited' => array(1), //Add player IDs to this array who you want to be protected from mugging. 'nohuntnpc' => true, //Set this to true to block NPC's from being mugged. 'bravecost' => 10, //Set this to the amount of brave you want hacking a PC to cost. 'minexp' => 5, //Set this to the minimum EXP (figure, not %age) that you want a user to gain from a successful hack. 'maxexp' => 10, //Set this to the maximum EXP (figure, not %age) that you want a user to gain from a successful hack. 'chance' => 40, //Set this to the % chance of a successful mugging. Must be a positive integer >= 1. ); ?>
  13. jds137

    REntal

    Re: REntal cool idea, only thing is it need to be more organized. I added it to my site, and it was all jumbled together.
  14. Re: [V1] Russian Roulette [V1] I thought this was a paid mod? Correct me if I am wrong..
  15. Re: [mccode v2] Monster Tent I got this error: And this mod has great potential.  
  16. Re: [mccodes V2] Add any type of video media to your game It keeps asking for plug in in Firefox. Anyone know what is needed to resolve this? I have Quicktime, Media Player, and Real Audio installed to no avail.
  17. Re: mccodes v2 newspaper Does anyone have the links for the admin panel for this news paper? I never had a paper, in MCC I just deleted it all and went with html early on :P
  18. Re: [mccode v2] Strip Club I made my game for adults when I recoded this. Since then I have improved it, but added a warning for minors. Also I removed any images that were inappropriate for minors.
  19. Re: [McCodes v2] 100 Club! I fell asleep waiting for this mod...
  20. Re: [MCCODES V2[ Announcements mod only visible to staff I like this mod quite a bit. As always, you come through.
  21. Re: Suicide Bombing Parse error: syntax error, unexpected T_ELSE in /home/jds137/ml/public/suicide.php on line 58
  22. Re: New Houses Mod [Mccodes V2] Where are the house upgrades? I cant find em or else I am blind
  23. Re: [MC Code v2] Saved Events Any idea on this error?     http://www.mobslife.net/oevents.php?act=Index
  24. Re: [mccode v2] Stock Market. Working + Secured Great mod as far as I can see. I found that there is 1 error. When you add a stock, lets say for 2 k for ex. When it loses a little money, the whole amount goes negative. See below, the stock is still positive, but its listed as negative.  
  25. Re: Forum ban from profile for mccode V2 Works just fine. Keep it up
×
×
  • Create New...