Hello, I start using mccodes a while ago, so I decide to make some mods, this is my first mod that I named "Home Sweet Home" :D, with this mod you can go to your home and do some things like Watch TV, Play video games, listen to radio or read newspapers.
This is my first mod so it maybe have some errors or bug and mod isnt finished yet, need to add Watch TV and Listen Radio options,
I hope you like it, please reply here and tell me what you think
Here we go:
First create new file and name it sweethome.php and add following code:
<?php
include "globals.php";
global $db,$c,$ir, $set;
$hc=$set['hospital_count'];
$jc=$set['jail_count'];
$ec=$ir['new_events'];
$mc=$ir['new_mail'];
if($ir['hospital'])
?>
<html>
<head>
<title>Home Sweet Home</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link REL=stylesheet TYPE=text/css HREF=includes/in.css>
</head>
<body>
<table width="70%" border="1" align="center" cellpadding="0" cellspacing="0" bordercolor="#000000">
<tr>
<td height=22><center class=TableHeading>At home you can watch TV, play games on MobBox 360, listen to radior or just sit back and read newspapers.</center></td>
</tr>
<tr>
<td><table width="100%" border="0" cellspacing="3" cellpadding="0">
<tr>
<td><div align="center">Chose what you want to do.</div></td>
</tr>
<tr>
<td><div align="center">-[url="link here"]Watch TV[/url]-[url="mbox.php"]Play games on MobBox 360[/url]-[url="/radio"]Listen to radio[/url]-[url="newspaper.php"]Read newspaper[/url]</div></td>
</tr>
</table></td>
</tr>
</table>
</body>
</html>
Step 2:
Creat new file and name it mbox.php and add following code:
<?php
include "globals.php";
global $db,$c,$ir, $set;
$hc=$set['hospital_count'];
$jc=$set['jail_count'];
$ec=$ir['new_events'];
$mc=$ir['new_mail'];
if($ir['hospital'])
?>
<html>
<head>
<title>MobBox 360</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link REL=stylesheet TYPE=text/css HREF=includes/in.css>
</head>
<body>
<table width="70%" border="1" align="center" cellpadding="0" cellspacing="0" bordercolor="#000000">
<tr>
<td height=22><center class=TableHeading>Play games on MobBox 360 a next generation console.</center></td>
</tr>
<tr>
<td><table width="100%" border="0" cellspacing="3" cellpadding="0">
<tr>
<td><div align="center">Chose game you want to play.</div></td>
</tr>
<tr>
<td><div align="center">- [url="games/udef.swf"] [img=images/games/udef.png][/url]-[url="games/sumo.swf"][img=images/games/sumo.png][/url]-[url="games/pong.swf"][img=images/games/pong.png][/url]-[url="games/pool.swf"][img=images/games/pool.png] [/url]</div></td>
</tr>
</table></td>
</tr>
</table>
</body>
</html>
Step 3:
Add this
[url='sweethome.php']Your Home[/url]
to mainmenu.php
Step 4: Download the following and copy to your game folder
http://hotfile.com/dl/23436564/6170136/athomemode_AlucarD.rar.html
Thats it, mod should work fine now.
Watch TV and other stuff will be added soon ;)