Jump to content
MakeWebGames

HITMAN 17

Members
  • Posts

    1,145
  • Joined

  • Last visited

Everything posted by HITMAN 17

  1. Re: [mccode v2] PJIRC Chat Mod here is a clearer view [/url]
  2. Re: [mccode] Customisable Merit System [$15.00] I brought rmthis mid of you akash and you didn't mention anything about autocredit but I asumed it was on there can't you make it for me
  3. ok i have had sort of a little go at doing drop down user bar on item send but i need a little help <?php /*----------------------------------------------------- -- Blown City -- A product of GoldenZero.Net -- Copyright held 2007 by GoldenZero -- E-mail: joshisthebest1ca[AT]msn[DOT]com -----------------------------------------------------*/ include "globals.php"; if($ir['jail'] or $ir['hospital']) { die("This page cannot be accessed while in jail or hospital."); } //itemsend $_GET['ID'] = abs((int) $_GET['ID']); $_GET['qty'] = abs((int) $_GET['qty']); if($_GET['qty'] && $_GET['user']) { $id=$db->query("SELECT iv.*,it.* FROM inventory iv LEFT JOIN items it ON iv.inv_itemid=it.itmid WHERE iv.inv_id={$_GET['ID']} AND iv.inv_userid=$userid LIMIT 1"); if($db->num_rows($id)==0) { print "Invalid item ID"; } else { $r=$db->fetch_row($id); $m=$db->query("SELECT * FROM users WHERE userid={$_GET['user']} LIMIT 1"); if($_GET['qty'] > $r['inv_qty']) { print "You are trying to send more than you have!"; } else if( $_GET['qty'] <= 0) { print "You know, I'm not dumb, j00 cheating hacker."; } else if($db->num_rows($m) == 0) { print "You are trying to send to an invalid user!"; } else { $rm=$db->fetch_row($m); //are we sending it all item_remove($userid, $r['inv_itemid'], $_GET['qty']); item_add($_GET['user'], $r['inv_itemid'], $_GET['qty']); print "You sent {$_GET['qty']} {$r['itmname']}(s) to {$rm['username']}"; event_add($_GET['user'],"You received {$_GET['qty']} {$r['itmname']}(s) from [url='viewuser.php?u=$userid']{$ir['username']}[/url]",$c); $u=$db->query("SELECT username FROM users WHERE userid={$_POST['user']}"); $uname=$db->fetch_single($u); $db->query("INSERT INTO itemxferlogs VALUES('',$userid,{$_GET['user']},{$r['itmid']},{$_GET['qty']},unix_timestamp(), '{$ir['lastip']}', '{$rm['lastip']}')"); } } } else if($_GET['ID']) { $id=$db->query("SELECT iv.*,it.* FROM inventory iv LEFT JOIN items it ON iv.inv_itemid=it.itmid WHERE iv.inv_id={$_GET['ID']} AND iv.inv_userid=$userid LIMIT 1"); if($db->num_rows($id)==0) { print "Invalid item ID"; } else { $r=$db->fetch_row($id); print "[b]Enter who you want to send {$r['itmname']} to and how many you want to send. You have {$r['inv_qty']} to send.[/b] <form action='itemsend.php' method='get'> User: ".user_dropdown($c,'user')." Quantity: <input class='textbox' type='text' name='qty' value='' /> <input class='textbox' type='submit' value='Send Items (no prompt so be sure!' /></form>"; } } else { print "Invalid use of file."; } $h->endpage(); ?> theres no errors but when i send it says invalid item id anyhelp would be great cheers
  4. Re: wont run? i have and nothing works karlos like the event and hosp and such
  5. please can someone find out why this dont run <?php require "mysql.php"; require "../../../../global_func.php"; global $c; mysql_query("UPDATE ocs SET oc_hours=oc_hours-1 WHERE oc_hours>0",$c); $q=mysql_query("SELECT * FROM ocs WHERE oc_hours=0",$c); while($r=mysql_fetch_array($q)) { $g=mysql_query("SELECT * FROM gangs WHERE gangID='{$r['oc_gang']}'",$c); $gang=mysql_fetch_array($g); $o=mysql_query("SELECT * FROM orgcrimes WHERE ocID='{$r['oc_type']}'",$c); $oc=mysql_fetch_array($o); print "{$oc['ocNAME']} selected! "; print "{$gang['gangNAME']} selected! "; $a=mysql_query("SELECT * FROM oc_joined WHERE gang='{$r['oc_gang']}' AND oc='{$r['oc_id']}'",$c); if(mysql_num_rows($a) < $oc['ocUSERS']) { print "$suc = 0! "; $suc=0; } else if(mysql_num_rows($a) >= $oc['ocUSERS']) { $totallevel=0; while($b=mysql_fetch_array($a)) { print "query oc_joined table "; $users=mysql_query("SELECT * FROM users WHERE userid='{$b['user']}'",$c); while($user=mysql_fetch_array($users)) { print "query users table "; $totallevel+=$user['level']; } } print "$totallevel"; $suc=$totallevel; $passfail=(rand(1,5)); if($passfail == 1) { $suc=0; } if($suc >= $oc['ocDIFFICULTY']) { print "succeed!"; $rgain=(int)((rand(1,2))+$oc['ocID']); $log=$oc['ocSTARTTEXT'].$oc['ocSUCCTEXT']; $muny=(int) (rand($oc['ocMINMONEY'],$oc['ocMAXMONEY']))*$oc['ocUSERS']; $log=str_replace(array("{muny}","'"),array($muny,"''"),$log); mysql_query("UPDATE gangs SET gangMONEY=gangMONEY+$muny,gangRESPECT=gangRESPECT+$rgain WHERE gangID={$gang['gangID']}",$c) or die(mysql_error()); mysql_query("INSERT INTO oclogs VALUES ('','{$oc['ocID']}','{$gang['gangID']}', '$log', 'Success', '$muny', '{$oc['ocNAME']}', unix_timestamp(), '$rgain')",$c); $i=mysql_insert_id($c); $qm=mysql_query("SELECT * FROM users WHERE gang={$gang['gangID']}",$c); while($rm=mysql_fetch_array($qm)) { event_add($rm['userid'],"Your Gang's Organised Crime Succeeded. Go [url='oclog.php?ID=$i']here[/url] to view the details.",$c) or die(mysql_error()); } // end loop } //end if they win else if ($suc < $oc['ocDIFFICULTY']) { print "fail"; $log=$oc['ocSTARTTEXT'].$oc['ocFAILTEXT']; $muny=0; $log=str_replace(array("{muny}","'"),array($muny,"''"),$log); mysql_query("INSERT INTO oclogs VALUES ('','{$oc['ocID']}','{$gang['gangID']}', '$log', 'Failure', '$muny', '{$oc['ocNAME']}', unix_timestamp(), '0')",$c); $i=mysql_insert_id($c); $qm=mysql_query("SELECT * FROM users WHERE gang={$gang['gangID']}",$c); while($rm=mysql_fetch_array($qm)) { $hosp=(int)(rand(100,250)); mysql_query("UPDATE users SET hospital=hospital+$hosp,hospreason='Failed Organised Crime' WHERE userid='{$rm['userid']}'",$c); event_add($_GET['ID'],"Your Gang's Organised Crime Failed. Go [url='oclog.php?ID=$i']here[/url] to view the details.",$c); }//end loop }//end fail } mysql_query("DELETE FROM oc_joined WHERE oc='{$r['oc_id']}'",$c); mysql_query("DELETE FROM ocs WHERE oc_id='{$r['oc_id']}'",$c); } ?>
  6. can someone help make it so donators brave goes up every 5mins and non donators go up every 10mins? As I Aint To Good With Crons
  7. Re: [other] New Login + New Register Sniko I Really Like This But I Think This One Looks Better Mate But Its My Opinion So Heres The login.php Code <?php session_start(); include "config.php"; global $_CONFIG; define("MONO_ON", 1); require "class/class_db_{$_CONFIG['driver']}.php"; $db=new database; $db->configure($_CONFIG['hostname'], $_CONFIG['username'], $_CONFIG['password'], $_CONFIG['database'], $_CONFIG['persistent']); $db->connect(); $c=$db->connection_id; $set=array(); $settq=$db->query("SELECT * FROM settings"); $q=$db->query("SELECT userid FROM users"); $membs=$db->num_rows($q); while($r=$db->fetch_row($settq)) { $set[$r['conf_name']]=$r['conf_value']; } $q=$db->query("SELECT userid FROM users WHERE laston>unix_timestamp()-15*60 ORDER BY laston DESC"); $r1=$db->num_rows($q); print <<<EOF <head> <title>{$set['game_name']}</title> <style type="text/css"> body { background-color: #999999; font-size:12px; font-family:Verdana, Arial, Helvetica, sans-serif; } div#wrapper { width: 80%; background: #999999; margin-top: 50px; margin-bottom: 50px; margin-left: auto; margin-right: auto; padding: 0px; border: thin solid #999999; } div#header { padding: 15px; margin: 0px; text-align: center; } div#nav { width: 30%; padding: 10px; margin-top: 1px; float: left; } div#main { margin-left: 30%; margin-top: 1px; padding: 20px; font-family: perpetua; } div#footer { padding: 15px; margin: 0px; border-top: thin solid #999999; background-image: url('footer.jpg'); font-size: 17px; } a:link,a:visited,a:active { color: black; } a:hover { color: darkblue; background-image: url('nav.jpg'); } a:focus { color: royalblue; background-image: url('navfocus.jpg'); } </style></head> <body> <h1><center>[b]UnderGround Streets![/b]</center></h1> <center><div id='ownedby'>Game Owner <u>{$set['game_owner']}<u></div> <center> <div id=wrapper> <div id=header> <script language="JavaScript"> <!-- function getCookieVal (offset) { var endstr = document.cookie.indexOf (";", offset); if (endstr == -1) endstr = document.cookie.length; return unescape(document.cookie.substring(offset, endstr)); } function GetCookie (name) { var arg = name + "="; var alen = arg.length; var clen = document.cookie.length; var i = 0; while (i < clen) { var j = i + alen; if (document.cookie.substring(i, j) == arg) return getCookieVal (j); i = document.cookie.indexOf(" ", i) + 1; if (i == 0) break; } return null; } function SetCookie (name,value,expires,path,domain,secure) { document.cookie = name + "=" + escape (value) + ((expires) ? "; expires=" + expires.toGMTString() : "") + ((path) ? "; path=" + path : "") + ((domain) ? "; domain=" + domain : "") + ((secure) ? "; secure" : ""); } function DeleteCookie (name,path,domain) { if (GetCookie(name)) { document.cookie = name + "=" + ((path) ? "; path=" + path : "") + ((domain) ? "; domain=" + domain : "") + "; expires=Thu, 01-Jan-70 00:00:01 GMT"; } } // --> </script> <script language="JavaScript"> var usr; var pw; var sv; function getme() { usr = document.login.username; pw = document.login.password; sv = document.login.save; if (GetCookie('player') != null) { usr.value = GetCookie('username') pw.value = GetCookie('password') if (GetCookie('save') == 'true') { sv[0].checked = true; } } } function saveme() { if (usr.value.length != 0 && pw.value.length != 0) { if (sv[0].checked) { expdate = new Date(); expdate.setTime(expdate.getTime()+(365 * 24 * 60 * 60 * 1000)); SetCookie('username', usr.value, expdate); SetCookie('password', pw.value, expdate); SetCookie('save', 'true', expdate); } if (sv[1].checked) { DeleteCookie('username'); DeleteCookie('password'); DeleteCookie('save'); } } else { alert('You must enter a username/password.'); return false; } } </script> </head> EOF; $ip = ($_SERVER['HTTP_X_FORWARDED_FOR']) ? $_SERVER['HTTP_X_FORWARDED_FOR'] : $_SERVER['REMOTE_ADDR']; if(file_exists('ipbans/'.$ip)) { die("[b]<font color=red size=+1>Your IP has been banned!/font>[/b]</body></html>"); } print " <center> <div id=main> <center> <form action='authenticate.php' method='post' name='login' onsubmit='return saveme();'> Username: <input type='text' name='username'> Password: <input type='password' name='password'> Remember me on this computer? <input type='radio' value='ON' name='save'>Yes <input type='radio' name='save' value='OFF' checked>No <input type='submit' value='Enter'> </form> <input type=submit value=LOGIN class=loginbutton ></form></td></tr></table> <h3>[url='register.php']REGISTER NOW![/url]</h3> </form> </div> </div> [b]Template Made By Sniko`[/b]"; print <<<OUT </body> </html> OUT; ?> It Took Me Ages To Do One Part Of It As I Had To Find Out What I Was Missing I Hope You Like It
  8. Re: [mccodes v2] Free Login you got a header to go with this and maybe a register mate as i like it
  9. Re: [mccode] Crimes give random money i got the same as you grimsy it dont work
  10. Re: [mccode] Crimes give random money ok i now just tryed and didnt work man thats stupid im going to use the other one till this is done properly its just another fake at the mo just like the guy who made the job specials
  11. Re: [mccode] Crimes give random money   <?php $macropage="docrime.php?c={$_GET['c']}"; include "globals.php"; if($ir['jail'] or $ir['hospital']) { die("This page cannot be accessed while in jail or hospital."); } $_GET['c']=abs((int) $_GET['c']); if(!$_GET['c']) { print "Invalid crime"; } else { $q=mysql_query("SELECT * FROM crimes WHERE crimeID={$_GET['c']}",$c); $r=mysql_fetch_array($q); if($ir['brave'] < $r['crimeBRAVE']) { print "You do not have enough Brave to perform this crime."; } else { $ec="\$sucrate=".str_replace(array("LEVEL","CRIMEXP","EXP","WILL","IQ"), array($ir['level'], $ir['crimexp'], $ir['exp'], $ir['will'], $ir['IQ']),$r['crimePERCFORM']).";"; eval($ec); print $r['crimeITEXT']; $ir['brave']-=$r['crimeBRAVE']; mysql_query("UPDATE users SET brave={$ir['brave']} WHERE userid=$userid",$c); if(rand(1,100) <= $sucrate) { print str_replace("{money}",$r['crimeSUCCESSMUNY'],$r['crimeSTEXT']); $ir['money']+=$r['crimeSUCCESSMUNY']; $ir['crystals']+=$r['crimeSUCCESSCRYS']; $ir['exp']+=(int) ($r['crimeSUCCESSMUNY']/8); mysql_query("UPDATE users SET money={$ir['money']}, crystals={$ir['crystals']}, exp={$ir['exp']},crimexp=crimexp+{$r['crimeXP']} WHERE userid=$userid",$c); if($r['crimeSUCCESSITEM']) { item_add($userid, $r['crimeSUCCESSITEM'], 1); } } else { if(rand(1, 2) == 1) { print $r['crimeFTEXT']; } else { print $r['crimeJTEXT']; $db->query("UPDATE users SET jailed=jailed+1 WHERE userid=$userid"); $db->query("UPDATE users SET busted=busted+1 WHERE userid=$userid"); $db->query("UPDATE `users` SET `jail` = '$r[crimeJAILTIME]', `jail_reason` = '$r[crimeJREASON]' WHERE `userid` = '$userid'"); } } print " [url='docrime.php?c={$_GET[']Try Again[/url] [url='criminal.php']Crimes[/url]"; } } $h->endpage(); ?> thats my do crime page but theres lot of things you need to take out which you havent mentioned please give a better instructions
  12. Re: [mccode v2] Roulette is there any exploits in this one as people said there where before
  13. Re: [REVIEW] The Mafia Brotherhood - Please review!! its really slow
  14. Im Not Sure If Any Of You Will Like But Here Goes My New Banner
  15. Re: [mccode v2] Factions ORG-CRIME Armoury what about the stapp bit of it for organised crimes but good job mate :-D
  16. Re: The Destroyers see guys a nice person at last cheers i have changed banner i have done it myself but im learning as i aint too good at graphics but i replaced the banner also this is my mates game so if he likes it i like it lol
  17. Re: [mccode v2] Advanced RentASpy i have a problem here on the armor it says array wtf
  18. Re: [mccode] Gangs it would be great if you made like a tc oc for it :| if i could code great i would be working on that all night but im not so id love to see someone like zero affect try
  19. Re: [mccode v2] Donator and Non-Donator Lottery Fixed LoL Nice Mod Though
  20. Re: [mccode v2] Different User Profile & View User Page i added images to the viewuser of this but now its running slow is there any chance if i post my code you can modify and make it faster please
  21. Re: [mccode V2] Bank Investment one other problem if you look at my investment on my game you will see that when you put an investment in it shows you the box at the bottom if you scroll down
  22. i Thought I Would Give A Little Something To Ce <?php include "globals.php"; if($ir['jail'] or $ir['hospital']) { die("This page cannot be accessed while in jail or hospital."); } if(!$_GET['spend']) { print "Welcome to the crystal depot! You have [b]{$ir['crystals']}[/b] crystals. What would you like to spend your crystals on? [url='crystaltemple.php?spend=refill']Energy Refill - {$set['ct_refillprice']} Crystals[/url] [url='crystaltemple.php?spend=IQ']IQ - {$set['ct_iqpercrys']} IQ per crystal[/url] [url='crystaltemple.php?spend=strength']Strength - 5 Strength per crystal[/url] [url='crystaltemple.php?spend=agility']Speed - 5 Speed per crystal[/url] [url='crystaltemple.php?spend=guard']Defence - 5 Defence per crystal[/url] [url='crystaltemple.php?spend=money']Money - \$".number_format($set['ct_moneypercrys'])." per crystal[/url] "; } else { if($_GET['spend'] == 'refill') { if($ir['crystals'] <$set['ct_refillprice']) { print "You don't have enough crystals!"; } else if($ir['energy'] == $ir['maxenergy']) { print "You already have full energy."; } else if($ir['refills']==$set['refills']) { die("You have already used your {$set['refills']} refills today.."); } else { $db->query("UPDATE users SET energy=maxenergy,crystals=crystals-{$set['ct_refillprice']} WHERE userid=$userid"); $db->query("UPDATE users SET refills=refills+1 WHERE userid=$userid"); print "You have paid {$set['ct_refillprice']} crystals to refill your energy bar."; } } else if($_GET['spend'] == 'IQ') { print "Type in the amount of crystals you want to swap for IQ. You have [b]{$ir['crystals']}[/b] crystals. One crystal = {$set['ct_iqpercrys']} IQ.<form action='crystaltemple.php?spend=IQ2' method='post'><input type='text' name='crystals' /> <input type='submit' value='Swap' /></form>"; } else if($_GET['spend'] == 'IQ2') { $_POST['crystals']=(int) $_POST['crystals']; if($_POST['crystals'] <= 0 || $_POST['crystals'] > $ir['crystals']) { print "Error, you either do not have enough crystals or did not fill out the form. [url='crystaltemple.php?spend=IQ']Back[/url]"; } else { $iqgain=$_POST['crystals']*$set['ct_iqpercrys']; $db->query("UPDATE users SET crystals=crystals-{$_POST['crystals']} WHERE userid=$userid"); $db->query("UPDATE userstats SET IQ=IQ+$iqgain WHERE userid=$userid"); print "You traded {$_POST['crystals']} crystals for $iqgain IQ."; } } else if($_GET['spend'] == 'strength') { print "Type in the amount of crystals you want to swap for Strength. You have [b]{$ir['crystals']}[/b] crystals. 5 Strength = 1 Crystal.<form action='crystaltemple.php?spend=strength2' method='post'><input type='text' name='crystals' /> <input type='submit' value='Swap' /></form>"; } else if($_GET['spend'] == 'strength2') { $_POST['crystals']=(int) $_POST['crystals']; if($_POST['crystals'] <= 0 || $_POST['crystals'] > $ir['crystals']) { print "Error, you either do not have enough crystals or did not fill out the form. [url='crystaltemple.php?spend=strength']Back[/url]"; } else { $strengthgain=$_POST['crystals']*5; $db->query("UPDATE users SET crystals=crystals-{$_POST['crystals']} WHERE userid=$userid"); $db->query("UPDATE userstats SET strength=strength+$strengthgain WHERE userid=$userid"); print "You traded {$_POST['crystals']} crystals for $strengthgain Strength."; } } else if($_GET['spend'] == 'agility') { print "Type in the amount of crystals you want to swap for agility. You have [b]{$ir['crystals']}[/b] crystals. 5 Speed = 1 Crystal.<form action='crystaltemple.php?spend=agility2' method='post'><input type='text' name='crystals' /> <input type='submit' value='Swap' /></form>"; } else if($_GET['spend'] == 'agility2') { $_POST['crystals']=(int) $_POST['crystals']; if($_POST['crystals'] <= 0 || $_POST['crystals'] > $ir['crystals']) { print "Error, you either do not have enough crystals or did not fill out the form. [url='crystaltemple.php?spend=agility']Back[/url]"; } else { $agilitygain=$_POST['crystals']*5; $db->query("UPDATE users SET crystals=crystals-{$_POST['crystals']} WHERE userid=$userid"); $db->query("UPDATE userstats SET agility=agility+$agilitygain WHERE userid=$userid"); print "You traded {$_POST['crystals']} crystals for $agilitygain Speed."; } } else if($_GET['spend'] == 'guard') { print "Type in the amount of crystals you want to swap for Guard. You have [b]{$ir['crystals']}[/b] crystals. 5 Defence = 1 Crystal<form action='crystaltemple.php?spend=guard2' method='post'><input type='text' name='crystals' /> <input type='submit' value='Swap' /></form>"; } else if($_GET['spend'] == 'guard2') { $_POST['crystals']=(int) $_POST['crystals']; if($_POST['crystals'] <= 0 || $_POST['crystals'] > $ir['crystals']) { print "Error, you either do not have enough crystals or did not fill out the form. [url='crystaltemple.php?spend=guard']Back[/url]"; } else { $guardgain=$_POST['crystals']*5; $db->query("UPDATE users SET crystals=crystals-{$_POST['crystals']} WHERE userid=$userid"); $db->query("UPDATE userstats SET guard=guard+$guardgain WHERE userid=$userid"); print "You traded {$_POST['crystals']} crystals for $guardgain Defence."; } } else if($_GET['spend'] == 'money') { print "Type in the amount of crystals you want to swap for money. You have [b]{$ir['crystals']}[/b] crystals. One crystal = \$".number_format($set['ct_moneypercrys']).".<form action='crystaltemple.php?spend=money2' method='post'><input type='text' name='crystals' /> <input type='submit' value='Swap' /></form>"; } else if($_GET['spend'] == 'money2') { $_POST['crystals']=(int) $_POST['crystals']; if($_POST['crystals'] <= 0 || $_POST['crystals'] > $ir['crystals']) { print "Error, you either do not have enough crystals or did not fill out the form. [url='crystaltemple.php?spend=money']Back[/url]"; } else { $iqgain=$_POST['crystals']*$set['ct_moneypercrys']; $db->query("UPDATE users SET crystals=crystals-{$_POST['crystals']},money=money+$iqgain WHERE userid=$userid"); print "You traded {$_POST['crystals']} crystals for \$".number_format($iqgain)."."; } } } $h->endpage(); ?>
  23. Re: [mccode v2] Different User Profile & View User Page i found your images but thanks anyways lol
  24. Re: [mccode] NEW USERS IMAGE GALLERY FREE!!!!! rar file where :?
  25. Re: [mccode v2] Different User Profile & View User Page dylan your missing the game images
×
×
  • Create New...