Jump to content
MakeWebGames

zbirc3

Members
  • Posts

    173
  • Joined

  • Last visited

    Never

Everything posted by zbirc3

  1. Re: Page Tutorials [FREE] screenshot? doesnt work for me :(
  2. Re: Little forum mod +2bil if the Positive system was still around.. I like your work! ^_^
  3. Re: [mccodes] Training and crime logs. mate, you are PURE genious! :D
  4. Re: New Amazing Register Page Nice work, mate! ^_^
  5. Re: Enhance course for V2 THANKS SO MUCH FOR CODING IT! ^_^
  6. Re: IP Banning tool [V1] + [V2] (I think) The topic starter didnt code it properly (sorry), because it said "I" was IP banned... :/
  7. Re: IP Banning tool [V1] + [V2] (I think) But it would keep complete n00bs to Internet away ! :D If you know what I mean!?
  8. Re: IP Banning tool [V1] + [V2] (I think) Thank you so much for this modification! I will probably end up using it by tonight anyway. XD   Thanks again!
  9. Re: Free Loan Shark System I totally agree... :P
  10. Re: crime hospital time What would be the point?
  11. Re: Free Loan Shark System Awesome! NP
  12. Re: Free Loan Shark System I've tested this and it works perfectly:   <?php session_start(); require "globals.php"; switch($_GET['action']) { case 'borrow': borrow_money_start(); break; case 'borrowed': borrow_money(); break; case 'repay': repay_money_start(); break; case 'repayed': repay_money(); break; case 'invest': invest_money(); break; case 'invested': invested_money(); break; default: loanshark_main(); break; } function loanshark_main() { global $ir,$c,$userid,$h; $maxloan=$ir['level']*2100; echo "<h2>Loan Shark</h2> You currently have a loan of \${$ir['loan']} The max you can loan is \$$maxloan - [url='loanshark.php?action=borrow']Loan Money[/url] - [url='loanshark.php?action=repay']Repay Loan[/url] - [url='loanshark.php?action=invest']Invest Money[/url] "; } function borrow_money_start() { global $ir,$c,$userid,$h; $maxloan=$ir['level']*2100; echo "The max amount you can borrow is \$$maxloan You currently have a loan of \${$ir['loan']} <form action='loanshark.php?action=borrowed' method='post'> Ammount: <input type=text value='$maxloan' name=borrowed> <input type=submit value='Borrow'>"; } function borrow_money() { global $ir,$c,$userid,$h; $maxloan=$ir['level']*2100; $loan=$ir['loan']; if ($loan == $maxloan) { die("You have already taken out the max loan possible you must pay it back before you can loan more > [url='loanshark.php?action=repay']Repay[/url]"); } if ($_POST['borrowed'] >= $maxloan+1) { die("You are trying to loan more then your max loan > [url='loanshark.php?action=borrow']Back[/url]"); } mysql_query("UPDATE users SET loan=loan+{$_POST['borrowed']} WHERE userid=$userid",$c); mysql_query("UPDATE users SET money=money+{$_POST['borrowed']} WHERE userid=$userid",$c); echo"You Borrowed from the loan shark > [url='loanshark.php']Back[/url]"; } function repay_money_start() { global $ir,$c,$userid,$h; echo"You have a loan of \${$ir['borrowed']} <form action='loanshark.php?action=repayed' method='post'> Ammount: <input type=text value='{$ir['loan']}' name=repayed> <input type=submit value='Repay'>"; } function repay_money() { global $ir,$c,$userid,$h; if($ir['loan'] <= 0) { die("You are trying to payback more then u have to > [url='loanshark.php']Back[/url]"); } mysql_query("UPDATE users SET loan=loan-{$_POST['repayed']} WHERE userid=$userid",$c); mysql_query("UPDATE users SET money=money-{$_POST['repayed']} WHERE userid=$userid",$c); echo"You repayed the loan shark > [url='loanshark.php']Back[/url]"; } function invest_money() { global $ir,$c,$userid,$h; echo"Here you can invest money on the spot and watch your money sink or float its simple you state the ammount you wish to invest in the box below and click Invest You have [b]{$ir['investments']}[/b] daily invest statment's left <form action='loanshark.php?action=invested' method='post'> Ammount: \$<input type=text name=invest> <input type=submit value='Invest'> "; } function invested_money() { global $ir,$c,$userid,$h; if ($ir['investments'] < 1) { die("You have used up all your daily investments > [url='loanshark.php?action=invest']Back[/url]"); } if(rand(1,100) <= 50) { $gainedmoney=(int) rand(1,30); print "<font color=green>[b]Result: You hand over {$_POST['invest']} to the old man at the counter One week later you get a phone call its the old man he explains that your investment has payed off You invested ${$_POST['invest']} and ended up making \$$gainedmoney extra.</font>[/b] You have [b]{$ir['investments']}[/b] daily invest statment's left > [url='loanshark.php?action=invest']Try Again[/url]"; mysql_query("UPDATE users SET investments=investments-1",$c); mysql_query("UPDATE users SET money=money+$gainedmoney WHERE userid=$userid",$c); } else { if ($ir['investments'] < 1) { die("You have used up all your daily investments > [url='loanshark.php?action=invest']Back[/url]"); } $lostmoney=(int) rand(1,10); mysql_query("UPDATE users SET money=money-$lostmoney WHERE userid=$userid", $c); echo"<font color=red>[b]Result: You invested \${$_POST['invest']} and lost \$$lostmoney out of your overall investment. One week later you get a phone call its the old man he explains that your investment has failed </font>[/b] You have [b]{$ir['investments']}[/b] daily invest statment's left > [url='loanshark.php?action=invest']Try Again[/url] "; mysql_query("UPDATE users SET investments=investments-1",$c); } } $h->endpage(); ?>
  13. Re: Profile Music All your mods are good, Bobby.
  14. Re: [V2]Crystal Smuggling Mod[V2] I would think so.
  15. Re: Gym with Current Stats (v1) Both v2's are wrong. They both bring in a 2nd menu... So find and take this out: $h->userdata($ir,$lv,$fm,$cm); $h->menuarea();
  16. Re: Status Updates I believe there is a free version already
  17. Re: help gang desc in bbcodes No problem. All your mods are great!
  18. Re: help gang desc in bbcodes Trust me, I reckon that this mod IS worth buying for a small $5! This sounds really good.
  19. Re: exp_needed or something!? yea i fixed it though. thx anyway mate. :P
  20. Re: exp_needed or something!? so what do i do?
  21. I think i have accidently dropped exp_needed in users area for phpMyAdmin I get this all over my game: Warning: Division by zero in /home/zane/public_html/header.php on line 154 and this is the line in header.php: $experc=(int) ( $ir['exp']/$ir['exp_needed']*100); someone plz help?
  22. Re: Free Loan Shark System No problem mate... always glad to help
  23. Re: Free Loan Shark System That is an easy fix... I'm guessing it should be ['borrowed'] instead of ['loan'] :roll: change : You currently have a loan of \${$ir['loan']}   to : You currently have a loan of \${$ir['borrowed]}
  24. Re: [mccode] Supporter Packs learn to know what you're doing. Just change it to staff_special.php (OR WHATEVER THE INSTRUCTIONS SAY) :mrgreen:
  25. Re: [mccode] Mining mod Been waiting for this for ages. THX! :D
×
×
  • Create New...