Jump to content
MakeWebGames

[mccode v2] Take Your Partner On A Date


i need mccodes

Recommended Posts

Firstly make a new file called:

date.php

<?php

include "globals.php";

if(!$ir['married'])

{

die("You cant date, you're not even married");

}

print "<h3>Dating</h3>";

$q=mysql_query("SELECT u.*,us.* FROM users u LEFT JOIN userstats us ON u.userid=us.userid WHERE u.userid={$ir['married']}", $c);

$mr=mysql_fetch_array($q);

switch ( $_GET['action'] )

{

case "park1":

park1();

break;

case "park":

park();

break;

case "dinner1":

dinner1();

break;

case "dinner":

dinner();

break;

default:

idx();

break;

}

function idx()

{

print <<<EOF

<table width='70%' border=2>

<tr style='background-color:grey;'><th>Place</th><th>Cost</th></tr>

<td>Go To The Park</td><td>$100,000</td>

<tr>

<td>Go Out For A Meal</td><td>$500,000</td>

</table>

EOF;

}

function park1()

{

print "Are you sure you want to take your partner to the park?

 

Yes

 

No

";

}

function park()

{

global $ir, $mr, $c, $userid, $h, $fm;

if($ir['money'] < 100000)

{

die("You don't have enough money to go on a date.

> Back");

}

$k=money_formatter($with);

mysql_query("UPDATE users SET energy=energy+10 WHERE userid={$mr['userid']}", $c);

mysql_query("UPDATE users SET money=money-100000, brave=brave+10 WHERE userid={$ir['userid']}", $c);

event_add($mr['userid'],"Your partner {$ir['username']} took you on a nice date to the park", $c);

print "You take your partner on a nice date to the park.

The birds are chirping and the sun is shining.You and

your partner start to feel in a better mood.

> Back";

}

function dinner1()

{

print "Are you sure you want to take your partner out for a meal?

 

Yes

 

No

";

}

function dinner()

{

global $ir, $mr, $c, $userid, $h, $fm;

if($ir['money'] < 500000)

{

die("You don't have enough money to go on a date.

> Back");

}

mysql_query("UPDATE users SET will=will+40 WHERE userid={$mr['userid']}", $c);

mysql_query("UPDATE users SET money=money-500000 WHERE userid={$ir['userid']}", $c);

event_add($mr['userid'],"Your partner {$ir['username']} took you out to dinner at a elegant restaurant .", $c);

print "You walk with your partner to a nearby restaurant.

The waiter seats you at a table near the window.You and your

partner enjoy a nice evening at together.

> Back";

}

print "

 

 

 

 

";

$h->endpage();

?>

Then open partner.php

Find :

<td>> Send Your Love</td>

After That Add :

Then Your All Done :P :P

Link to comment
Share on other sites

  • 2 months later...
  • 3 weeks later...

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