Jump to content
MakeWebGames

Miniman

Members
  • Posts

    431
  • Joined

  • Last visited

    Never

Everything posted by Miniman

  1. Re: Game Ranks Exactly, It just gives the players a little more to do. You need to give them something to aim for, Level, Rank, Stats, House, Weapons. It will keep them active.
  2. Re: Game Ranks Joker, If it's so easy, Make it.... :| It's not useless...It gives your players something to aim for, Be the best at. It would make your players more active.
  3. Re: Game Ranks Joker couldn't make it, He claims he can code :roll: But can he?
  4. Re: Simple Trades [V2] Nicely done again Richard, I wont be using this but I'd like to point out an error. Once you have Begun the trade and You've filled in the forms, ect.. The other person can't Accept the trade as it says "Your friend doesn't meet one or more of the requirments" I think it's a good mod, But I wont use it because I'm thinking of something along Akash's lines. I will be making something like that =] But I wont be posting it obviously. Keep it up Richard ;) Mr. Adorabibble beat me to it xD
  5. Re: House Rentals [V2] You still might aswell remove the sell house function. What's the point in a Property market if you can sell your house for original price? :roll:
  6. Re: House Rentals [V2] Nice one, I wonder what else you will be coming up with ;) I'm working on something a little different to this, It will take some time to finsih as I'm kinda busy. But I'll release as a free version. Good going Richard :-P
  7. Re: Multiple Houses [V2] You do some pretty good work Richard.... I think you could easily improve on this and I think I might just do that, You could now very easily add "Upgrade House" or something. Good work :wink:
  8. Re: Referals Logs "//Please Keep This Notice //Coded By: GoldenZero //Website:GoldenZero.net //E-mail: joshisthebest1ca[AT]msn[DOT]com"   Anyone else not notice this? :|
  9. Re: Free 2 - Icons   Because, If you Don't provide support for it. Some people might not be able to adjust it, That's why I think he asked :D
  10. Re: Free 2 - Icons   Lol.....I bet Nyna loves it ;) Oh and MarFur93, You got a little brown on your nose, You might wanna get that off =p
  11. Re: User Stats Why are the stats so high? I've never seen a game with them that big......Not even that 2452 game lol.
  12. Re: Header.php [New/More Imrpoved] She's obviously delusional..... :-P
  13. Re: Header.php [New/More Imrpoved]   It does work, If not you just need to adjust it a TINY bit. It's just because you don't have mainmenu2.php and your users status. That's why it gives the error? I'm just taking a guess :wink: *Wait's for Nyna to come in and correct everything * :roll:
  14. Re: New improved mailbox. Good Mod, I did use it, But it got annoying as it wasn't showing the Mail's :-P I tried adding the ("UPDATE users SET new_mail=new_mail+1 WHERE userid={$to}") But It's already there :lol:
  15. Re: New at cs2 Try going to "save to web" when you save it and fiddle with the settings it will get smaller. Or save it as a different extension....
  16. Re: HELP!!!!!!!!!!!!!! There will be a line of code somewhere above that, It should look something like this....   global $ir,$c,$userid; Modify it to look like this.....   global $ir,$c,$userid,$db;
  17. Re: House Break In [$15] I'm not gonna pick sides here......But I talk to Killah, And I have seen his work. Honestly, I think He's just looked at Iso's mod and improved on it.......But Iso's mod is also very good, It looks good and before I payed for some other stuff, I was going to buy it. Killah does good work and so does Iso :-)
  18. Re: Updated Mailbox [v1] For V2 users, This is the code I'm using and it seems to work fine.....   <?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. [b]Reason: {$ir['mb_reason']}</font>[/b]"); } $_GET['ID'] = abs((float) $_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>> [url='mailbox.php?action=compose'] Compose[/url]</td> <td width=20% align=center>> [url='mailbox.php?action=outbox'] Outbox[/url]</td> <td width=20% align=center>> [url='mailbox.php?action=archive'] Save[/url]</td> <td width=20% align=center>> [url='mailbox.php?action=delall'] Delete All[/url]</td> <td width=20% align=center>> [url='mailbox.php?action=mailhome'] Inbox[/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 '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,$db; 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=$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><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>"; } } function mail_view() { global $ir,$c,$userid,$h,$db; print " <table width=90% cellpadding=3 class=maintable>"; $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']); print "<tr><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=3 class='maintable'><th colspan=2 bgcolor=#AAAAAA>[b]Reply To This Message[/b]</th> <tr> <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></form>"; } $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=3 class=maintable><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><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>[[url='mailbox.php?action=read&ID={$r[']Read[/url]]</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>[b] Send a Message[/b]</td></tr><tr> <td>User's ID:</td> <td><input type='text' name='userid' value='' 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><hr width=90%>> [url='mailbox.php']Back to Messages[/url]<hr width=90%>"; if($_GET['ID']) { print " <table width=90% cellpadding=3 class='maintable'><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><td bgcolor=#AAAAAA>$sent</td> <td bgcolor=#AAAAAA>[b]{$r['sender']} wrote:[/b] {$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( '[img=smilies/happy.gif]', '[img=smilies/biggrin.gif]', '[img=smilies/cool.gif]', '[img=smilies/blink.gif]', '[img=smilies/dry.gif]', '[img=smilies/angry.gif]', '[img=smilies/huh.gif]', '[img=smilies/laugh.gif]', '[img=smilies/mellow.gif]', '[img=smilies/ohmy.gif]', '[img=smilies/sad.gif]', '[img=smilies/ph34r.gif]', '[img=smilies/rolleyes.gif]', '[img=smilies/sleep.gif]', '[img=smilies/smile.gif]', '[img=smilies/tongue.gif]', '[img=smilies/unsure.gif]', '[img=smilies/wacko.gif]', '[img=smilies/wink.gif]', '[img=smilies/wub.gif]', '[img=smilies/XD.gif]', ); $newmsg = str_replace($codes, $images, $msg); $to= (int) $_POST['userid']; $db->query("INSERT INTO mail VALUES ('',0,$userid,$to,unix_timestamp(),'$subj','$newmsg')",$c) or die(mysql_error()); print "Your Message has been 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_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; $db->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(); ?>
  19. Re: Crimes Thanks everyone but I have a different way now. I am using Ghetto's crime mod, It's much better, No formula ;)
  20. Re: User Rating   line 50 should look like this..... global $ir,$userid,$db;
  21. Re: Updated Mailbox [v1] There is the same problem on line 101, Just find line 97 and change global $ir,$c,$userid,$h; to global $ir,$c,$userid,$h,$db;
  22. Re: Updated Mailbox [v1] :) Just change Line 66 to this global $ir,$c,$userid,$h,$db; You need to add the $db for v2. Oh, Very good btw
  23. Re: Updated Mailbox [v1] Fatal error: Call to a member function query() on a non-object in /home/******/public_html/mailbox.php on line 69 $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))   ;)
  24. Re: Ideas... $code = "10"; $t = mysql_query("SELECT * FROM items WHERE itmid = '{$code}' ") or die(mysql_error()); $g = mysql_fetch_assoc($t); if($g['itm_qty'] > 0) { echo '<form action="poisen.php?user='.$r['userid'].'" method="get"><input type="submit" value="Poisen Them"></form>'; } } That's what I have, But It's not showing up when I attack someone, I have the Item, and It's ID is 10. But I don't get the option to "Poisen Them"
  25. Re: Ideas... Yup, I guessed. I placed it in the wrong place :| But now, It leave's this......... Unknown column 'itm_id' in 'where clause' Any ideas?
×
×
  • Create New...