Jump to content
MakeWebGames

devonbnice

Members
  • Posts

    42
  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

devonbnice's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. No, thats unnecessary, I'll just place it in the free mods section but for some reason the the php tags and such arn't working, every since they changed the site. anyone have any idea how to make the tags work? lol.
  2. BBcode is not working? :/
  3. My reason for not wanting to sell it, is because ive noticed a few flaws and errors it had, and ive became careless and havnt bothered to fix them, there minor cron problems. What i could do is place it in the free mod section?
  4. Havnt been active on this site in a long while. Sorry this mod is no longer for sell, ive quit coding an mccodes game, and have began coding my own and unique game entitled High Life.
  5. Thats no use. When a player invests his muny he types of makes a contract that he wont be able to touch this money until investment time ends. Yes, Your making a contract with the bank to hold your money and gain interest on it. If you invest in real life you cant just take your money out when ever your want. You have to choose an investment plan.
  6. Securing your scripts is not hard to do nor is it hard to find out.. There is a pretty good tutorial someone posted on here which is pretty good. Search is a great feature. Google is an other great feature which can also help you learn about securing your scripts. Well, considering this is free im not to worried about it, and talking to me like im a retarded isn't appreciated.
  7. Im aware it is in need of securing. Which i dont know how to do.. :(
  8. Instead of making a new addon to the users. why not just make a variable? like..   $total_stats = $ir['strength'] + $ir['agility'] + $ir['guard'] + $ir['labour'];   then..   if($total_stats >= '1000') { $gain /=2;}
  9. Hey everyone, Here i have yet another free mod. This is a investment bank, Users can invest their money for a selected amount of time, and receive a fixed interest rate. at the end of there investment time they will then be able to withdrawl their money. Simple eh? This mod includes: 1 PHP file 2 columns added to the users table Lets get started. First make a file called investbank.php <?php //created by Devon Nice //Free mod for Mccode //Copyright 2011 Nice Entertainment //^^DO NOT REMOVE!^^ include "globals.php"; print "<h3>Investment Bank</h3><hr> "; if ( !$_GET['action'] ) { if ( $ir['bankTIME'] == 0 ) { print "Please click below to withdrawl your investment. <font size=3>\$".number_format($ir['bankCASH'])."</font> > [url='investbank.php?action=withdrawl']Withdrawl my investment now![/url] "; } else if ( $ir['bankTIME'] > 0 ) { print "<font size=3>In [b]{$ir['bankTIME']}[/b] days you will recieve your total investment of [b]\$".number_format($ir['bankCASH'])."[/b]</font> "; } else { print "Are you tired of never having money? This is a perfect business opportunity for you. Invest your hard earned cash, and profit of it. simple eh? Invest your money and make money without doing anything! There are no promises you will profit. You may settle, you may lose it. "; print "<table width='50%' bgcolor='#dcdcdc' cellspacing='0' cellpadding='3'> <th bgcolor='#dcdcdc' width='50%'>Rates</th> <th bgcolor='#dcdcdc' width='50%'>Money</th><tr>"; print "<td bgcolor='#dcdcdc' width='50%' align=center> <form action='investbank.php?action=invest' method='post'> <select name='rate' type='dropdown'> <option value='0.0035'>1 Day (0.35%) <option value='0.0095'>1 Week (0.95%) <option value='0.0215'>2 Weeks (2.15%) <option value='0.0395'>1 Month (3.95%) <option value='0.0535'>2 Month (5.35%) <option value='0.0675'>3 Months (6.75%) </select></td>"; print "<td bgcolor='#dcdcdc' width='50%' align=center> \$<select name='cash' type='dropdown'> <option value='1000'> \$1,000 <option value='10000'> \$10,000 <option value='50000'> \$50,000 <option value='100000'> \$100,000 <option value='250000'> \$250,000 <option value='500000'> \$500,000 <option value='1000000'> \$1,000,000 <option value='1500000'> \$1,500,000 <option value='2500000'> \$2,500,000 <option value='5000000'> \$5,000,000 <option value='10000000'> \$10,000,000 <option value='25000000'> \$25,000,000 <option value='50000000'> \$50,000,000 <option value='100000000'> \$100,000,000 <option value='500000000'> \$500,000,000 <option value='1000000000'> \$1,000,000,000 </select></td><tr> <td bgcolor='#dcdcdc' width='50%' colspan=2 align=center> <input type='submit' value='Invest' /></form></td>"; print "</table>"; } } else if ( $_GET['action'] == 'invest' ) { if ( $ir['money'] < $_POST['cash'] ) { print "You dont have that kind of money! "; } else if ( $ir['bankTIME'] > -1 ) { print "Your already investing! "; } else if ( $ir['bankCASH'] > 0 ) { print "Your already investing! "; } else { $interest = $_POST['cash'] * $_POST['rate']; $total = $_POST['cash'] + $interest; $T = $_POST['rate']; if ($T == 0.0035){$time = 1;} elseif ($T == 0.0095){$time = 7;} elseif ($T == 0.0215){$time = 14;} elseif ($T == 0.0395){$time = 30;} elseif ($T == 0.0535){$time = 60;} elseif ($T == 0.0675){$time = 90;} else { print "An error occured, Please try again. <hr>> [url='investbank.php']Back[/url]<hr>"; $h->endpage(); } print "You have invested a total of [b]\$".number_format($_POST['cash'])."[/b] When your investment time is up (In $time Days) you will recieve a total of. <font size=4>[b]\$".number_format($total)."[/b]</font> "; print " > [url='investbank.php']Continue[/url] "; mysql_query("UPDATE users SET bankTIME = $time, bankCASH = $total, money = money - {$_POST['cash']} WHERE userid=$userid"); } } else if ( $_GET['action'] == 'withdrawl' ) { if ( $ir['bankTIME'] != 0 ) { print "You either don't have an investment or your time isnt up "; } else if ( $ir['bankCASH'] < 0 ) { print "You dont have an investment! "; } else { mysql_query("UPDATE users SET money = money + {$ir['bankCASH']} WHERE userid=$userid"); print "You withdrew your investment of [b]\$".number_format($ir['bankCASH'])."[/b]! "; mysql_query("UPDATE users SET bankTIME = -1, bankCASH = 0 WHERE userid=$userid"); } } else { print "Sorry, This is an invalid link extension. "; } print " <hr>> [url='investbank.php']Back[/url]<hr>"; $h->endpage(); ?>   Second, runs these SQL's [mysql] ALTER TABLE users ADD bankCASH BIGINT(11) NOT NULL DEFAULT 0 ALTER TABLE users ADD bankTIME INT(11) NOT NULL DEFAULT -1 [/mysql] Last, add to cron_day.php //investment bank $db->query("UPDATE users SET bankTIME = bankTIME - 1 WHERE bankTIME > 0");   And thats all! Now for some pictures! http://www.imageurlhost.com/images/wr4ebdiiufwkwbt3nv7t.jpg http://www.imageurlhost.com/images/8bqqpmqwfi21r0w3dgo5.jpg http://www.imageurlhost.com/images/rt4i9r36c557u9oxiyvv.jpg http://www.imageurlhost.com/images/kmq8zyenug1ck5iusrlw.jpg http://www.imageurlhost.com/images/zprv916x103cy3fxx5vx.jpg If there are any problems please post them below! Thanks, Devon.
  10. Thats a decent idea if your not wanting your users to get insane stats. But a 50% cut is a bit much.
  11. It's also free if you just want your game secure, you just wont know what happening with your game.
  12. It seams pretty nice, They mentioned that you dont need to change servers or change any code. So i dont see why it wouldnt work for mccodes. I might have to try it out one of these days, if i ever get around to launching a game.
  13. 50% price drop.
  14. I was gonna add a table background image, but i couldn't find any good pictures of safes. lol
  15. The numbers are generated randomly, they are never the same. you'll find that bit of code here..   $C1=(int) rand(1,5); $C2=(int) rand(1,5); $C3=(int) rand(1,5);
×
×
  • Create New...