Dabomstew Posted August 12, 2006 Posted August 12, 2006 Kicking off the Lite Mods! This is the HackPC mod adjusted to work with Lite. Free mc code mod - requires no db edits - enjoy! File 1: hackpc.php <?php /* ----------------------------------------------------------------------- -- Hack User's Computer -- © 2006 Dabomstew ----------------------------------------------------------------------- -- This script is distributed in the hope that -- it will be useful, but WITHOUT A WARRANTY -- OF ANY KIND. ----------------------------------------------------------------------- -- Dabomstew, Criminalexistence.com, and -- everyone else involved with this script do not -- take any liability for damage done to your game -- by the use of this script. ----------------------------------------------------------------------- */ 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']); $lv=date('F j, Y, g:i a',$ir['laston']); $h->userdata($ir,$lv,$fm); $h->menuarea(); include "hackpc.config.php"; global $db_config; $in = abs((int) $_GET['ID']); if(!$in) { print "Error - no valid player ID to hack specified."; $h->endpage(); exit; } $q = mysql_query("SELECT * FROM `users` WHERE userid = {$in}", $c); if(!mysql_num_rows($q)) { print "Error - player ID specified does not exist."; $h->endpage(); exit; } $r = mysql_fetch_array($q); if(in_array($in, $db_config['prohibited'])) { print "Error - this player cannot be hacked."; $h->endpage(); exit; } if($r['user_level'] == 0 && $db_config['nohacknpc']) { print "Error - NPCs cannot be hacked."; $h->endpage(); exit; } if($in == $userid) { print "Error - you cannot hack yourself!"; $h->endpage(); exit; } if($r['fedjail']) { print "Error - people in fedjail cannot be hacked"; $h->endpage(); exit; } if($ir['brave'] < $db_config['bravecost']) { print "Error - you need {$db_config['bravecost']} Brave to hack someone's PC."; $h->endpage(); exit; } $rsf = rand(1,100); $exga = rand($db_config['minexp'],$db_config['maxexp']); if($rsf <= $db_config['chance']) { mysql_query("UPDATE users SET exp=exp+{$exga}, brave=brave-{$db_config['bravecost']} WHERE userid={$userid}", $c); $stole=(int) (rand($r['money']/500,$r['money']/200)); if ($stole<0) {$stole=0;} if ($stole>0) { mysql_query("UPDATE users SET money=money+{$stole} WHERE userid={$userid}", $c); mysql_query("UPDATE users SET money=money-{$stole} WHERE userid={$in}", $c); } event_add($in, "{$ir['username']} hacked your computer and stole \$$stole! Click here to try to take your revenge!", $c); print "You succesfully hacked {$r['username']} and stole \$$stole."; } else { mysql_query("UPDATE users SET brave=brave-{$db_config['bravecost']} WHERE userid={$userid}", $c); event_add($in, "{$ir['username']} attempted to hack your computer but was stopped by your firewall.", $c); print "Unfortunately, {$r['username']}'s firewall was too good for you to hack past."; } $h->endpage(); ?> File 2: hackpc.config.php <?php /* ----------------------------------------------------------------------- -- Hack User's Computer : Config File -- © 2006 Dabomstew ----------------------------------------------------------------------- -- This script is distributed in the hope that -- it will be useful, but WITHOUT A WARRANTY -- OF ANY KIND. ----------------------------------------------------------------------- -- Dabomstew, Criminalexistence.com, and -- everyone else involved with this script do not -- take any liability for damage done to your game -- by the use of this script. ----------------------------------------------------------------------- */ $db_config = array ( 'prohibited' => array(), //Add player IDs to this array who you want to be protected from hacking. 'nohacknpc' => TRUE, //Set this to true to block NPC's from being hacked. 'bravecost' => 10, //Set this to the amount of brave you want hacking a PC to cost. 'minexp' => 1, //Set this to the minimum EXP (figure, not %age) that you want a user to gain from a successful hack. 'maxexp' => 2000, //Set this to the maximum EXP (figure, not %age) that you want a user to gain from a successful hack. 'chance' => 30, //Set this to the % chance of a successful hack. Must be a positive integer >= 1. ); ?> Edit hackpc.config.php to change the settings. Up to you to provide the Hack PC link in a user's profile (hint: viewuser.php, Hack Users PC) Quote
seanybob Posted August 24, 2006 Posted August 24, 2006 [Lite] Hack Users PC i like this... :) only i get this error while attempting to hack Warning: in_array(): Wrong datatype for second argument in /home/seanybob/public_html/game/hackpc.php on line 50 Unfortunately, players's firewall was too good for you to hack past. is that my error or did anyone else get that? Quote
Guest Anonymous Posted August 24, 2006 Posted August 24, 2006 [Lite] Hack Users PC i didnt get any errors when i installed mine n im running full btw Quote
sfekt` Posted September 5, 2006 Posted September 5, 2006 [Lite] Hack Users PC Warning: Missing argument 4 for userdata() in /home/urbanrio/public_html/header.php on line 16 Quote
sever104 Posted September 6, 2006 Posted September 6, 2006 lol i tryed mine out no error's at all Quote
canibalstew Posted November 5, 2006 Posted November 5, 2006 Re: [Lite] Hack Users PC im getting a Parse error: syntax error, unexpected '&', expecting '(' in /public_html/battlecreekmafia/hackpc.php on line 19 and 19 th line is if($_SESSION['loggedin']==0) { header("Location: login.php");exit; } Quote
halo2master Posted November 5, 2006 Posted November 5, 2006 Re: [Lite] Hack Users PC im getting a Parse error: syntax error, unexpected '&', expecting '(' in /public_html/battlecreekmafia/hackpc.php on line 19 and 19 th line is if($_SESSION['loggedin']==0) { header("Location: login.php");exit; } im getting the same Parse error: syntax error, unexpected '&', expecting '(' in /home/www/doomcity.awardspace.com/hackpc.php on line 19 Quote
Guest Anonymous Posted November 6, 2006 Posted November 6, 2006 Re: [Lite] Hack Users PC What is the point in Hack Users PC? lol. But it sounds good, but sorry ill give it a miss. The scripts are only errored due to CE's somehow changing some codes from the scripts which makes unknown characters which PHP does not understand so will error. Thats Why Parse Error is occuring in hackpc.php/hackpc_config.php its the # ones. Try to remove them from the # to the ; and it hopefully should work =P. Its not Dabomstews fault ;) Quote
halo2master Posted November 10, 2006 Posted November 10, 2006 Re: [Lite] Hack Users PC hackpc.php You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. takes long time putting them in lol dont no if its right but i add second bit when done hackpc.confiq.php You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. does that look right? Quote
DesignLoft Posted November 18, 2006 Posted November 18, 2006 Re: [Lite] Hack Users PC i'm getting this code : You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. any ideas on how to fix it please? :| Quote
seanybob Posted November 18, 2006 Posted November 18, 2006 Re: [Lite] Hack Users PC "The scripts are only errored due to CE's somehow changing some codes from the scripts which makes unknown characters which PHP does not understand so will error. Thats Why Parse Error is occuring in hackpc.php/hackpc_config.php its the # ones. Try to remove them from the # to the ; and it hopefully should work =P. Its not Dabomstews fault Wink" Quote
halo2master Posted November 18, 2006 Posted November 18, 2006 Re: [Lite] Hack Users PC "The scripts are only errored due to CE's somehow changing some codes from the scripts which makes unknown characters which PHP does not understand so will error. Thats Why Parse Error is occuring in hackpc.php/hackpc_config.php its the # ones. Try to remove them from the # to the ; and it hopefully should work =P. Its not Dabomstews fault Wink" i did it looks right i posted it just up there a bit but i didernt change 1 or 2 of these # but i changes all of them bsicly into ; Quote
DesignLoft Posted November 19, 2006 Posted November 19, 2006 Re: [Lite] Hack Users PC Why in the script is there all these #444 #123 #456 etc..? is it any point in these?? or is my mozilla dodgy? Quote
UCC Posted November 19, 2006 Posted November 19, 2006 Re: [Lite] Hack Users PC I can tell you they are ASCII Codes. I'm not certain why they're preferred by some Quote
DesignLoft Posted November 20, 2006 Posted November 20, 2006 Re: [Lite] Hack Users PC ohright i see, But why are they put on?, they seem to mess up the code as mine is [Lite] Quote
canibalstew Posted November 20, 2006 Posted November 20, 2006 Re: [Lite] Hack Users PC mine is full and still wont work now i got 2.0 and looking for someone to help me get it workin Quote
DesignLoft Posted November 20, 2006 Posted November 20, 2006 Re: [Lite] Hack Users PC You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. I seem to be getting this error after directingly copying it off this forum thread, I then open it up /hackpc.php to see if it works and this error comes up, line 20 seems to be You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Quote
DesignLoft Posted November 21, 2006 Posted November 21, 2006 Re: [Lite] Hack Users PC any ideas why?? ^^^ Quote
MeltedMoss Posted December 1, 2006 Posted December 1, 2006 Re: [Lite] Hack Users PC Parse error: syntax error, unexpected ';' in /home/rebelc/domains/rebel-city.com/public_html/hackpc.php on line 17 Any Suggestions??? done everything that has been said to do in this topic so any sugestions on whats wrong? Quote
DesignLoft Posted December 1, 2006 Posted December 1, 2006 Re: [Lite] Hack Users PC i suggest adding } at the end just above end session() php?> Quote
MeltedMoss Posted December 1, 2006 Posted December 1, 2006 Re: [Lite] Hack Users PC nope didnt work Quote
b-a-d-b-o-i Posted February 8, 2007 Posted February 8, 2007 Re: [Lite] Hack Users PC Worked straight away cheers :D Quote
03laceys Posted April 29, 2007 Posted April 29, 2007 Re: [mccode] Hack Users PC can any1 convert this to v2 mccodes please? ty hackpc.php You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. takes long time putting them in lol dont no if its right but i add second bit when done hackpc.confiq.php You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. does that look right? Quote
twist_killer Posted April 29, 2007 Posted April 29, 2007 Re: [mccode] Hack Users PC http://criminalexistence.com/ceforums/i ... pic=2728.0 read the topic..it'll tell you how to change it Quote
03laceys Posted April 29, 2007 Posted April 29, 2007 Re: [mccode] Hack Users PC lol ty but i still dnt get it lol any more help? Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.