ronhouston2 Posted March 30, 2008 Posted March 30, 2008 <?php include "globals.php"; if($ir['hospital']) { die("You Can Not Pay Your Hospital Bill."); } $_GET['ID']=abs((int) $_GET['ID']); $r=$db->fetch_row($db->query("SELECT * FROM users WHERE userid={$_GET['ID']}")); if(!$r['userid']) { die("Invalid user"); } if(!$r['hospital']) { die("That user is not in the hospital!"); } $cost=$r['level']*2000; $cf=number_format($cost); if($ir['money'] < $cost) { die("Sorry, you do not have enough money to Pay the Hospital Bill for {$r['username']}. You need \$$cf."); } print "You successfully paid {$r['username']} hospital bill \$$cf. > Back"; $db->query("UPDATE users SET money=money-{$cost} WHERE userid=$userid"); $db->query("UPDATE users SET hospital=0 WHERE userid={$r['userid']}"); event_add($r['userid'], "{$ir['username']} payed your hospital bill.", $c); $h->endpage(); ?> I Just made a New mod for the Hospital called Hospital Bill much like Bail out of Jail make a area in Hospital for Actions i had to do that on my Game and make a Payge called hospitalbill.php if you have any problems let me know thanks Quote
Akash Posted March 30, 2008 Posted March 30, 2008 Re: Hospital Bill for V2 So basically, somone bails you out of hosp? Am I right? I like the idea, but it'd make the game too unrealistic. Correct me if I am wrong about what this mod does. Quote
ronhouston2 Posted March 30, 2008 Author Posted March 30, 2008 Re: Hospital Bill for V2 you can pay other players Hospital Bill so that they can get out of the hospital faster Quote
ronhouston2 Posted March 30, 2008 Author Posted March 30, 2008 Re: Hospital Bill for V2 im aboout to make a 3rd mod for the hospital i like the idea of makeing the hospital more fun cause alot of player when they get in there end up in to long Quote
Haunted Dawg Posted March 30, 2008 Posted March 30, 2008 Re: Hospital Bill for V2 This is bascily a revive function. :lol: Quote
ronhouston2 Posted March 30, 2008 Author Posted March 30, 2008 Re: Hospital Bill for V2 its not a revive you cant pay your hospital bill your self some one esle has to heres the link to add into the hospital.php [Pay Hospital Bill] Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.