ronhouston2 Posted March 30, 2008 Posted March 30, 2008 You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. in hospital.php make a Link under the Hospital like this Emergency Surgery if you have any Problems let me know i made this my self any uptaes to make it better would be nice......................... Added code tags -- Tezza` Quote
shaved92bravada Posted March 30, 2008 Posted March 30, 2008 Re: Emerngency Surgery for V2 You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. in hospital.php make a Link under the Hospital like this Emergency Surgery if you have any Problems let me know i made this my self any uptaes to make it better would be nice......................... thought I would repost that so it was in the code format Quote
ronhouston2 Posted March 30, 2008 Author Posted March 30, 2008 Re: Emerngency Surgery for V2 thanks i dint know how to do that :) Quote
jeeppimp Posted March 30, 2008 Posted March 30, 2008 Re: Emerngency Surgery for V2 Thanks for this mode!! I stuck it under hospital at the top in mainmenu.php so it comes out only when you get put in the H like so... You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Quote
ronhouston2 Posted March 30, 2008 Author Posted March 30, 2008 Re: Emerngency Surgery for V2 I like the idea of haveing it in the Menu area that way it shows up in the Meneu when your in the Hospital for some reason i cant get the Reason to show up in the hospital but im sure we can get it to work im going to make a new mod in the hospital as well....... Quote
ronhouston2 Posted March 30, 2008 Author Posted March 30, 2008 Re: Emerngency Surgery for V2 <? session_start(); require "globals.php"; if($ir['hospital']==0) { die("You arent in the hospital!"); } //set $cost to what you want it to cost $cost=rand(100,500); //set $stat to the stat you want it to use..eg. brave, energy, will etc If ($ir['money']<$cost ) { die ("Your Dont have enough money to have a Emerngency Surgery."); } if(rand(1,100) <= 20) { print "Your Emergency Surgery went well your out of the hospital."; mysql_query("update users set money=money-$cost where userid=$userid",$c)or die(mysql_error()); mysql_query("UPDATE users SET hospital=0 WHERE userid=$userid",$c); } else { $hospitaltime=(int) rand(1,30); print "Your Emergency Surgery Failed. The Doctors Make a Mistake and your in the Hospital longer."; mysql_query("UPDATE users SET hospital=hospital+$hospitaltime, money=money-$cost WHERE userid=$userid", $c); mysql_query("UPDATE users SET hospreason='Emergency Surgery Faild' WHERE userid=$userid", $c); } ?> I have up dated the mod the reason will now show up in the Hospital i think this is a nice mod :D :D :D Quote
Strats Posted April 1, 2008 Posted April 1, 2008 Re: Emerngency Surgery for V2 Can you explain what the mod does? Quote
ronhouston2 Posted April 1, 2008 Author Posted April 1, 2008 Re: Emerngency Surgery for V2 When someone gose into the Hospital they will beable to get out faster when they go into Emergency Surgery but if the Emergency Surgery fails there in the hospital longer Quote
BradBoy08 Posted April 8, 2008 Posted April 8, 2008 Re: Emerngency Surgery for V2 i have a good idea for this will post in a bit Quote
shedh Posted April 8, 2008 Posted April 8, 2008 Re: Emerngency Surgery for V2 code: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Coding is not easy to learn but when your trying to code can you please type the outputs in english at about line 6: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. its not arent its are not or ain't At about line 13: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. its not your don't have enough money its you! come on its so simple Quote
BradBoy08 Posted April 8, 2008 Posted April 8, 2008 Re: Emerngency Surgery for V2 1. Ain't isn't a word it was Arn't 2 i had trouble was trying to turn the script in to a revive so that another player can revive other people for a certain amount of energy Quote
fkd08 Posted April 8, 2008 Posted April 8, 2008 Re: Emerngency Surgery for V2 Both are wrong. It's aren't. Fully written it's are not. You remove the 'o' and replace it with an apostrophe. :-D Oh and it's ain't and not aint. It's a contraction of either have not, has not, is not or are not. :wink: Quote
Ishy Posted April 8, 2008 Posted April 8, 2008 Re: Emerngency Surgery for V2 I feel that you should have a chance to get out of Jail, as it is more realistic e.g.Jail Run but in Hospital I think it is a place where you have to wait to get out of. But good work. Quote
-HIGH- Posted July 28, 2008 Posted July 28, 2008 Re: Emerngency Surgery for V2 1. Ain't isn't a word it was Arn't 2 i had trouble was trying to turn the script in to a revive so that another player can revive other people for a certain amount of energy Lol your wrong ain`t is to a word Quote
Mark F Posted July 28, 2008 Posted July 28, 2008 Re: Emerngency Surgery for V2 I feel that you should have a chance to get out of Jail, as it is more realistic e.g.Jail Run but in Hospital I think it is a place where you have to wait to get out of. But good work. I agree with Toxication Quote
mikrows Posted July 31, 2008 Posted July 31, 2008 Re: Emerngency Surgery for V2 How about setting it to "Go Private", pay to use private hospital (like in the UK "Bupa", I don't know about private hospitals in the USA), if the member has enough money then the recovery time could be reduced (say by a random figure between 25/75%). Quote
Miniman Posted July 31, 2008 Posted July 31, 2008 Re: Emerngency Surgery for V2 I feel that you should have a chance to get out of Jail, as it is more realistic e.g.Jail Run but in Hospital I think it is a place where you have to wait to get out of. But good work. I agree with Toxication Well just convert this mod then?? :? It work's fine. It's not hard at all. 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.