Jump to content
MakeWebGames

HITMAN 17

Members
  • Posts

    1,145
  • Joined

  • Last visited

Everything posted by HITMAN 17

  1. Re: [REVIEW] not bad mate is it suppose to be a space game
  2. Re: [mccode v2] New Hall of Fame lol i have this im preety sure this has been done before
  3. Re: Add Jail Time to Crimes! there is a lot more to it than that
  4. Re: Weird Problem i knew someone would ask me that cause i felt like it
  5. Re: Weird Problem   yes yes yes what did you change
  6. Re: Weird Problem nope the same
  7. Re: [mccode V2] Very simple travel time mod. did you try out my tavern
  8. Re: Weird Problem its gone back to how it was with the one in the screenshot
  9. Re: Weird Problem nope mate back to how it was any btw you added a question mark at the end of the code
  10. Re: [v1]Request For Failing Crime Results to jail yer i did lol i aint that dum
  11. Re: Weird Problem Fatal error: Call to a member function endpage() on a non-object in /home/chav1/public_html/friendslist.php on line 83
  12. Re: [v1]Request For Failing Crime Results to jail still know it just not adding me in jail
  13. Re: Weird Problem yer but problem is where do i add the end table bit
  14. Re: Weird Problem ok mate i have done one
  15. Re: [v1]Request For Failing Crime Results to jail dosnt make any difference
  16. Re: [mccode V2] Very simple travel time mod.   <?php /*----------------------------------------------------- -- ChavsterV1 -- Made For Free Not For Resale By -- $Bull$$ EYE$ -----------------------------------------------------*/ include "globals.php"; print "<h3>{$set['game_name']} Tavern</h3> <table width='100%' class=\"table\" border=\"0\" cellspacing=\"1\"><tr><th>Name</th> <th>Level</th> <th>Time</th></tr>"; $q=$db->query("SELECT u.*,c.* FROM users u LEFT JOIN gangs c ON u.gang=c.gangID WHERE u.traveltime > 0 ORDER BY u.traveltime DESC",$c); while($r=$db->fetch_row($q)) { print "\n<tr><td>{$r['gangPREFIX']} [url='viewuser.php?u={$r[']{$r['username']}[/url] [{$r['userid']}]</td><td> {$r['level']}</td><td>{$r['traveltime']} minutes</td></tr>"; } print "</table>"; $h->endpage(); ?> No tested
  17. Re: Weird Problem nope it still not fixed i think its something to do with table
  18. i have mainmenu2.php installed and on some of my pages it moves look here http://www.chavsterv1.co.cc/friendslist.php here is my code can someone tell me whats wrong and what i need to change <?php /*----------------------------------------------------- -- Mono Country v1.0 BETA -- A product of DBS-entertainment -- Copyright held 2005 by Dabomstew -- INDEX.php -----------------------------------------------------*/ 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); 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['donatordays'] == 0) { die("This feature is for donators only."); } print "<h3>Friends List</h3>"; switch($_GET['action']) { case "add": add_friend(); break; case "remove": remove_friend(); break; case "ccomment": change_comment(); break; default: friends_list(); break; } function friends_list() { global $ir,$c,$userid; print "[url='friendslist.php?action=add']> Add a Friend[/url] These are the people on your friends list. "; $q_y=mysql_query("SELECT * FROM friendslist WHERE fl_ADDED=$userid",$c); print mysql_num_rows($q_y)." people have added you to their list. Most liked: ["; $q2r=mysql_query("SELECT u.username,count( * ) as cnt,fl.fl_ADDED FROM friendslist fl LEFT JOIN users u on fl.fl_ADDED=u.userid GROUP BY fl.fl_ADDED ORDER BY cnt DESC LIMIT 5",$c) or die(mysql_error()); $r=0; while($r2r=mysql_fetch_array($q2r)) { $r++; if($r > 1) { print " | "; } print "[url='viewuser.php?u={$r2r[']{$r2r['username']}[/url]"; } print "] <table width=90%><tr style='background:gray'> <th>ID</th> <th>Name</th> <th>Mail</th> <th>Send Cash</th> <th>Remove</th> <th>Comment</th> <th>Change Comment</th> <th>Online?</th></tr>"; $q=mysql_query("SELECT fl.*,u.* FROM friendslist fl LEFT JOIN users u ON fl.fl_ADDED=u.userid WHERE fl.fl_ADDER=$userid ORDER BY u.username ASC",$c); while($r=mysql_fetch_array($q)) { if($r['laston'] >= time()-15*60) { $on="<font color=green>[b]Online[/b]</font>"; } else { $on="<font color=red>[b]Offline[/b]</font>"; } $d=""; if($r['donatordays']) { $r['username'] = "<font color=red>{$r['username']}</font>";$d="[img=donator.gif]"; } if(!$r['fl_COMMENT']) { $r['fl_COMMENT']="N/A"; } print "<tr> <td>{$r['userid']}</td> <td>[url='viewuser.php?u={$r[']{$r['username']}[/url] $d</td> <td>[url='mailbox.php?action=compose&ID={$r[']Mail[/url]</td> <td>[url='sendcash.php?ID={$r[']Send Cash[/url]</td> <td>[url='friendslist.php?action=remove&f={$r[']Remove[/url]</td> <td>{$r['fl_COMMENT']}</td> <td>[url='friendslist.php?action=ccomment&f={$r[']Change[/url]</td> <td>$on</td></tr></table>"; } } function add_friend() { global $ir,$c,$userid; $_POST['ID'] = abs((int) $_POST['ID']); $_POST['comment']=str_replace(array("<",">","\n"),array("<",">"," "), $_POST['comment']); if($_POST['ID']) { $qc=mysql_query("SELECT * FROM friendslist WHERE fl_ADDER=$userid AND fl_ADDED={$_POST['ID']}",$c); $q=mysql_query("SELECT * FROM users WHERE userid={$_POST['ID']}",$c); if(mysql_num_rows($qc)) { print "You cannot add the same person twice."; } else if($userid==$_POST['ID']) { print "You cannot be so lonely that you have to try and add yourself."; } else if(mysql_num_rows($q)==0) { print "Oh no, you're trying to add a ghost."; } else { mysql_query("INSERT INTO friendslist VALUES('', $userid, {$_POST['ID']}, '{$_POST['comment']}')",$c) or die(mysql_error()); $r=mysql_fetch_array($q); print "{$r['username']} was added to your friends list. [url='friendslist.php']> Back[/url]"; } } else { print "Adding a friend!<form action='friendslist.php?action=add' method='post'> Friend's ID: <input type='text' name='ID' value='{$_GET['ID']}' /> Comment (optional): <textarea name='comment' rows='7' cols='40'></textarea> <input type='submit' value='Add Friend' /></form>"; } } function remove_friend() { global $ir,$c,$userid; mysql_query("DELETE FROM friendslist WHERE fl_ID={$_GET['f']} AND fl_ADDER=$userid",$c); print "Friends list entry removed! [url='friendslist.php']> Back[/url]"; } function change_comment() { global $ir,$c,$userid; $_POST['f'] = abs((int) $_POST['f']); $_POST['comment']=str_replace(array("<",">","\n"),array("<",">"," "), $_POST['comment']); if($_POST['comment']) { mysql_query("UPDATE friendslist SET fl_COMMENT='{$_POST['comment']}' WHERE fl_ID={$_POST['f']} AND fl_ADDER=$userid",$c); print "Comment for friend changed! [url='friendslist.php']> Back[/url]"; } else { $_GET['f'] = abs((int) $_GET['f']); $q=mysql_query("SELECT * FROM friendslist WHERE fl_ID={$_GET['f']} AND fl_ADDER=$userid",$c); if(mysql_num_rows($q)) { $r=mysql_fetch_array($q); $comment=str_replace(array("<",">"," "), array("<",">","\n"), $r['fl_COMMENT']); print "Changing a comment.<form action='friendslist.php?action=ccomment' method='post'> <input type='hidden' name='f' value='{$_GET['f']}' /> Comment: <textarea rows='7' cols='40' name='comment'>$comment</textarea> <input type='submit' value='Change Comment' /></form>"; } else { print "Stop trying to edit comments that aren't yours."; } } } $h->endpage(); ?>
  19. Re: [sHOWCASE] Thug Ways Version 2 the design isnt that good as like i cant see the writing very well
  20. Re: Cheburn (adam) Torncity he isnt in 50 he says he is 20
  21. Re: [mccode] Gangs   function faction_orgcrimes() { global $ir,$c,$userid,$factiondata; $_POST['crime'] = abs((int) $_POST['crime']); if($_POST['crime']) { if($factiondata['factionCRIME'] != 0) { print "Your Faction is already doing a crime!"; } else { mysql_query("UPDATE gangs SET factionCRIME={$_POST['crime']},factionCHOURS=24 WHERE factionID={$ir['faction']}",$c); print "You have started to plan this crime. It will take 24 hours."; } } else { print "<h3>Organised Crimes</h3> <form action='manage_faction.php?action=staff&act2=crimes' method='post'>Choose a crime that your gang should commit. <select name='crime' type='dropdown'>"; $cnt=mysql_query("SELECT username FROM users WHERE factions={$factiondata['factionID']}",$c); $membs=mysql_num_rows($cnt); $q=mysql_query("SELECT * FROM orgcrimes WHERE ocUSERS <= $membs",$c); while($r=mysql_fetch_array($q)) { print "<option value='{$r['ocID']}'>{$r['ocNAME']} ({$r['ocUSERS']} members needed)</option>"; } print "</select> <input type='submit' value='Commit' /></form>"; } } } $h->endpage(); ?> Thats not correct but it needs to be something like that can someone give it ago i havd ago the gave up lol because i would of just got loads of errors
  22. can you please make a simple mod i know that there is a paid version but i need a simple one please
  23. Re: [mccode] Multi IP Prevention anyone got this v1 as v1 is most vunrable
  24. Re: [mccode] Advanced Properties   there is no line saying that i have looked verywhere so i replaced this mysql_query("UPDATE users SET maxwill = 100, house = 0, WHERE house = {$r['uhID']}",$c); with mysql_query("UPDATE users SET maxwill = 100, house = 0, new_events=new_events+1 WHERE userid = {$r['uhRENTER']}",$c); should this still work
  25. Re: [mccode] Gangs well corncity is a great game so is lp
×
×
  • Create New...