Jump to content
MakeWebGames

ronhouston2

Members
  • Posts

    76
  • Joined

  • Last visited

    Never

Everything posted by ronhouston2

  1. <?php include "globals.php"; if($ir['energy'] < 10) { die("Sorry, it costs 10 energy to Arson a Home. You only have {$ir['energy']} energy. Come back later."); } if($ir['jail']) { die("You cannot Burn a House while in jail."); } if($ir['hospital']) { die("You cannot Burn a House while in hospital."); } if($_GET['ID'] == $userid) { die("Only the Crazy Burn there homes down."); } $_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"); } $mult=$r['level']*$r['level']; $chance=min(($ir['crimexp']/$mult)*50+1, 95); if(rand(1,100) < $chance) { $gain=$r['level']*5; print "You successfully Burned {$r['username']} Home Down > [url='jail.php']Back[/url]"; $db->query("UPDATE users SET crimexp=crimexp+{$gain} WHERE userid=$userid"); $db->query("UPDATE users SET jail=0 WHERE userid={$r['userid']}"); event_add($r['userid'], "[url='viewuser.php?u={$ir[']{$ir['username']}[/url] Burned your House Down. Click [url='burnhouse.php?ID={$userid}']here[/url] to Arson there Home. ", $c); } else { print "While trying Arson the House you were seen buy a Cop who seen you light the House up and take you to Jail Unlucky! > [url='jail.php']Go to Jail[/url]"; $time=min($mult, 100); $db->query("UPDATE users SET jail=$time, jail_reason='Caught trying to Burn Down the Home of {$r['username']}' WHERE userid=$userid"); event_add($r['userid'], "[url='viewuser.php?u={$ir[']{$ir['username']}[/url] was caught trying to Burn your house down.", $c); } $h->endpage(); ?>   I Made a Simple mod called Burn House you get Crime Exp. if you pass if you Fail you go to Jail add into veiew user this link   [Burn House]  
  2. 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
  3. Re: Hospital Time +3 Mate works verry good :-D :-D :-D :-D :-D I Like the mod
  4. Re: Hospital Escape for V2   <?php include "globals.php"; if($ir['energy'] < 10) { die("Sorry, it costs 10 energy to help someone escape from hospital. You only have {$ir['energy']} energy. Come back later."); } if($ir['jail']) { die("You cannot help escape people from hospital while in jail."); } if($ir['hospital']) { die("You cannot help escape people from hospital while in hospital."); } $_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 hospital!"); } $mult=$r['level']*$r['level']; $chance=min(($ir['crimexp']/$mult)*50+1, 95); if(rand(1,100) < $chance) { $gain=$r['level']*5; print "You successfully helped {$r['username']}escape out of hospital. > [url='jail.php']Back[/url]"; $db->query("UPDATE users SET crimexp=crimexp+{$gain} WHERE userid=$userid"); $db->query("UPDATE users SET hospital=0 WHERE userid={$r['userid']}"); event_add($r['userid'], "[url='viewuser.php?u={$ir[']{$ir['username']}[/url] Helped you Escape out of the Hospital", $c); } else { print "While trying to help escape your friend from hospital, a Cop spotted you and dragged you into jail yourself. Unlucky! > [url='jail.php']Go to Jail[/url]"; $time=min($mult, 100); $db->query("UPDATE users SET jail=$time, jail_reason='Caught trying to help escape from hospital {$r['username']}' WHERE userid=$userid"); event_add($r['userid'], "[url='viewuser.php?u={$ir[']{$ir['username']}[/url] was caught trying to bust you out of the hospital.", $c); } $h->endpage(); ?>   I updated it the events was not saying the right thing let me know if you have any problems thanks...........
  5. 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]
  6.   heres anouther new mod i made Escape From Hospital you can help spmeone escape from the hospital if you get caught you will be sent to JAIL [Hospital Escape] add this into the Hospital for the link to help spmeone escape from the Hospital
  7. 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
  8. Re: Hospital Bill for V2 you can pay other players Hospital Bill so that they can get out of the hospital faster
  9. Re: Emerngency Surgery for V2     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
  10.   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
  11. 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.......
  12. Re: Emerngency Surgery for V2 thanks i dint know how to do that :)
  13. <? 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='' WHERE userid=$userid", $c); } ?>   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`
  14. Re: [mccode] Whore House Mod FREE is there a way to make a mode like this but for the hospital and while users are in the hospital have it saying Emergency Surgery so they can get out faster????? that would be a nice mod to have
  15. Re: stop same ip transfers Good code i like the isea cause when you get some players who try to cheat they wont be able to transfer on the same IP but if there behind a Proxy that wont help as much such as pr0xy.com
  16. Re: Horse Racing[v1 + v2] this mod Rules thanks :) :) :)
  17. Re: CrystalShop Mod!! Free!! Whats the Point to have a V2 when it dont work
  18. Re: Total Crimes Done FREE i cant get this to work on V2 were do i add the my sql up date in do crime so that it will update the users?
  19. Re: [v1]Attack Stats FREE[v1] Will this work for V2????????? or is there a way to make one for V2 thanks
  20. Re: [mccode] Black Jack i need images for my black jack game
  21. Re: Updated Mailbox [v1] I Notice that it dont show how many messages we have next to the link
  22. Re: Updated Mailbox [v1] i notice that the mail box link is not working right as well but its ok just have to keep checking it thats all
  23. Re: Updated Mailbox [v1] Sorry about the Smilys in the last post i added a attach file for the V2 8-) 8-) 8-)
  24. Re: Updated Mailbox [v1] <?php include "globals.php"; if($ir['mailban']) { die("<center><font color=red><font size='4' face='Arial, Helvetica, sans-serif'>Error</font> You have been mail banned for {$ir['mailban']} days. Reason: {$ir['mb_reason']}</font>"); } $_GET['ID'] = abs((int) $_GET['ID']); print "<center><font size='4' face='Arial, Helvetica, sans-serif'>Mail Box</font><hr width=90%><table width=90% border=0><tr> <td width=20% align=center>> Compose</td> <td width=20% align=center>> Outbox</td> <td width=20% align=center>> Save</td> <td width=20% align=center>> Delete All</td> <td width=20% align=center>> Inbox</td> </tr></table><hr width=90%>"; switch($_GET['action']) { case 'inbox': mail_inbox(); break; case 'outbox': mail_outbox(); break; case 'compose': mail_compose(); break; case 'delete': mail_delete(); break; case 'send': mail_send(); break; case 'delall': mail_delall(); break; case 'delall2': mail_delall2(); break; case 'archive': mail_archive(); break; case 'read': mail_view(); break; case 'mailhome': mail_home(); break; default: mail_home(); break; } function mail_home() { global $ir,$c,$userid,$h; print "Below are the Last 10 Messages Sent to You<hr width=90%> <table width=90% cellpadding=3 class=maintable><tr bgcolor=AAAAAA><th width=30%>From</th><th width=40%>Subject</th><th width=15%>Status</th><th width=15%>Manage</th></tr>"; $q=mysql_query("SELECT m.*,u.* FROM mail m LEFT JOIN users u ON m.mail_from=u.userid WHERE m.mail_to=$userid ORDER BY mail_time DESC LIMIT 10",$c); while($r=mysql_fetch_array($q)) { $sent=date('F j, Y, g:i:s a',$r['mail_time']); print "<tr><td>"; if($r['userid']) { print "{$r['username']} [{$r['userid']}]"; } else { print "SYSTEM"; } $fm=urlencode($r['mail_subject']); if($r['mail_read'] == 0) { $status="<font color=red>Unread</font>"; } else { $status="<font color=green>Read</font>"; } print "</td>\n<td>Subject: {$r['mail_subject']} Sent at: $sent</td><td><center> $status</td><td><center>[Delete] [Read]</td></tr>"; } } function mail_view() { global $ir,$c,$userid,$h; print " <table width=90% cellpadding=3 class=maintable>"; $id= abs((int) $_GET['ID']); $q=mysql_query("SELECT m.*,u.* FROM mail m LEFT JOIN users u ON m.mail_from=u.userid WHERE m.mail_id=$id LIMIT 1"); while($r=mysql_fetch_array($q)) { $sent=date('F j, Y, g:i:s a',$r['mail_time']); print "<tr><td bgcolor=#AAAAAA>"; if($r['userid']) { print "Mail From: {$r['username']} [{$r['userid']}]"; } else { print "SYSTEM"; } $fm=urlencode($r['mail_text']); print "<th bgcolor=#AAAAAA width=75%>Subject: {$r['mail_subject']}</th></tr><tr><td>Sent at: $sent Reply Delete Report</td><td>{$r['mail_text']}</td></tr></table> <form action='mailbox.php?action=send' method='post'> <table width=90% cellpadding=3 class='maintable'><th colspan=2 bgcolor=#AAAAAA>Reply To This Message</th> <tr> <td>User's ID:</td> <td><input type='text' name='userid' value='{$r['userid']}' size='5' maxlength='10' /> <font size=1.9>(E.g. 123456)</font></td></tr><tr> <td>Subject:</td> <td><input type='text' name='subject' size='50' maxlength='50' value=' ' /> <font size=1.9>(E.g. Hello there)</font></td></tr><tr> <td>Message:</td> <td><textarea rows='10' cols='75%' name='message'></textarea></td></tr><tr> <td colspan=2><center><input type='submit' value='Send' /></td></tr></form>"; } mysql_query("UPDATE mail SET mail_read=1 WHERE mail_id=$id",$c); } function mail_outbox() { global $ir,$c,$userid,$h; print "Below are the Last 10 Messages You have Sent<hr width=90%> <table width=90% cellpadding=3 class=maintable><tr bgcolor=AAAAAA><th width=35%>From</th><th width=50%>Subject</th><th width=15%>Manage</th></tr>"; $q=mysql_query("SELECT m.*,u.* FROM mail m LEFT JOIN users u ON m.mail_to=u.userid WHERE m.mail_from=$userid ORDER BY mail_time DESC LIMIT 10",$c); while($r=mysql_fetch_array($q)) { $sent=date('F j, Y, g:i:s a',$r['mail_time']); print "<tr><td>"; if($r['userid']) { print "{$r['username']} [{$r['userid']}]"; } else { print "SYSTEM"; } $fm=urlencode($r['mail_subject']); if($r['mail_read'] == 0) { $status="<font color=red>Unread</font>"; } else { $status="<font color=green>Read</font>"; } print "</td>\n<td>Subject: {$r['mail_subject']} Sent at: $sent</td><td><center>[Read]</td></tr>"; } } function mail_compose() { global $ir,$c,$userid,$h; print "<form action='mailbox.php?action=send' method='post'> <table width=90% cellpadding=3 class='maintable'> <tr><td colspan=3 bgcolor=#AAAAAA> Send a Message</td></tr><tr> <td>User's ID:</td> <td><input type='text' name='userid' value='' size='5' maxlength='10' /> <font size=1.9>(E.g. 123456)</font></td></tr><tr> <td>Subject:</td> <td><input type='text' name='subject' size='50' maxlength='50' value=' ' /> <font size=1.9>(E.g. Hello there)</font></td></tr><tr> <td>Message:</td> <td><textarea rows='10' cols='75%' name='message'></textarea></td></tr><tr> <td colspan=2><center><input type='submit' value='Send' /></td></tr></table></form><hr width=90%>> Back to Messages<hr width=90%>"; if($_GET['ID']) { print " <table width=90% cellpadding=3 class='maintable'><tr><td colspan=2 bgcolor=#AAAAAA>Your last 5 mails to/from this person:</td></tr>"; $q=mysql_query("SELECT m.*,u1.username as sender from mail m left join users u1 on m.mail_from=u1.userid WHERE (m.mail_from=$userid AND m.mail_to={$_GET['ID']}) OR (m.mail_to=$userid AND m.mail_from={$_GET['ID']}) ORDER BY m.mail_time DESC LIMIT 5",$c); while($r=mysql_fetch_array($q)) { $sent=date('F j, Y, g:i:s a',$r['mail_time']); print "<tr><td bgcolor=#AAAAAA>$sent</td> <td bgcolor=#AAAAAA>{$r['sender']} wrote: {$r['mail_text']}</td></tr>"; } print "</table>"; } } function mail_send() { global $ir,$c,$userid,$h; $subj=str_replace(array("\n"),array(" "),strip_tags($_POST['subject'])); $msg=str_replace(array("\n"),array(" "),strip_tags($_POST['message'])); $codes = array( ':]', ':D', ':oo:', 'O.o', ':/', ':angry:', ':?:', ':lol:', ':-:', ':O', ':(', 'O.O', ':roll:', ':zzz:', ':)', ':P', ':S', ':nut:', ';)', ':heart:', 'XD', ); $images = array( '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', ); $newmsg = str_replace($codes, $images, $msg); $to= (int) $_POST['userid']; mysql_query("INSERT INTO mail VALUES ('',0,$userid,$to,unix_timestamp(),'$subj','$newmsg')",$c) or die(mysql_error()); print "Your Message has been Sent. > Back"; } function mail_delete() { global $ir,$c,$userid,$h; mysql_query("DELETE FROM mail WHERE mail_id={$_GET['ID']} AND mail_to=$userid",$c); print "Message deleted. > Back"; } function mail_delall() { global $ir,$c,$userid,$h; print "This will delete all the messages in your inbox. There is NO undo, so be sure. > Yes, delete all messages > No, go back"; } function mail_delall2() { global $ir,$c,$userid,$h; mysql_query("DELETE FROM mail WHERE mail_to=$userid",$c); print "All ".mysql_affected_rows($c)." mails in your inbox were deleted. > Back"; } function mail_archive() { global $ir,$c,$userid,$h; print "This tool will download an archive of all your messages. > Download Inbox > Download Outbox"; } $h->endpage(); ?> This is the right one for V2 the other one had an Error on it so i fixed it :D :D
  25. Re: NEW!! Advanced House Break-In is this for V2?????
×
×
  • Create New...