Jump to content
MakeWebGames

[mccode v2] Emerngency Surgery


ronhouston2

Recommended Posts

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`

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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.......

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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:

Link to comment
Share on other sites

  • 3 months later...

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

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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%).

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...