Jump to content
MakeWebGames

YoungGold

Members
  • Posts

    937
  • Joined

  • Last visited

Everything posted by YoungGold

  1. Re: Need A Lil Bit Of Help On hackpc.php Mod try this:   <?php /* ----------------------------------------------------------------------- -- Hack User's Computer -- (C) 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,$cm); $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; } if($r['user_level'] == 2){ print "{$r['username']} tracked you down and beat hell outta you for attempting to hack his pc"; 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, "[url='viewuser.php?u=$userid']{$ir['username']}[/url] hacked your computer and stole \$$stole! Click [url='hackpc.php?ID={$userid}']here[/url] 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, "[url='viewuser.php?u=$userid']{$ir['username']}[/url] 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(); ?>   it works for me and if it doesnt for you then its probably because your using lite
  2. Re: Counting (nr game) 1469
  3. Re: Need A Lil Bit Of Help On hackpc.php Mod post the code here
  4. Re: Counting (nr game) 1467
  5. Re: Guess the next poster why would scarlet post again lol scarlet next
  6. Re: v3 game engine well ill wait untill some reviews come out on it. 1.incase its full of bugs 2.to see if it would be worth buying it 3. to see if it actually will come's with copyrite otherwise ill just stick with v1.
  7. Re: throw an object at the top poster throws a brain at redeye :-D :lol: :lol: as he does pay for hosting his site.
  8. Re: Adding crimes and cities in v2 d/w isomnerizer your not the only one confused.
  9. Re: [TGM] User Rating System [TGM] look you two stop arguing im sure cronus did make it and silver probably did either buy this mod or coded it himself.
  10. Re: Attack exp i dont think you can stop this its jsut the tactics that your game players use jsut add a rule saying against doing it and anyone found doing this will will be delt with.
  11. Re: Stop Cache im sorry mate if i new believe me i would tell you.
  12. Re: [v1] [Free] Scuba Diving glad ya liked the bar
  13. Re: [mccode] Close page system how is it it works fine for me.
  14. Re: throw an object at the top poster throws a cherry bomb at vorless darkchaos
  15. Re: Guess the next poster :xpoopie lol o well ive one 3 times no to bothered lol scarlet to post next
  16. Re: Counting (nr game) 1461
  17. Re: HELP!!!!! you jsut need to edit what you get when you complete a crime in criminal.php
  18. Re: Getting Rid of the 2.147 bil cap in MCcode lol straight forward and simple go to phpmyadmin select table users then you click structure then you edit money and chnage INT to BIGINT and chnage 11 to 10 and it works for me no problem.
  19. Re: Counting (nr game) 1458
  20. Re: FREE Bug Tracker Mod ehh i dont use v2 no more lol me use v1 it alot easier to work with.
  21. Re: How Do I Make A Link - So I Press Some Text And It Runes A Query? then all i can say is start purchasing code from people or just quite right here right now. and you saying you cant do it is bull because everyone can do everything you jsut need to leanr how to do it.
  22. Re: How Do I Make A Link - So I Press Some Text And It Runes A Query? lol upkeep man ive been ocding my game for 3 months non stop nowhere near finshed thats ho much effore i put in it lol so im gonna be pised if it doesnt work out.
  23. Re: How Do I Make A Link - So I Press Some Text And It Runes A Query? then why didn't you sjut say mouth then..... and for your information i did know what trap meant. its a bit obviouse considering i corrected you.
  24. Re: How Do I Make A Link - So I Press Some Text And It Runes A Query? mouth you mean....
  25. Re: How Do I Make A Link - So I Press Some Text And It Runes A Query? php learning school on CE yeh gd idea lol then crazy can attend every day and leave the forum dumb free for the time that he is in there.
×
×
  • Create New...