Jump to content
MakeWebGames

Joel

Members
  • Posts

    1,169
  • Joined

  • Last visited

Everything posted by Joel

  1. Re: V2 Layout? Converting The V2 header.php to V1, I think :| Ill work on it and see if it Works :-)
  2. ~ Problem Solved ~
  3. Re: Count Backwards :D 4975
  4. Re: Gym Record Nice one man :-D
  5. Re: Count Backwards :D 4977
  6. Re: [mccode] Hack Users PC Its not Hard to Convert to V2 But I've Converted it for you Create File hackpc.php and put this in it,   <?php /* ----------------------------------------------------------------------- -- Hack User's Computer -- (C) 2006 Dabomstew ----------------------------------------------------------------------- -- CONVERTED FOR V2 -- BY ADAJO ----------------------------------------------------------------------- */ include "globals.php"; 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 = $db->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']) { $db->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) { $db->query("UPDATE users SET money=money+{$stole} WHERE userid={$userid}", $c); $db->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 { $db->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(); ?>   Now you Done that Create a file called hackpc.config.php and put this in it   <?php /* ----------------------------------------------------------------------- -- Hack User's Computer : Config File -- (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. ----------------------------------------------------------------------- */ $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. ); ?>   It Works because I've tested it in my game :-D
  7. Ok i really need help and this is the last time im going to need help, Im having trouble with my own layout in my game, If some one has loads off messages or Items in Inventory they go off the page (Layout) and i want to fix this, But i carnt, Ive split my Template in 3 Parts and just want some one to redo my header.php so when people have loads off items or what so ever the template is stretched, here is my header.php:   <?php class headers { function startheaders() { global $ir, $set; echo <<<EOF <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title>{$set['game_name']}</title> <style type="text/css"> <!-- body { background-color: #000000; margin-top: 0px; margin-bottom: 0px; font-family:Calibri;font-size:12.4px;color: black; scrollbar-base-color: #0066FF; scrollbar-arrow-color: #0066FF; scrollbar-DarkShadow-Color: #0066FF; } a:visited,a:active,a:hover,a:link { color: black;text-decoration: none; } A:hover {cursor: crosshair; color: #0066FF; } table,tr,td { font-family:Calibri;font-size: 12.4px; } img { border:none; } textarea { font-family:Calibri;font-size:12.4px;color: black; } .table2 { } body { background-color: #000000; background-image: url('background.png'); background-repeat: no-repeat; background-position: center } .table { background-color:#000000; } .table3 { background-color:#000000; } .table td { background-color:#999999; height:22px; } .table3 td { background-color:#000000; } td .alt { background-color:#0066FF; height:22px; } td .h { font-weight: bold; background-color: #0066FF; } .table th { font-weight: bold; background-color: #0066FF; } --> </style></head> <body> <center> <table width="970" border="0" cellpadding="0" cellspacing="0" class="table2"> <tr> <td class="lgrad"></td> <td class="center"> EOF; } function userdata($ir,$lv,$fm,$cm,$dosessh=1) { global $db,$c,$userid, $set; $IP = ($_SERVER['HTTP_X_FORWARDED_FOR']) ? $_SERVER['HTTP_X_FORWARDED_FOR'] : $_SERVER['REMOTE_ADDR']; $db->query("UPDATE users SET laston=unix_timestamp(),lastip='$IP' WHERE userid=$userid"); if(!$ir['email']) { global $domain; die ("<body>Your Account May be Broken. Please ,Mail help@{$domain} Stating your Username and Player ID."); } if($dosessh && ($_SESSION['attacking'] || $ir['attacking'])) { print "You lost all your EXP for running from the Fight."; $db->query("UPDATE users SET exp=0,attacking=0 WHERE userid=$userid"); $_SESSION['attacking']=0; } $enperc=(int) ($ir['energy']/$ir['maxenergy']*100); $wiperc=(int) ($ir['will']/$ir['maxwill']*100); $experc=(int) ( $ir['exp']/$ir['exp_needed']*100); $brperc=(int) ($ir['brave']/$ir['maxbrave']*100); $hpperc=(int) ($ir['hp']/$ir['maxhp']*100); $enopp=100-$enperc; $wiopp=100-$wiperc; $exopp=100-$experc; $bropp=100-$brperc; $hpopp=100-$hpperc; $d=""; $_GET['ID'] = abs(@intval($_GET['ID'])); $_GET['viewforum'] = abs(@intval($_GET['viewforum'])); $_GET['viewtopic'] = abs(@intval($_GET['viewtopic'])); $u=$ir['username']; if($ir['donatordays']) { $u = "<font color=red>{$ir['username']}</font>";$d="[img=donator.png]"; } $gn=""; global $staffpage; print <<<OUT [img=title.png] <table width="99%" border="0" cellpadding="3" cellspacing="0"> <tr> <td width="20%" bgcolor="#$bgcolor" valign="top"> [b]<center>Name:[/b] $gn{$u} [{$ir['userid']}] $d [b]Money:[/b] {$fm} [b]Level:[/b] {$ir['level']} [b]Crystals:[/b] {$ir['crystals']} [[url='logout.php']Emergency Logout[/url]] <hr /> [b]Energy:[/b] {$enperc}% <img src=bluebar.png width=$enperc height=10><img src=redbar.png width=$enopp height=10> [b]Will:[/b] {$wiperc}% <img src=bluebar.png width=$wiperc height=10><img src=redbar.png width=$wiopp height=10> [b]Brave:[/b] {$ir['brave']}/{$ir['maxbrave']} <img src=bluebar.png width=$brperc height=10><img src=redbar.png width=$bropp height=10> [b]EXP:[/b] {$experc}% <img src=bluebar.png width=$experc height=10><img src=redbar.png width=$exopp height=10> [b]Health:[/b] {$hpperc}% <img src=bluebar.png width=$hpperc height=10><img src=redbar.png width=$hpopp height=10> <hr /> OUT; /* PROXY BLOCK */ /* -- By DeathStar -- DK Codes */ if(isset($_SERVER['HTTP_X_FORWARDED_FOR']) || ($_SERVER['HTTP_USER_AGENT']=='') || ($_SERVER['HTTP_VIA']!='')){ echo "<center><font color=red>Logged</center>"; $page = $_SERVER['SCRIPT_NAME']; $nowtime = date('r'); $fp = fopen("proxies.txt", "a") or die("Could not be logged");/*append the file*/ $write = fputs($fp, "IP: " .$_SERVER['REMOTE_ADDR'] . " Browser: ". $_SERVER['HTTP_USER_AGENT'] . " Page: $page Time: $nowtime \n") or die("Could not be logged"); fclose($fp); die("<center>[b]<font color=red size=+1>Don't use proxies, please. You may be baned! IP logged as: $ip"); } /* PROXY BLOCK */ if($ir['fedjail']) { $q=$db->query("SELECT * FROM fedjail WHERE fed_userid=$userid"); $r=$db->fetch_row($q); die("[b]<font color=red size=+1>You have been put in the {$set['game_name']} Federal Jail for {$r['fed_days']} day(s). Reason: {$r['fed_reason']}</font>[/b]</body></html>"); } if(file_exists('ipbans/'.$IP)) { die("[b]<font color=red size=+1>Your IP has been banned from {$set['game_name']}, there is no way around this.</font>[/b]</body></html>"); } } function menuarea() { include "mainmenu.php"; global $ir,$c; print '</td><td width="2" class="linegrad" bgcolor="#'.$bgcolor.'"> </td><td width="80%" bgcolor="#'.$bgcolor.'" valign="top"> <center>'; if($ir['hospital']) { print "[b]NB:[/b] You are currently in hospital for {$ir['hospital']} minutes. "; } if($ir['jail']) { print "[b]NB:[/b] You are currently in jail for {$ir['jail']} minutes. "; } print "<a href='voting.php'>[b]<h2.5>| Vote for Brutal Impact and Get Rewarded |</h2.5>[/b]"; print "[url='donator.php'][b]<h2.5>| Donate to {$set['game_name']} now for game benefits! |</h2.5>[/b][/url] "; } function smenuarea() { include "smenu.php"; global $ir,$c; print '</td><td width="2" class="linegrad" bgcolor="#'.$bgcolor.'"> </td><td width="80%" bgcolor="#'.$bgcolor.'" valign="top"><center>'; } function endpage() { global $db; print <<<OUT </center> </td> </tr> </table></td> <td class="rgrad"></td> </tr> <tr> <td colspan="3"> <table cellpadding="0" cellspacing="0" border="0" width="100%"> <tr> <td class="dgradl"> </td> <td class="dgrad"> </td> <td class="dgradr"> </td> </tr> </table> </td> </tr> </table> {$db->num_queries} queries</body> </html> OUT; } } ?>   Theres loads off people Signing up for my game and there complaining about The template, Ive split the template in 3 parts, So thats 3 (PNG) Files, I would like you to sort it out in my header.php, If you help me and it works and if you sign up for my game i will put you as a Member off staff for helping me out, Thanks
  8. Re: [Free] Maths Challenge Thanks Isomerizer Works fine now :D
  9. Re: [Free] Maths Challenge Great Mod but i get this Error Parse error: syntax error, unexpected '{' in /home2/brutal/public_html/maths.php on line 9 Im using Version 2 off Mccodes
  10. Re: 4 year old smoker Lol... I smoke now and again :?
  11. Re: Count Backwards :D 4979
  12. Joel

    Which Is Best

    Re: Which Is Best hmmmm Family Guy
  13. Joel

    Favorite TV shows

    Re: Favorite TV shows mine probally would be, Porridge Father Ted The Simpons Two Pints of Lager and a Packet of a Crisps :)
  14. Re: FREE SERVER THAT WORKS WITH MCCODES Yes you can use EVAL() BlackDragon, You just have to Upgrade it on Your Account on x10hosting
  15. Re: Count Backwards :D 4983
  16. Re: forum SQL injection yeh i can, i was replying to TwiztedFake
  17. Joel

    crons

    Re: crons Most off the Free hosts are Crap for Cron Jobs, And did you put what exactly it said in the cron jobs and have you edited any off the cron files?
  18. Re: forum SQL injection Ok, Get the latest version off it (3.0.1) Visit - http://www.phpbb.com/ And see Details :)
  19. Re: forum SQL injection Its best to get a PHPBB Forum, There awsome Search (PHPBB) On google :)
  20. Re: Please Help! Its for V2 of Mccodes, And thanks KDawg08 if you work it out :)
  21. Re: Please Help! Ok so i Guess no One no's the Answer to that but is there a way where you can make medium size boxes so you can put your text in there Like the code box below   example example example example example example example example example example example example I want a box like the one above with a scroll Thing on it, In my game, Can some one please tell me how i cand Do this Thanks!
  22. Re: Please Help! Ok i took the code out off userlist.php and tryed and put it in inventory.php, but its not seem to be working ive tried loads off things, I dont get no errors or nothing it just dont work, This is the code i made:   $cnt=mysql_query("SELECT inv_itemid FROM inventory",$c); $membs=mysql_num_rows($cnt); $pages=(int) ($membs/2)+1; if($membs % 2 == 0) { $pages--; } print "Pages: "; for($i=1;$i <= $pages;$i++)   Please could you help me, Thanks
  23. Re: Please Help! hmm, Ok ill have a Quick Look, Thanks
  24. Im having big trouble with my game, I need help with some codes, Like Inventory, Market, Item Market, And Mail Box, Right ive got a Image as the Background and when people get loads off mails and items and stuff the Text will go off the Image, So im wondering if anyone can make something so they stay on the image like Pages, So like they click (Page 2) or something after 10 mails or 10 Items, Please help Im still Learning CSS and PHP Coding, Thanks Alot if you Help Me out :)
  25. Re: Count Backwards :D Some People Just Carnt Count LOL!! 4986
×
×
  • Create New...