Jump to content
MakeWebGames

HITMAN 17

Members
  • Posts

    1,145
  • Joined

  • Last visited

Everything posted by HITMAN 17

  1. Guys i need an auction cron fix as at the moment the auction is going into -1 day This is the cron at the moment <?php include "config.php"; global $_CONFIG; if($_GET['code'] != $_CONFIG['code']) { die(""); } 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; $db->query("update auctions set time=time-1",$c); $query = mysql_query("SELECT * FROM auctions WHERE time=0 OR time<0") or die(mysql_error()); while($soc = mysql_fetch_assoc($query)) { $time=$win['time']; $item=$win['itemname']; $winner=$win['bidder']; $owner=$win['owner']; $iname=mysql_result($db->query("SELECT itmname FROM items WHERE itmid={$item}", $c), 0, 0); if($win['bids']>0) { $db->query("insert into inventory VALUES('',$item,$winner,1)",$c) or die(mysql_error()); event_add($winner,"You won the auction of the {$iname} for \${$win['current']}",$c); event_add($owner, "Your {$iname} sold succesfully on the auction market with {$win['bids']} bids. You have been paid \${$win['current']}", $c); $db->query("update users set money=money+{$win['current']},auctionquota=auctionquota-1 where userid=$owner", $c); } if($win['bids']==0) { event_add($win['owner'],"Your auction has ended with no bidders. Your {$iname} has been returned to your inventory.",$c); $winner=$win['owner']; $db->query("insert into inventory VALUES('',$item,$winner,1)",$c) or die(mysql_error()); } } $db->query("delete from auctions where time=0", $c); ?>
  2. Re: [mccode] Fixed Advertisements for mccode v1.1 mate someone might so anyone can you help please
  3. Re: [mccode] Fixed Advertisements for mccode v1.1 what is the code for header to show the advertisments and at the moment where will this show
  4. what is the code for uk time and how do i make it the reset time on the 12 midnight uk time
  5. Re: [Review]BlackSheep-Mafia ---- Please review!! not bad i like the design
  6. Re: gang surrender help ok as i am in a good mood here is the error you need to replace all the gang view surrenders function with that if you cant do it pm me on here and ill do it for you function gang_staff_viewsurrenders() { global $db,$ir,$c,$userid,$gangdata; if(!isset($_POST['subm'])) { print "<form action='yourgang.php?action=staff&act2=viewsurrenders' method='post'> Choose who to accept the surrender from. <input type='hidden' name='subm' value='submit' /> Gang: <select name='sur' type='dropdown'>"; $wq=$db->query("SELECT s.*,w.* FROM surrenders s LEFT JOIN gangwars w ON s.surWAR=w.warID WHERE surTO={$ir['gang']}"); while($r=$db->fetch_row($wq)) { if($gangdata['gangID'] == $r['warDECLARER']) { $w="You";$f="warDECLARED"; } else { $w="Them";$f="warDECLARER"; } $ggq=$db->query("SELECT * FROM gangs WHERE gangID=".$r[$f]); $them=$db->fetch_row($ggq); print "<option value='{$r['surID']}'>War vs. {$them['gangNAME']} (Msg: {$r['surMSG']})</option>"; } print "</select> <input type='submit' value='Accept Surrender' /></form>"; } else { $_POST['sur'] = abs((int) $_POST['sur']); $q=$db->query("SELECT surWAR FROM surrenders WHERE surID={$_POST['sur']}"); list($_POST['war']) = $db->fetch_row($q); $wq=$db->query("SELECT * FROM gangwars where warID={$_POST['sur']}"); $r=$db->fetch_row($wq); if($gangdata['gangID'] == $r['warDECLARER']) { $w="You"; $f="warDECLARED"; } else { $w="Them"; $f="warDECLARER"; } $db->query("DELETE FROM surrenders WHERE surID={$_POST['sur']}"); $db->query("DELETE FROM gangwars WHERE warID={$_POST['sur']}"); $ggq=$db->query("SELECT * FROM gangs WHERE gangID=".$r[$f]);$them=$db->fetch_row($ggq);$event=str_replace("'","''","[url='gangs.php?action=view&ID={$ir[']{$gangdata['gangNAME']}[/url] have accepted the surrender from [url='gangs.php?action=view&ID={$them[']{$them['gangNAME']}[/url], the war is over!");$db->query("INSERT INTO gangevents VALUES('',{$ir['gang']},unix_timestamp(),'$event') , ('',".$r[$f].",unix_timestamp(),'$event')");print "You have accepted surrender, the war is over."; } }
  7. Re: Auctions Cron this is auction cron file <?php include "../config.php"; if($_GET['code'] != $_CONFIG['code']) { die(""); } require "../mysql.php"; mysql_query("UPDATE auctions SET time=time-1 WHERE time>0",$c); $qqq=mysql_query("SELECT * FROM auctions WHERE time=0",$c); while($win=mysql_fetch_array($qqq)) { $time=$win['time']; $item=$win['itemname']; $winner=$win['bidder']; $owner=$win['owner']; $iname=mysql_result(mysql_query("SELECT itmname FROM items WHERE itmid={$item}", $c), 0, 0); if($win['bids']>0) { mysql_query("insert into inventory VALUES('',$item,$winner,1)",$c) or die(mysql_error()); mysql_query("INSERT INTO events VALUES('',$winner,UNIX_TIMESTAMP(),0,'You won the auction of the {$iname} for \${$win['current']}')",$c) or die(mysql_error()); mysql_query("INSERT INTO events VALUES('',$owner,UNIX_TIMESTAMP(),0,'Your {$iname} sold succesfully on the auction market with {$win['bids']} bids. You have been paid \${$win['current']}')",$c) or die(mysql_error()); mysql_query("UPDATE users SET new_events=new_events+1 WHERE owner={$userid}", $c); mysql_query("UPDATE users SET new_events=new_events+1 WHERE winner={$userid}", $c); mysql_query("update users set money=money+{$win['current']},auctionquota=auctionquota-1 where userid=$owner", $c); } if($win['bids']==0) { $owner=$win['owner']; mysql_query("INSERT INTO events VALUES('',$owner,UNIX_TIMESTAMP(),0,'Your auction has ended with no bidders. Your {$iname} has been returned to your inventory.')",$c) or die(mysql_error()); $winner=$win['owner']; mysql_query("insert into inventory VALUES('',$item,$winner,1)",$c) or die(mysql_error()); } } mysql_query("DELETE FROM auctions WHERE time=0", $c); print "Done!"; ?>
  8. Re: gang surrender help sorry mate but you should search the forums its on here
  9. Re: [MOD] House Images Parse error: syntax error, unexpected '%' in /home/chavster/public_html/staff_houses.php on line 127 another error mate +1 though
  10. Re: [MOD] House Images Parse error: syntax error, unexpected T_STRING in /home/chavster/public_html/staff_houses.php on line 127 thats your house pic zero affect
  11. Re: McCodes v2.0.2 attack yes everyone who has mccodes will have this mate does have anyone have the attack script when you loose the battle it sends you to hospital
  12. Re: Driveby error thank you my friend your great iamwicked
  13. <?php /*----------------------------------------------------- -- Blown City -- A product of GoldenZero.Net -- Copyright held 2007 by GoldenZero -- E-mail: joshisthebest1ca[AT]msn[DOT]com -----------------------------------------------------*/ include "globals.php"; include "mysql.php"; include "driveby_config.php"; global $db_config; $in = abs((int) $_GET['ID']); $braveuse=$ir['level']*$bravecost; $youdata=$ir; $q=mysql_query("SELECT u.*,us.* FROM users u LEFT JOIN userstats us ON u.userid=us.userid WHERE u.userid={$_GET['ID']}",$c); $odata=mysql_fetch_array($q); if(!$ir['donatordays']) { { die("You must be a donator to do drive bys"); } $hosp = rand(50,150); if($odata['bguard'] >0) { $er=$db->query("SELECT username FROM users WHERE userid={$_GET['ID']}"); $er=$db->fetch_row($er); $db->query("UPDATE users SET hp=0, hospital=hospital+$hosp, hospreason='Car Blown Up By {$er['username']}\'s Personal Bodyguard' WHERE userid=$userid"); $btext="Congratulations your bodyguard saved your life from {$r['username']}!!"; $db->query("INSERT INTO events VALUES('',$userid,UNIX_TIMESTAMP(),0,'$btext')"); $db->query("UPDATE users SET new_events=new_events+1 WHERE userid={$userid}"); die("<center>[b]<font color='#FFFF00'>Holy Shit![/b]</font> You Just Got Your Ass Kicked By The Bodygaurd!! [url='index.php']>Home[/url]</center>"); } $i=mysql_query("SELECT * FROM inventory WHERE inv_id={$_GET['cID']} AND inv_userid=$userid",$c); if(mysql_num_rows($i) == 0) { die("You do not currently possess a Car"); } if(!$in) { print "Error - no valid player ID to drive by."; $h->endpage(); exit; } $q = mysql_query("SELECT * FROM `users` WHERE userid = {$in}", $c); if(!mysql_num_rows($q)) { print "Error - you can't do a drive by on someone who dosent exist, what are you smoking dude?"; $h->endpage(); exit; } if ($ir['gang'] == $odata['gang'] && $ir['gang'] > 0) { print "You are in the same gang as {$odata['username']}, are you completely retarded?"; $h->endpage(); exit; } $r = mysql_fetch_array($q); if(in_array($in, $db_config['prohibited'])) { print "Error - you cannot do a drive by on this player. [url='index.php']> Go Back[/url]"; $h->endpage(); exit; } if($r['user_level'] == 0 && $db_config['nobomb']) { print "Error - you cannot do a drive by on NPCs. [url='index.php']> Go Back[/url]"; $h->endpage(); exit; } if($in == $userid) { print "Error - you cannot do a drive by on yourself! [url='index.php']> Go Back[/url]"; $h->endpage(); exit; } if($r['fedjail']) { print "Error - you cannot do a drive by on people in Federal Jail [url='index.php']> Go Back[/url]"; $h->endpage(); exit; } if($r['hospital']) { print "Error - you cannot drive by people who are in the hospital [url='index.php']> Go Back[/url]"; $h->endpage(); exit; } if($ir['hospital']) { print "Error - you cannot drive by people when you are in the hospital [url='index.php']> Go Back[/url]"; $h->endpage(); exit; } if($r['jail']) { print "Error - you cannot drive by people who are in jail [url='index.php']> Go Back[/url]"; $h->endpage(); exit; } if($ir['jail']) { print "Error - you cannot drive by people when you are in jail [url='index.php']> Go Back[/url]"; $h->endpage(); exit; } if($ir['brave'] < $braveuse) { print "Error - you need $braveuse Bravery to drive by someone. [url='index.php']> Go Back[/url]"; $h->endpage(); exit; } $rsf = rand(1,100); $exp = rand($db_config['minexp'],$db_config['maxexp']); if($rsf <= $db_config['chance']) { mysql_query("UPDATE users SET exp=exp+{$exp}, brave=brave-$braveuse WHERE userid={$userid}", $c); $hosp = rand($db_config['minhosp'],$db_config['maxhosp']); mysql_query("UPDATE users SET hospital=hospital+{$hosp}, hospreason='Shot by {$ir['username']} during a drive by' WHERE userid={$in}", $c); mysql_query("UPDATE inventory SET inv_qty=inv_qty-1 WHERE inv_id={$_GET['ID']}",$c); mysql_query("DELETE FROM inventory WHERE inv_qty=0",$c); event_add($in, "[url='viewuser.php?u=$userid']{$ir['username']}[/url] shot you in a drive by", $c); print "You call up your gang and load up in your car. You drive down to {$r['username']}s hood. you see them walking down the street... You hang your gun out the window and blast {$r['username']} a few times </br>sending them to the hospital for $hosp minutes, and earning you $exp EXP! You and your boys go and ramp the car off a bridge."; mysql_query("UPDATE inventory SET inv_qty=inv_qty-1 WHERE inv_id={$_GET['cID']}",$c); mysql_query("DELETE FROM inventory WHERE inv_qty=0",$c); $db->query("INSERT INTO userattacks VALUES($userid,'You drove by <a href=viewuser.php?u={$r['userid']}>{$r['username']}</a> and hospitalized them.',unix_timestamp());"); $db->query("INSERT INTO userattacks VALUES({$r['userid']},'You got drove by from <a href=viewuser.php?u=$userid>{$ir['username']}</a>, and hospitalized you.',unix_timestamp());"); } else { $exp = rand($db_config['minexp'],$db_config['maxexp']); $hosp = rand($db_config['minhosp'],$db_config['maxhosp']); mysql_query("UPDATE users SET brave=brave-$braveuse WHERE userid={$userid}", $c); mysql_query("UPDATE users SET hospital=hospital+{$hosp}, hospreason='Wrecked while attempting a drive by.' WHERE userid={$userid}", $c); mysql_query("UPDATE users SET exp=exp-{$exp} WHERE userid={$userid}", $c); event_add($in, "[url='viewuser.php?u=$userid']{$ir['username']}[/url] attempted to mailbomb you, but the idiot crossed the wires and it exploded in his/her face.", $c); print "You call up your gang and load up in your car. You drive down to {$r['username']}s hood. you see them walking down the street... Your driver wasnt paying attention and hit a light post and totaled the car sending you to the hospital for {$hosp} minutes, and taking $exp EXP from you."; mysql_query("UPDATE inventory SET inv_qty=inv_qty-1 WHERE inv_id={$_GET['cID']}",$c); mysql_query("DELETE FROM inventory WHERE inv_qty=0",$c); $db->query("INSERT INTO userattacks VALUES($userid,'You tried to drive by <a href=viewuser.php?u={$r['userid']}>{$r['username']}</a> and crashed.',unix_timestamp());"); $db->query("INSERT INTO userattacks VALUES({$r['userid']},'<a href=viewuser.php?u=$userid>{$ir['username']}</a> tried to do a drive by, and crashed.',unix_timestamp());"); } $h->endpage(); ?> error Parse error: syntax error, unexpected $end in /home/chavster/public_html/driveby.php on line 163
  14. Re: Mining V2 Converted   <?php include "globals.php"; switch($_GET['action']) { case 'mine': mine_1(); break; case 'minesub': mine_1_sub(); break; case 'mine2': mine_2(); break; case 'mine2sub': mine_2_sub(); break; case 'mine3': mine_3(); break; case 'mine3sub': mine_3_sub(); break; case 'mine4': mine_4(); break; case 'mine4sub': mine_4_sub(); break; case 'mine5': mine_5(); break; case 'mine5sub': mine_6_sub(); break; case 'mine6': mine_6(); break; case 'mine6sub': mine_6_sub(); break; default: mine_index(); break; } function mine_index() { global $ir,$c,$userid,$db; print "<center>Welcome to the mine shaft. There are 3 spots to go mining but thay are restricted depending on your mine level. Your mining level is {$ir['mine_level']} and you have {$ir['mine_exp']}/{$ir['mine_needed']} mining experience </center>"; print "<center> <u>Crystal Mines</u> [[url='mine.php?action=mine']Level 1 mine[/url]] [[url='mine.php?action=mine2']Level 20 mine[/url]] [[url='mine.php?action=mine3']Level 40 mine[/url]] <u>Money Mines</u> [[url='mine.php?action=mine4']Level 10 mine[/url]] [[url='mine.php?action=mine5']Level 30 mine[/url]] [[url='mine.php?action=mine6']Level 40 mine[/url]] </center>"; } $db->query("UPDATE users SET max_power=mine_level*10 WHERE userid=$userid",$c); $db->query("UPDATE users SET mine_level=mine_level+1 WHERE mine_exp > mine_needed AND userid=$userid",$c); $db->query("UPDATE users SET mine_exp=0 WHERE mine_needed < mine_exp AND userid=$userid",$c); $db->query("UPDATE users SET mine_needed=mine_level*1000 WHERE userid=$userid",$c); if ($ir['jailtime'] > 0){ print "<center>The mine is closed to jail birds come back when thay release you</center>"; exit; } if ($ir['hospital'] > 0){ print "<center>You cant go mining while in hospital</center>"; exit; } function mine_1() { global $ir,$c,$userid,$db; if($ir['power'] < 10){ print "You need 10 power to mine here your have {$ir['power']}"; exit; } $db->query("UPDATE users SET power=power-10 WHERE userid=$userid",$c); $rand_gems = rand(1,5); $rand_exp = rand(1,100); echo "<center>You begin mining in the level 1 mine and found $rand_gems crystal(s).</center> "; $db->query("UPDATE users SET crystals=crystals+'$rand_gems',mine_exp=mine_exp+'$rand_exp' WHERE userid=$userid",$c); print "<center>[[url='mine.php?action=mine']Mine again[/url]]</center> "; print "<center>[[url='mine.php']Back[/url]]</center> "; } function mine_2() { global $ir,$c,$userid,$db; if($ir['power'] < 15){ print "<center>You need 15 power to mine here your have {$ir['power']}</center>"; exit; } if($ir['mine_level'] < 20){ print "<center>You need to be mining level 20 to mine here you are mining level {$ir['mine_level']}</center>"; exit; } $db->query("UPDATE users SET power=power-15 WHERE userid=$userid",$c); $rand_gems = rand(1,20); $rand_exp = rand(1,300); echo "<center>You begin mining in the level 20 mine and found $rand_gems crystal(s).</center> "; $db->query("UPDATE users SET crystals=crystals+'$rand_gems',mine_exp+'$rand_exp' WHERE userid=$userid",$c); print "<center>[[url='mine.php?action=mine2']Mine again[/url]]</center> "; print "<center>[[url='mine.php']Back[/url]]</center> "; } function mine_3() { global $ir,$c,$userid,$db; if($ir['power'] < 25){ print "<center>You need 25 power to mine here your have {$ir['power']}</center>"; exit; } if($ir['mine_level'] < 40){ print "<center>You need to be mining level 40 to mine here you are mining level {$ir['mine_level']}</center>"; exit; } $db->query("UPDATE users SET power=power-25 WHERE userid=$userid",$c); $rand_gems = rand(1,40); $rand_exp = rand(1,600); echo "<center>You begin mining in the level 40 mine and found $rand_gems crystal(s).</center> "; $db->query("UPDATE users SET crystals=crystals+'$rand_gems',mine_exp+'$rand_exp' WHERE userid=$userid",$c); print "<center>[[url='mine.php?action=mine3']Mine again[/url]]</center> "; print "<center>[[url='mine.php']Back[/url]]</center> "; } function mine_4() { global $ir,$c,$userid,$db; if($ir['power'] < 10){ print "You need 10 power to mine here your have {$ir['power']}"; exit; } if($ir['mine_level'] < 10){ print "<center>You need to be mining level 10 to mine here you are mining level {$ir['mine_level']}</center>"; exit; } $db->query("UPDATE users SET power=power-10 WHERE userid=$userid",$c); $rand_money = rand(1,1000); $rand_exp = rand(1,100); echo "<center>You begin mining in the level 10 mine and found $$rand_money .</center> "; $db->query("UPDATE users SET money=money+'$rand_money',mine_exp=mine_exp+'$rand_exp' WHERE userid=$userid",$c); print "<center>[[url='mine.php?action=mine4']Mine again[/url]]</center> "; print "<center>[[url='mine.php']Back[/url]]</center> "; } function mine_5() { global $ir,$c,$userid,$db; if($ir['power'] < 15){ print "<center>You need 15 power to mine here your have {$ir['power']}</center>"; exit; } if($ir['mine_level'] < 30){ print "<center>You need to be mining level 30 to mine here you are mining level {$ir['mine_level']}</center>"; exit; } $db->query("UPDATE users SET power=power-15 WHERE userid=$userid",$c); $rand_money = rand(1,3000); $rand_exp = rand(1,300); echo "<center>You begin mining in the level 30 mine and found $$rand_money .</center> "; $db->query("UPDATE users SET money=money+'$rand_money',mine_exp+'$rand_exp' WHERE userid=$userid",$c); print "<center>[[url='mine.php?action=mine5']Mine again[/url]]</center> "; print "<center>[[url='mine.php']Back[/url]]</center> "; } function mine_6() { global $ir,$c,$userid,$db; if($ir['power'] < 25){ print "<center>You need 25 power to mine here your have {$ir['power']}</center>"; exit; } if($ir['mine_level'] < 40){ print "<center>You need to be mining level 40 to mine here you are mining level {$ir['mine_level']}</center>"; exit; } $db->query("UPDATE users SET power=power-25 WHERE userid=$userid",$c); $rand_money = rand(1,8000); $rand_exp = rand(1,600); echo "<center>You begin mining in the level 40 mine and found $$rand_money .</center> "; $db->query("UPDATE users SET money=money+'$rand_money',mine_exp+'$rand_exp' WHERE userid=$userid",$c); print "<center>[[url='mine.php?action=mine6']Mine again[/url]]</center> "; print "<center>[[url='mine.php']Back[/url]]</center> "; } ?>
  15. Re: [V2] Login Page Advanced nice man the users offline and online dont work
  16. Re: New exploit found!   how do i make it that
  17. Re: [mccode] Personal Detals for v2.0 $db->query("INSERT INTO users (username, login_name, name, last, age, aog, msn, aim, aol, yahoo, personal, userpass, level, money, crystals, donatordays, user_level, energy, maxenergy, will, maxwill, brave, maxbrave, hp, maxhp, location, gender, signedup, email, bankmoney, lastip, lastip_signup) VALUES( '{$username}', '{$username}', '{$_POST['name']}', '{$_POST['last']}', '{$_POST['age']}', '{$_POST['aog']}', '{$_POST['msn']}', '{$_POST['aim']}', '{$_POST['aol']}', '{$_POST['yahoo']}', '{$_POST['personal']} md5('{$_POST['password']}'), 1, $sm, 0, 0, 1, 12, 12, 100, 100, 5, 5, 100, 100, 1, '{$_POST['gender']}', unix_timestamp(), '{$_POST['email']}', -1, '$IP', '$IP')"); $i=$db->insert_id(); thats the part of the code thats wrong and i think its because of the order can someone correct it please
  18. Re: [mccode] Personal Detals for v2.0 actually one error i get this Mccodes Version 2 QUERY ERROR: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'nothere'), 1, 100, 0, 0, 1, 12, 12, 100, 100, 5, 5, 100, 100, 1, 'Male', unix_ti' at line 1 Query was INSERT INTO users (username, login_name, name, last, age, aog, msn, aim, aol, yahoo, personal, userpass, level, money, crystals, donatordays, user_level, energy, maxenergy, will, maxwill, brave, maxbrave, hp, maxhp, location, gender, signedup, email, bankmoney, lastip, lastip_signup) VALUES( 'nothere', 'nothere', '', '', '', '', '', '', '', '', 'ON md5('nothere'), 1, 100, 0, 0, 1, 12, 12, 100, 10 can anyone help i tried quite a lot of things
  19. i just tryed to add marriage shared house and i add will max thing to database and as soon as i did that it messed up now the will is going up by 2% any help please
  20. Re: [mccode] Personal Detals for v2.0 works perfect with my adjustments
  21. Re: Header.php [New/Imrpoved] is it the 2nd menu thing
  22. $_POST['votetoken']=mny_stripfmt($_POST['votetoken'], ENT_QUOTES); thats the line of the error Fatal error: Call to undefined function mny_stripfmt() in /home/ownsy/public_html/votingredmptioncenter.php on line 94
  23. Re: [mccode] Profile Signatures i tryed v2 but it dont insert a sig
  24. Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/ownsy/public_html/drugfarm.php on line 147 on that line there is if(mysql_num_rows($q) == 0)
  25. Re: Polls error can anyone help me with this error
×
×
  • Create New...