Jump to content
MakeWebGames

KDawg08

Members
  • Posts

    294
  • Joined

  • Last visited

Everything posted by KDawg08

  1. Re: Log in screen :) Here is the screenie for everyone who is begging for it... I didn't add a banner i only did this so people would stop asking for a screenie
  2. Re: [mccode v2] PIjrc Chat Jameos Way ! That's Jameo for ya... always ripping off premade scripts... I have seen this in MANY MANY places, and I have my own in which I gave to Jameo and he tried to sell it... This should not be posted here by him as he didn't create it...
  3. Re: [review]Serious Wars 4.5/5 The game has class, It's not an easy game but at the same time it pulls in your attention. The chat is always active, Loads of members on daily. Everyone is pretty helpful for the most part. The one thing that kinda sucks is that until you hit ATLEAST level 5 you have to do the first 2 crimes and you usually end up in jail for 20-28 minutes. Aside of that, Everything was setup nicely including the layout.
  4. KDawg08

    [REVIEW]

    Re: [REVIEW] oh and just to give u a heads up, no i'm not the person u had to delete.
  5. KDawg08

    [REVIEW]

    Re: [REVIEW]   the link didn't show up right away and not only those but you have a temple glitch a bank glitch and a few others, i could addmax funds to my bank while having 0 money
  6. KDawg08

    [REVIEW]

    Re: [REVIEW] game is very very basic... where do u see your money? credit/crystals? etc... you have some heavy heavy work to do to this game as there are extreme bug fixes needed... pm me on here if u want to know one of th ebiggest ones i found.
  7. Re: battlearena   For someone who sells mods, you would think you could figure this out. I'm a hardcore noob with this kind of stuff but I've tried it, and it's not bad. But again... Maybe you should learn that part before posting my mods for sale...
  8. Re: y isnt der a jail in v1 Simple... Check the forums for this, it's been asked many times and there are MANY MANY free files of jail/prison v1.
  9. Re: Tutorial: v1 - v2 Conversion How can you not convert v1 to v2 and vice versa? It is probably the SIMPLEST thing to do with mccodes scripts...
  10. Re: Texas Hold 'Em Mod wouldn't we all
  11. Re: Odd attack problem One day they will finally smack around the coders and members in here that are always saying stupid shit like... "I DOUBT YOU HAVE A LEGAL VERSION" It's ridiculous to assume shit that you can't prove... Before making those kind of judgments maybe you should grow the hell up and learn to ASK people or FIND PROOF before you trash talk about someones game not being legal. I've had a few of you pull it on me but I have a legal copy and I've proven it to a few people. I still have the receipts from buying it. So don't go judging someones game about legalities until you have the proof to show it's not legal.
  12. Re: Updated Mailbox [v1] Here is my current version of the V1 mailbox. This includes very little updates. Most just added the DELETE READ to it.   <?php /*----------------------------------------------------- -- Mono Country v1.0 BETA -- A product of DBS-entertainment -- Copyright held 2005 by Dabomstew -- INDEX.php -- Editted by Many -----------------------------------------------------*/ session_start(); require "global_func.php"; if($_SESSION['loggedin']==0) { header("Location: login.php");exit; } $userid=$_SESSION['userid']; require "header.php"; $h = new headers; $h->startheaders(); include "mysql.php"; global $c; $is=mysql_query("SELECT u.*,us.* FROM users u LEFT JOIN userstats us ON u.userid=us.userid WHERE u.userid=$userid",$c) or die(mysql_error()); $ir=mysql_fetch_array($is); $current_row = 0; check_level(); $fm=money_formatter($ir['money']); $cm=money_formatter($ir['crystals'],''); $lv=date('F j, Y, g:i a',$ir['laston']); $h->userdata($ir,$lv,$fm,$cm); $h->menuarea(); 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. [b]Reason: {$ir['mb_reason']}</font>[/b]"); } $_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=12.5% align=center>> [url='mailbox.php?action=compose'] Compose[/url]</td> <td width=12.5% align=center>> [url='mailbox.php?action=mailhome'] Inbox[/url]</td> <td width=12.5% align=center>> [url='mailbox.php?action=outbox'] Outbox[/url]</td> <td width=12.5% align=center>> [url='mailbox.php?action=archive'] Save[/url]</td> <td width=12.5% align=center>> [url='mailblock.php']Message Blocker[/url]</td> <td width=12.5% align=center>> [url='mailbox.php?action=delread'] Delete Read[/url]</td> <td width=12.5% align=center>> [url='mailbox.php?action=delall'] Delete All[/url]</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 'delread': mail_delread(); break; case 'delread2': mail_delread2(); break; case 'delall': mail_delall(); break; case 'delall2': mail_delall2(); break; case 'archive': mail_archive(); break; case 'read': mail_view(); break; case 'readmail': mail_view_outbox(); 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=2><tr bgcolor=#000000><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 class='row$current_row'><td>"; if($r['userid']) { print "[url='viewuser.php?u={$r[']{$r['username']}[/url] [{$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>[b]Subject:[/b] [url='mailbox.php?action=read&ID={$r[']{$r['mail_subject']}[/url] [i]Sent at: $sent[/i]</td><td><center> $status</td><td><center>[[url='mailbox.php?action=delete&ID={$r[']Delete[/url]] [[url='mailbox.php?action=read&ID={$r[']Read[/url]]</td></tr>"; $current_row = 1 - $current_row; } } function mail_view() { global $ir,$c,$userid,$h; print " <table width=90% cellpadding=2>"; $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']); if($ir['userid'] <> $r['mail_to']) { die("You cannot read mail which does not belong to you..."); } print "<tr class='row$current_row'><td bgcolor=#AAAAAA>"; if($r['userid']) { print "[b]Mail From: [/b][url='viewuser.php?u={$r[']{$r['username']}[/url] [{$r['userid']}]"; } else { print "SYSTEM"; } $fm=urlencode($r['mail_text']); print "<th bgcolor=#AAAAAA width=75%>[b]Subject:[/b] {$r['mail_subject']}</th></tr><tr><td>Sent at: $sent [url='mailbox.php?action=compose&ID={$r[']Reply[/url] [url='mailbox.php?action=delete&ID={$r[']Delete[/url] [url='preport.php?ID={$r[']Report[/url]</td><td>{$r['mail_text']}</td></tr></table> <form action='mailbox.php?action=send' method='post'> <table width=90% cellpadding=2><th colspan=2 bgcolor=#AAAAAA>[b]Reply To This Message[/b]</th> <tr class='row$current_row'> <td>User's ID:</td> <td><input type='text' name='userid' value='{$r['userid']}' size='5' maxlength='10' /> [i]<font size=1.9>(E.g. 123456)</font>[/i]</td></tr><tr> <td>Subject:</td> <td><input type='text' name='subject' size='50' maxlength='50' value=' ' /> [i]<font size=1.9>(E.g. Hello there)</font>[/i]</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></td></tr></form><tr><td colspan=2 align=center>:] = [img=smilies/happy.gif] :D = [img=smilies/biggrin.gif] :oo = [img=smilies/cool.gif] O.o = [img=smilies/blink.gif] :/ = [img=smilies/dry.gif] :angry = [img=smilies/angry.gif] :? = [img=smilies/huh.gif] :lol = [img=smilies/laugh.gif] :-: = [img=smilies/mellow.gif] :o = [img=smilies/ohmy.gif] :( = [img=smilies/sad.gif] o.o = [img=smilies/ph34r.gif] :roll = [img=smilies/rolleyes.gif] :zzz = [img=smilies/sleep.gif] :) = [img=smilies/smile.gif] :P = [img=smilies/tongue.gif] :S = [img=smilies/unsure.gif] :nut = [img=smilies/wacko.gif] ;) = [img=smilies/wink.gif] :heart = [img=smilies/wub.gif]</td></tr>"; $current_row = 1 - $current_row; } mysql_query("UPDATE mail SET mail_read=1 WHERE mail_id=$id",$c); } function mail_view_outbox() { global $ir,$c,$userid,$h; print " <table width=90% cellpadding=2>"; $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']); if($ir['userid'] <> $r['mail_from']) { die("You cannot read mail which you haven't sent..."); } print "<tr class='row$current_row'><td bgcolor=#AAAAAA>"; if($r['userid']) { print "[b]Mail From: [/b][url='viewuser.php?u={$r[']{$r['username']}[/url] [{$r['userid']}]"; } else { print "SYSTEM"; } $fm=urlencode($r['mail_text']); print "<th bgcolor=#AAAAAA width=75%>[b]Subject:[/b] {$r['mail_subject']}</th></tr><tr><td>Sent at: $sent [url='mailbox.php?action=compose&ID={$r[']Reply[/url] [url='mailbox.php?action=delete&ID={$r[']Delete[/url] [url='preport.php?ID={$r[']Report[/url]</td><td>{$r['mail_text']}</td></tr></table> <form action='mailbox.php?action=send' method='post'> <table width=90% cellpadding=2><th colspan=2 bgcolor=#AAAAAA>[b]Reply To This Message[/b]</th> <tr class='row$current_row'> <td>User's ID:</td> <td><input type='text' name='userid' value='{$r['userid']}' size='5' maxlength='10' /> [i]<font size=1.9>(E.g. 123456)</font>[/i]</td></tr><tr> <td>Subject:</td> <td><input type='text' name='subject' size='50' maxlength='50' value=' ' /> [i]<font size=1.9>(E.g. Hello there)</font>[/i]</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><tr><td colspan=2 align=center>:] = [img=smilies/happy.gif] :D = [img=smilies/biggrin.gif] :oo = [img=smilies/cool.gif] O.o = [img=smilies/blink.gif] :/ = [img=smilies/dry.gif] :angry = [img=smilies/angry.gif] :? = [img=smilies/huh.gif] :lol = [img=smilies/laugh.gif] :-: = [img=smilies/mellow.gif] :o = [img=smilies/ohmy.gif] :( = [img=smilies/sad.gif] o.o = [img=smilies/ph34r.gif] :roll = [img=smilies/rolleyes.gif] :zzz = [img=smilies/sleep.gif] :) = [img=smilies/smile.gif] :P = [img=smilies/tongue.gif] :S = [img=smilies/unsure.gif] :nut = [img=smilies/wacko.gif] ;) = [img=smilies/wink.gif] :heart = [img=smilies/wub.gif]</td></tr></form>"; $current_row = 1 - $current_row; } 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=2><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 class='row$current_row'><td>"; if($r['userid']) { print "[url='viewuser.php?u={$r[']{$r['username']}[/url] [{$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>[b]Subject:[/b] [url='mailbox.php?action=readmail&ID={$r[']{$r['mail_subject']}[/url] [i]Sent at: $sent[/i]</td><td><center>[[url='mailbox.php?action=readmail&ID={$r[']Read[/url]]</td></tr>"; $current_row = 1 - $current_row; } } function mail_compose() { global $ir,$c,$userid,$h; print "<form action='mailbox.php?action=send' method='post'> <table width=90% cellpadding=2> <tr><td colspan=3 bgcolor=#AAAAAA>[b] Send a Message[/b]</td></tr><tr> <td>User's ID:</td> <td><input type='text' name='userid' value='{$_GET['ID']}' size='5' maxlength='10' /> [i]<font size=1.9>(E.g. 123456)</font>[/i]</td></tr><tr> <td>Subject:</td> <td><input type='text' name='subject' size='50' maxlength='50' value=' ' /> [i]<font size=1.9>(E.g. Hello there)</font>[/i]</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><tr><td colspan=2 align=center>:] = [img=smilies/happy.gif] :D = [img=smilies/biggrin.gif] :oo = [img=smilies/cool.gif] O.o = [img=smilies/blink.gif] :/ = [img=smilies/dry.gif] :angry = [img=smilies/angry.gif] :? = [img=smilies/huh.gif] :lol = [img=smilies/laugh.gif] :-: = [img=smilies/mellow.gif] :o = [img=smilies/ohmy.gif] :( = [img=smilies/sad.gif] o.o = [img=smilies/ph34r.gif] :roll = [img=smilies/rolleyes.gif] :zzz = [img=smilies/sleep.gif] :) = [img=smilies/smile.gif] :P = [img=smilies/tongue.gif] :S = [img=smilies/unsure.gif] :nut = [img=smilies/wacko.gif] ;) = [img=smilies/wink.gif] :heart = [img=smilies/wub.gif]</td></tr><hr width=90%>> [url='mailbox.php']Back to Messages[/url]<hr width=90%>"; if($_GET['ID']) { print " <table width=90% cellpadding=2><tr><td colspan=2 bgcolor=#AAAAAA>[b]Your last 5 mails to/from this person:[/b]</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 class='row$current_row'><td>$sent</td> <td>[b]{$r['sender']} wrote:[/b] {$r['mail_text']}</td></tr>"; $current_row = 1 - $current_row; } 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(":)", ";)", ":o",":O", ":d",":D", ":s", ":(", ":red", ":clown", ":bashful", ":x", ":green", ":|", ";(", ":]", ":horny", ":cool", ":banana"); $images = array("<img src=/smilies/smiley1.gif>", "<img src=/smilies/smiley2.gif>", "<img src=/smilies/smiley3.gif>", "<img src=/smilies/smiley3.gif>", "<img src=/smilies/smiley4.gif>", "<img src=/smilies/smiley4.gif>", "<img src=/smilies/smiley5.gif>", "<img src=/smilies/smiley6.gif>", "<img src=/smilies/smiley7.gif>", "<img src=/smilies/smiley8.gif>", "<img src=/smilies/smiley9.gif>", "<img src=/smilies/smiley10.gif>", "<img src=/smilies/smiley11.gif>", "<img src=/smilies/smiley12.gif>", "<img src=/smilies/smiley13.gif>", "<img src=/smilies/smiley14.gif>", "<img src=/smilies/smiley15.gif>", "<img src=/smilies/smiley16.gif>", "<img src=/smilies/banana.gif>"); $newmsg = str_replace($codes, $images, $msg); $to= (int) $_POST['userid']; if($ir['user_level'] < 2) { $q_mb=mysql_query("SELECT * FROM mailblock WHERE mb_ADDED=$userid AND mb_ADDER=$to",$c); if (mysql_num_rows($q_mb)>0) { die("This user has BLOCKED you from sending them messages."); $h->endpage(); exit; } } mysql_query("INSERT INTO mail VALUES ('',0,$userid,$to,unix_timestamp(),'$subj','$newmsg')",$c) or die(mysql_error()); mysql_query("INSERT INTO mailarc VALUES ('',0,$userid,$to,unix_timestamp(),'$subj','$newmsg')",$c); print "Message sent. [url='mailbox.php']> Back[/url]"; } 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. [url='mailbox.php']> Back[/url]"; } function mail_delread() { global $ir,$c,$userid,$h; print "This will delete all the READ messages in your inbox. There is [b]NO[/b] undo, so be sure. [url='mailbox.php?action=delread2']> Yes, delete all READ messages[/url] [url='mailbox.php']> No, go back[/url]"; } function mail_delread2() { global $ir,$c,$userid,$h; $ccc=mysql_query("SELECT * FROM mail WHERE mail_to=$userid AND mail_read=1",$c); mysql_query("DELETE FROM mail WHERE mail_to=$userid AND mail_read=1",$c); print "All ".mysql_num_rows($ccc)." READ mails in your inbox were deleted. [url='mailbox.php']> Back[/url]"; } function mail_delall() { global $ir,$c,$userid,$h; print "This will delete all the messages in your inbox. There is [b]NO[/b] undo, so be sure. [url='mailbox.php?action=delall2']> Yes, delete all messages[/url] [url='mailbox.php']> No, go back[/url]"; } 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. [url='mailbox.php']> Back[/url]"; } function mail_archive() { global $ir,$c,$userid,$h; print "This tool will download an archive of all your messages. [url='dlarchive.php?a=inbox']> Download Inbox[/url] [url='dlarchive.php?a=outbox']> Download Outbox[/url]"; } $h->endpage(); ?>
  13. Re: Updated Mailbox [v1] My setup of it is for V1 but here is a V2 format...   <?php /*----------------------------------------------------- -- Mono Country v1.0 BETA -- A product of DBS-entertainment -- Copyright held 2005 by Dabomstew -- INDEX.php -- Editted by Many. -----------------------------------------------------*/ 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. [b]Reason: {$ir['mb_reason']}</font>[/b]"); } $_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=12.5% align=center>> [url='mailbox.php?action=compose'] Compose[/url]</td> <td width=12.5% align=center>> [url='mailbox.php?action=mailhome'] Inbox[/url]</td> <td width=12.5% align=center>> [url='mailbox.php?action=outbox'] Outbox[/url]</td> <td width=12.5% align=center>> [url='mailbox.php?action=archive'] Save[/url]</td> <td width=12.5% align=center>> [url='mailblock.php']Message Blocker[/url]</td> <td width=12.5% align=center>> [url='mailbox.php?action=delread'] Delete Read[/url]</td> <td width=12.5% align=center>> [url='mailbox.php?action=delall'] Delete All[/url]</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 'delread': mail_delread(); break; case 'delread2': mail_delread2(); break; case 'delall': mail_delall(); break; case 'delall2': mail_delall2(); break; case 'archive': mail_archive(); break; case 'read': mail_view(); break; case 'readmail': mail_view_outbox(); break; case 'mailhome': mail_home(); break; default: mail_home(); break; } function mail_home() { global $ir,$c,$userid,$h,$db; print "Below are the Last 10 Messages Sent to You<hr width=90%> <table width=90% cellpadding=2><tr bgcolor=#000000><th width=30%>From</th><th width=40%>Subject</th><th width=15%>Status</th><th width=15%>Manage</th></tr>"; $q=$db->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=$db->fetch_row($q)) { $sent=date('F j, Y, g:i:s a',$r['mail_time']); print "<tr class='row$current_row'><td>"; if($r['userid']) { print "[url='viewuser.php?u={$r[']{$r['username']}[/url] [{$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>[b]Subject:[/b] [url='mailbox.php?action=read&ID={$r[']{$r['mail_subject']}[/url] [i]Sent at: $sent[/i]</td><td><center> $status</td><td><center>[[url='mailbox.php?action=delete&ID={$r[']Delete[/url]] [[url='mailbox.php?action=read&ID={$r[']Read[/url]]</td></tr>"; $current_row = 1 - $current_row; } } function mail_view() { global $ir,$c,$userid,$h,$db; print " <table width=90% cellpadding=2>"; $id= abs((int) $_GET['ID']); $q=$db->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=$db->fetch_row($q)) { $sent=date('F j, Y, g:i:s a',$r['mail_time']); if($ir['userid'] <> $r['mail_to']) { die("You cannot read mail which does not belong to you..."); } print "<tr class='row$current_row'><td bgcolor=#AAAAAA>"; if($r['userid']) { print "[b]Mail From: [/b][url='viewuser.php?u={$r[']{$r['username']}[/url] [{$r['userid']}]"; } else { print "SYSTEM"; } $fm=urlencode($r['mail_text']); print "<th bgcolor=#AAAAAA width=75%>[b]Subject:[/b] {$r['mail_subject']}</th></tr><tr><td>Sent at: $sent [url='mailbox.php?action=compose&ID={$r[']Reply[/url] [url='mailbox.php?action=delete&ID={$r[']Delete[/url] [url='preport.php?ID={$r[']Report[/url]</td><td>{$r['mail_text']}</td></tr></table> <form action='mailbox.php?action=send' method='post'> <table width=90% cellpadding=2><th colspan=2 bgcolor=#AAAAAA>[b]Reply To This Message[/b]</th> <tr class='row$current_row'> <td>User's ID:</td> <td><input type='text' name='userid' value='{$r['userid']}' size='5' maxlength='10' /> [i]<font size=1.9>(E.g. 123456)</font>[/i]</td></tr><tr> <td>Subject:</td> <td><input type='text' name='subject' size='50' maxlength='50' value=' ' /> [i]<font size=1.9>(E.g. Hello there)</font>[/i]</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></td></tr></form><tr><td colspan=2 align=center>:] = [img=smilies/happy.gif] :D = [img=smilies/biggrin.gif] :oo = [img=smilies/cool.gif] O.o = [img=smilies/blink.gif] :/ = [img=smilies/dry.gif] :angry = [img=smilies/angry.gif] :? = [img=smilies/huh.gif] :lol = [img=smilies/laugh.gif] :-: = [img=smilies/mellow.gif] :o = [img=smilies/ohmy.gif] :( = [img=smilies/sad.gif] o.o = [img=smilies/ph34r.gif] :roll = [img=smilies/rolleyes.gif] :zzz = [img=smilies/sleep.gif] :) = [img=smilies/smile.gif] :P = [img=smilies/tongue.gif] :S = [img=smilies/unsure.gif] :nut = [img=smilies/wacko.gif] ;) = [img=smilies/wink.gif] :heart = [img=smilies/wub.gif]</td></tr>"; $current_row = 1 - $current_row; } $db->query("UPDATE mail SET mail_read=1 WHERE mail_id=$id",$c); } function mail_view_outbox() { global $ir,$c,$userid,$h,$db; print " <table width=90% cellpadding=2>"; $id= abs((int) $_GET['ID']); $q=$db->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=$db->fetch_row($q)) { $sent=date('F j, Y, g:i:s a',$r['mail_time']); if($ir['userid'] <> $r['mail_from']) { die("You cannot read mail which you haven't sent..."); } print "<tr class='row$current_row'><td bgcolor=#AAAAAA>"; if($r['userid']) { print "[b]Mail From: [/b][url='viewuser.php?u={$r[']{$r['username']}[/url] [{$r['userid']}]"; } else { print "SYSTEM"; } $fm=urlencode($r['mail_text']); print "<th bgcolor=#AAAAAA width=75%>[b]Subject:[/b] {$r['mail_subject']}</th></tr><tr><td>Sent at: $sent [url='mailbox.php?action=compose&ID={$r[']Reply[/url] [url='mailbox.php?action=delete&ID={$r[']Delete[/url] [url='preport.php?ID={$r[']Report[/url]</td><td>{$r['mail_text']}</td></tr></table> <form action='mailbox.php?action=send' method='post'> <table width=90% cellpadding=2><th colspan=2 bgcolor=#AAAAAA>[b]Reply To This Message[/b]</th> <tr class='row$current_row'> <td>User's ID:</td> <td><input type='text' name='userid' value='{$r['userid']}' size='5' maxlength='10' /> [i]<font size=1.9>(E.g. 123456)</font>[/i]</td></tr><tr> <td>Subject:</td> <td><input type='text' name='subject' size='50' maxlength='50' value=' ' /> [i]<font size=1.9>(E.g. Hello there)</font>[/i]</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><tr><td colspan=2 align=center>:] = [img=smilies/happy.gif] :D = [img=smilies/biggrin.gif] :oo = [img=smilies/cool.gif] O.o = [img=smilies/blink.gif] :/ = [img=smilies/dry.gif] :angry = [img=smilies/angry.gif] :? = [img=smilies/huh.gif] :lol = [img=smilies/laugh.gif] :-: = [img=smilies/mellow.gif] :o = [img=smilies/ohmy.gif] :( = [img=smilies/sad.gif] o.o = [img=smilies/ph34r.gif] :roll = [img=smilies/rolleyes.gif] :zzz = [img=smilies/sleep.gif] :) = [img=smilies/smile.gif] :P = [img=smilies/tongue.gif] :S = [img=smilies/unsure.gif] :nut = [img=smilies/wacko.gif] ;) = [img=smilies/wink.gif] :heart = [img=smilies/wub.gif]</td></tr></form>"; $current_row = 1 - $current_row; } $db->query("UPDATE mail SET mail_read=1 WHERE mail_id=$id",$c); } function mail_outbox() { global $ir,$c,$userid,$h,$db; print "Below are the Last 10 Messages You have Sent<hr width=90%> <table width=90% cellpadding=2><tr bgcolor=AAAAAA><th width=35%>From</th><th width=50%>Subject</th><th width=15%>Manage</th></tr>"; $q=$db->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=$db->fetch_row($q)) { $sent=date('F j, Y, g:i:s a',$r['mail_time']); print "<tr class='row$current_row'><td>"; if($r['userid']) { print "[url='viewuser.php?u={$r[']{$r['username']}[/url] [{$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>[b]Subject:[/b] [url='mailbox.php?action=readmail&ID={$r[']{$r['mail_subject']}[/url] [i]Sent at: $sent[/i]</td><td><center>[[url='mailbox.php?action=readmail&ID={$r[']Read[/url]]</td></tr>"; $current_row = 1 - $current_row; } } function mail_compose() { global $ir,$c,$userid,$h,$db; print "<form action='mailbox.php?action=send' method='post'> <table width=90% cellpadding=2> <tr><td colspan=3 bgcolor=#AAAAAA>[b] Send a Message[/b]</td></tr><tr> <td>User's ID:</td> <td><input type='text' name='userid' value='{$_GET['ID']}' size='5' maxlength='10' /> [i]<font size=1.9>(E.g. 123456)</font>[/i]</td></tr><tr> <td>Subject:</td> <td><input type='text' name='subject' size='50' maxlength='50' value=' ' /> [i]<font size=1.9>(E.g. Hello there)</font>[/i]</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><tr><td colspan=2 align=center>:] = [img=smilies/happy.gif] :D = [img=smilies/biggrin.gif] :oo = [img=smilies/cool.gif] O.o = [img=smilies/blink.gif] :/ = [img=smilies/dry.gif] :angry = [img=smilies/angry.gif] :? = [img=smilies/huh.gif] :lol = [img=smilies/laugh.gif] :-: = [img=smilies/mellow.gif] :o = [img=smilies/ohmy.gif] :( = [img=smilies/sad.gif] o.o = [img=smilies/ph34r.gif] :roll = [img=smilies/rolleyes.gif] :zzz = [img=smilies/sleep.gif] :) = [img=smilies/smile.gif] :P = [img=smilies/tongue.gif] :S = [img=smilies/unsure.gif] :nut = [img=smilies/wacko.gif] ;) = [img=smilies/wink.gif] :heart = [img=smilies/wub.gif]</td></tr><hr width=90%>> [url='mailbox.php']Back to Messages[/url]<hr width=90%>"; if($_GET['ID']) { print " <table width=90% cellpadding=2><tr><td colspan=2 bgcolor=#AAAAAA>[b]Your last 5 mails to/from this person:[/b]</td></tr>"; $q=$db->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=$db->fetch_row($q)) { $sent=date('F j, Y, g:i:s a',$r['mail_time']); print "<tr class='row$current_row'><td>$sent</td> <td>[b]{$r['sender']} wrote:[/b] {$r['mail_text']}</td></tr>"; $current_row = 1 - $current_row; } print "</table>"; } } function mail_send() { global $ir,$c,$userid,$h,$db; $subj=str_replace(array("\n"),array(" "),strip_tags($_POST['subject'])); $msg=str_replace(array("\n"),array(" "),strip_tags($_POST['message'])); $codes = array(":)", ";)", ":o",":O", ":d",":D", ":s", ":(", ":red", ":clown", ":bashful", ":x", ":green", ":|", ";(", ":]", ":horny", ":cool", ":banana"); $images = array("<img src=/smilies/smiley1.gif>", "<img src=/smilies/smiley2.gif>", "<img src=/smilies/smiley3.gif>", "<img src=/smilies/smiley3.gif>", "<img src=/smilies/smiley4.gif>", "<img src=/smilies/smiley4.gif>", "<img src=/smilies/smiley5.gif>", "<img src=/smilies/smiley6.gif>", "<img src=/smilies/smiley7.gif>", "<img src=/smilies/smiley8.gif>", "<img src=/smilies/smiley9.gif>", "<img src=/smilies/smiley10.gif>", "<img src=/smilies/smiley11.gif>", "<img src=/smilies/smiley12.gif>", "<img src=/smilies/smiley13.gif>", "<img src=/smilies/smiley14.gif>", "<img src=/smilies/smiley15.gif>", "<img src=/smilies/smiley16.gif>", "<img src=/smilies/banana.gif>"); $newmsg = str_replace($codes, $images, $msg); $to= (int) $_POST['userid']; if($ir['user_level'] < 2) { $q_mb=$db->query("SELECT * FROM mailblock WHERE mb_ADDED=$userid AND mb_ADDER=$to",$c); if ($db->num_rows($q_mb)>0) { die("This user has BLOCKED you from sending them messages."); $h->endpage(); exit; } } $db->query("INSERT INTO mail VALUES ('',0,$userid,$to,unix_timestamp(),'$subj','$newmsg')",$c) or die($db->error()); $db->query("INSERT INTO mailarc VALUES ('',0,$userid,$to,unix_timestamp(),'$subj','$newmsg')",$c); print "Message sent. [url='mailbox.php']> Back[/url]"; } function mail_delete() { global $ir,$c,$userid,$h,$db; $db->query("DELETE FROM mail WHERE mail_id={$_GET['ID']} AND mail_to=$userid",$c); print "Message deleted. [url='mailbox.php']> Back[/url]"; } function mail_delread() { global $ir,$c,$userid,$h,$db; print "This will delete all the READ messages in your inbox. There is [b]NO[/b] undo, so be sure. [url='mailbox.php?action=delread2']> Yes, delete all READ messages[/url] [url='mailbox.php']> No, go back[/url]"; } function mail_delread2() { global $ir,$c,$userid,$h,$db; $ccc=$db->query("SELECT * FROM mail WHERE mail_to=$userid AND mail_read=1",$c); $db->query("DELETE FROM mail WHERE mail_to=$userid AND mail_read=1",$c); print "All ".$db->num_rows($ccc)." READ mails in your inbox were deleted. [url='mailbox.php']> Back[/url]"; } function mail_delall() { global $ir,$c,$userid,$h,$db; print "This will delete all the messages in your inbox. There is [b]NO[/b] undo, so be sure. [url='mailbox.php?action=delall2']> Yes, delete all messages[/url] [url='mailbox.php']> No, go back[/url]"; } function mail_delall2() { global $ir,$c,$userid,$h,$db; $db->query("DELETE FROM mail WHERE mail_to=$userid",$c); print "All ".$db->affected_rows($c)." mails in your inbox were deleted. [url='mailbox.php']> Back[/url]"; } function mail_archive() { global $ir,$c,$userid,$h,$db; print "This tool will download an archive of all your messages. [url='dlarchive.php?a=inbox']> Download Inbox[/url] [url='dlarchive.php?a=outbox']> Download Outbox[/url]"; } $h->endpage(); ?>   fixed global functions to call the $db
  14. Re: *+*Amazing New Explore *+* [V1] Not really anything fancy... I uploaded to my game just to view it and here is a screenie... The words aren't even centered with the table... It's not too great and I've seen the EXACT same one posted all over CE before but the big difference here is... More links added... meh... http://img.photobucket.com/albums/v453/Touchmynonospot/dbs/explore1.jpg NOT BEING USED IN MY GAME! This was just to give a screenshot.
  15. Re: NEED 50% health for attack... Help? NEVERMIND EVERYONE... I found my mistakes... This worked instead.   else if ($ir['hp'] >= $ir['maxhp']/2) { $ir['hp']-= $ir['maxhp']/2; $me=$ir['maxhp']/2; $_SESSION['attacklog']=""; } else { print "<font color='red'>[b]You need atleast 50% health to attack.</font>[/b]"; $h->endpage(); $_SESSION['attacking']=0; exit; }
  16. Re: Auto-Credit Search in the forums for "IPN"
  17. else if ($youdata['hp'] >= $youdata['maxhp']/2) { $youdata['hp']-= $youdata['maxhp']/2; $me=$youdata['maxhp']/2; $_SESSION['attacklog']=""; } else { print "<font color='red'>[b]You need 50% health or more.</font>[/b]"; $h->endpage(); exit; }   I'm trying to force it to NOT let a user attack if they don't have 50% or more health... The codes already have an IF USER BEING ATTACKED HAS 50% or less u can't attack but not the other way around. Any suggestions or see where i went wrong?
  18. Re: Lottery [v1 and v2]   Haha It's alright man. Just edit it =] And I plan on using this on my game. I might make something else out of it and remake a new Lottery that people can buy only a few tickets a week and at the end of the week One person wins the jackpot with the money.. hmm and this could be taking farther if wanted to extend that mod... :roll: :-D -Robertâ„¢ That's only because i gave you that idea on msn -.-
  19. Re: Updated Mailbox [v1] Make some 16x16 images and create them yourself :) I'm doing that for my game.
  20. Re: free welfare mod   ... If you see this in the code... (99% of the time at the top of the code) include "globals.php";   That means it's V2... For V1 it would be global_func.php instead of globals.php This one does have me a bit confused though as it has no $db-> only mysql_ Still a v2 script though.
  21. Re: [mccodes] Training and crime logs. I would just look through the forums personally and use the log user script if u wanna find out... Anyone that u see running 5/10/15minute refreshers will be reloading the same page or 2 automatically... Simple solution to a simple problem.
  22. Re: Spamming   Actually Jameo that's a lie, you did it in my game and I had to ban you for spamming your game to all my users...   2 problems, It's not a modification request, and This user has spammed more sites than my game has members. (Approx 350 or so)(70% active.)
  23. Re: Please Help! v1 or v2? I'm going to assume v1 since i see alot of mysql_ Basically what you would have to do is take that piece of code u just pasted and a little more, and change $membs to something like $mail and a few other ideas. If i figure this out i'll let you know.
  24. Re: Crons Error Nyna you have some wonderful suggestions all over the place, What programs do you suggest over all? Like... Personal favorites?
  25. Re: How would i set level requirements?? Wasn't trying to sound harsh if I did. My apologies if it came out that way. I was more or less looking at it and see it posted in MANY script requests/mods that "You shouldn't try to code a game unless you know the code" But for people such as myself, I learn HANDS ON ONLY! I can't sit and read all day to learn or i will forget 95% of what I learned.
×
×
  • Create New...