Jump to content
MakeWebGames

dandre02

Members
  • Posts

    28
  • Joined

  • Last visited

    Never

Everything posted by dandre02

  1. wow everyone done found out you lied about creating the header, and drop-down menu, illusions can also stand up for it as she knew about the drop-down menu for almost 2 years now, so you didnt recode anything all you did was rip my source and make it basic for mccodes non-modded now if you want to get into this arguement again we can cuz i can prove i coded this as i know exactly what does what, when you dont, also if you re-coded it then where did u get the javascript info from, when did u code it, how long did it take you, what exactly did u recode as your coding is my exact coding line by line. and in page one of this topic you gave credit where credit was due so dont start saying you had recoded it when u didnt do anything but rip my code and release it trying to say its yours, now see im trying to be nice or id say ur just a pirater stealing peoples work and trying to say its your own, other people might not realize you use there work but i know my work because i code alot differently then alot of people, and i know as a fact that you dont code how i do, this is also the reason i dont release my work because of people like you, taking peoples work, and releasing it stateing its yours, now if you really want i can take this to court and have the court system decide on who created it, then youll more then likely be fined, and charged for theft so its up to you. I recoded it and dont bother come on ma fucking post and chat shit
  2. I actually re-coded the mccodes v2 as everyone knew it wasn't working.
  3. Its alrite made i had it done. I need help with the adding of the crimes and jobs.
  4. D.w mate i will post a view user later for you ?
  5. Use google chrome. And can some-one tell me how to do the maillcount thing please and thank you.
  6. Thanks
  7. Can some-one tell me what colours to use instead ?
  8. Can Some-One Help Me Please, Im Hoping to open my game by sunday afternoon so people in my school can play it, so far i am doing quite good but i need some-one to add crimes and jobs for me. If anyone call help me can they please p.m me and i will give them the link to the game. If you want to see what the game looks like here are some screen shots I Am Sorry That I Only Have 2 Screenshots : If the screenshots don't show here is the link to them : http://img7.imageshack.us/i/screeny2g.jpg/ [align=center]&[/align] http://img405.imageshack.us/i/screeny1b.jpg/
  9. Lol are you using mccodes v1 ? if you want i can install mccodes v2 for you.
  10. Okay thanks, Are you using this mod in your game ?
  11. The variables are lower down in the code but i cant remember where, i know they are somewhere in there & it says edited not created. Jeeze im new dont give me a hard time.
  12. I really need this, do you have any copy of this login i will just need to change the background picture.
  13. Done now can some-one give me some feedback on the mod ?
  14. Can some-one post a new link to download this because everytime i go to that site it wont let me download it, can some-one try rapid share or megaupload please ?
  15. [align=center]Hey this is a mod for mccodes v2, in this mod it lets you chaos bomb users that you may want revenge on. I used a assassination mod but i can't remember who mad it, but i used a assassination mod and edited it. Okay lets begin, create a new page called cbomb.php   <?php include(DIRNAME(__FILE__) . '/globals.php'); /* Edited by Dandre02 - The Chaos MOD Free modification Feel free to change this to your needs, but do not take credit for making it! Please keep this notice intact! */ $_GET['x'] = isset($_GET['x']) && is_string($_GET['x']) ? strtolower(trim($_GET['x'])) : false; switch($_GET['x']) { case 'step1': step1(); break; case 'step2': step2(); break; default: index(); break; } function index() { echo '<table width="700" class="table" height="1"><tbody><tr><td valign="top" width="67%" align="center" height="1%"><font size="2">[b][b]<u>Hiring A Chaos Bomb</u>[/b][/b]</font></td></tr> <tr><td valign="top" width="67%" align="left" height="1%"> <center> <table width="90%"><tbody><tr><td><center> Chaos Bombing a user is a good way to get revenge on some-one thats better than you. Using this feature will send the user to hospital after you pay a small fee. The cost of this feature is $2,000 * the users Level. <form method="post" action="cbomb.php?x=step1"> <input value="Next" type="submit"> </form> </center></td></tr></tbody></table>'; } function step1() { echo '<table width="450" class="table" height="1"><tbody><tr><td valign="top" width="67%" align="center" height="1%"><font size="2">[b][b]<u>Hiring A Chaos Bomb</u>[/b][/b]</font></td></tr> <tr><td valign="top" width="67%" align="left" height="1%"> <center> <table width="100%"><tbody><tr><td><center> Remember hiring a chaos bomb costs $2,000 * The targets level. If your name is hidden it will cost no extra fees <form action="cbomb.php?x=step2" method="post"> User: '.user_dropdown($c,'user').' Keep Your name hidden? <input name="hidden" value="0" checked="checked" type="radio"> No <input name="hidden" value="1" type="radio"> Yes <input value="Next" type="submit"> </form> </center></td></tr></tbody></table>'; } function step2() { global $db, $ir, $h; $a=$db->query("SELECT `username`, `level`, `userid`, `hospital`, `jail` FROM `users` WHERE `userid`= {$_POST['user']}"); if(!$db->num_rows($a)) { echo 'This user does not exist!'; $h->endpage(); exit; } while($assas=$db->fetch_row($a)) { $cost=$assas['level']*2000; $cost2=$assas['level']*2000+0; $hosp=mt_rand(70,160); if($_POST['hidden'] ==1) { if($ir['userid'] == $assas['userid']) { echo 'You cannot bomb your self!'; $h->endpage(); exit; } if($ir['money'] <$cost2) { echo 'You do not have enough to chaos bomb'.$assas['username'].''; $h->endpage(); exit; } if($assas['hospital'] || $assas['jail']) { echo 'This user is in hospital or jail so they cannot be bombed.'; $h->endpage(); exit; } $db->query("UPDATE `users` SET `hospital`= {$hosp}, `hospreason`= 'Chaos Bombed By Someone' WHERE `userid`={$assas['userid']}"); $db->query("UPDATE `users` SET `money`=`money`-{$cost2} WHERE `userid`={$ir['userid']}"); event_add($assas['userid'],"You were chaos bombed by Someone."); echo 'You have paid $'.$cost2.' to bomb '.$assas['username'].' for '.$hosp.' Minutes'; } else { if($ir['userid'] == $assas['userid']) { echo 'You cannot bomb your self!'; $h->endpage(); exit; } if($ir['money'] <$cost) { echo 'You do not have enough to Chaos Bomb '.$assas['username'].''; $h->endpage(); exit; } if($assas['hospital'] || $assas['jail']) { echo 'This user is in hospital or jail so they cannot be Chaos Bombed.'; $h->endpage(); exit; } $db->query("UPDATE `users` SET `hospital`= {$hosp}, `hospreason`= 'Bombed By {$ir['username']}' WHERE `userid`={$assas['userid']}"); $db->query("UPDATE `users` SET `money`=`money`-{$cost} WHERE `userid`={$ir['userid']}"); event_add($assas['userid'],"You were Bombed by [url='viewuser.php?u={$ir[']{$ir['username']}[/url]."); echo 'You have paid $'.$cost.' to bomb '.$assas['username'].' for '.$hosp.' Minutes'; } } } ?>   Then add this link in explore Chaos Bomb   Thanks, Dandre02, If There Is A SQL Can Someone Post It Because I Dont Think You Need One. But If You Do Can You Post One Please.[/align]
  16. Okay i will give him credit then
  17. Actually it is not your exact coding because i posted mine before you so check again. And i changed the links for the gangs and added more pictures plus edited the coding. So don't lie please.
  18. Hey i found the drop down menu and every code that i tried i could not fix the page but now i finally fixed it. It is my first mod so please don't be to harsh on me. For this mod you will need to : Save 7 Images Create 3 Files And Create 1 Directory :P Create a new file called mainmenu1.php <?php global $db,$c,$ir, $set; $hc=$set['hospital_count']; $jc=$set['jail_count']; $ec=$ir['new_events']; $mc=$ir['new_mail']; $city=mysql_fetch_object(mysql_query("SELECT cityname FROM cities WHERE cityid = ".$ir['location']." ")); print "<html><head> <link rel='stylesheet' type='text/css' href='pro_dropdown_2.css' /> <script src='stuHover.js' type='text/javascript'></script> </head><body><center> <span class='preload1'></span> <span class='preload2'></span> <ul id='nav'> <li class='top'>[url='index.php']<span>Home</span>[/url] <li class='top'>[url='#nogo2']<span class='down'>Player</span>[/url] <ul class='sub'> [*][url='inventory.php']Inventory[/url] [*][url='events.php']Events[/url] [*][url='mailbox.php']Mailbox[/url] [*][url='myevents.php']My Events[/url] [*][url='announcements.php']Announcements[/url] [*][url='preferences.php']Player Settings[/url] [*][url='hospital.php']Hospital ($hc)[/url] [*][url='jail.php']Jail ($jc)[/url][/list]"; print"<li class='top'>[url='explore.php']<span>$city->cityname</span>[/url] <li class='top'>[url='#noto23']<span class='down'>Credits</span>[/url] <ul class='sub'> [*][url='donator.php']Buy Credits[/url] [*][url='cmarket.php']Credit Market[/url] [*][url='sendcrys.php']Transfer Credits[/url] [*][url='crystaltemple.php']Use Credits[/url] [/list] <li class='top'>[url='#nogo27']<span class='down'>Gang</span>[/url] <ul class='sub'> [*][url='gangcentral.php']Create Gang[/url]"; if(!$ir['jail'] && $ir['gang']) { print "[*][url='yourgang.php']Your Gang[/url]"; } print "[/list] <li class='top'>[url='#nogo53']<span class='down'>General</span>[/url] <ul class='sub'> [*][url='criminal.php']Crimes[/url] [*][url='job.php']Jobs[/url] [*][url='gym.php']Gym[/url] [*][url='education.php']School[/url] [*][url='newspaper.php']Newspaper[/url] [*][url='search.php']Search[/url] [*][url='forums.php']Forums[/url] [*][url='preport.php']Player Report[/url] [/list] "; if($ir['donatordays']) { print "<li class='top'>[url='#nogo53']<span class='down'>Donators</span>[/url] <ul class='sub'> [*][url='friendlist.php']Friends List[/url] [*][url='blacklist.php']Black List[/url][/list]"; } if($ir['user_level'] > 1) { print "<li class='top'>[url='staff.php']<span>Staff Panel</span>[/url][/list]</center></body></html>"; } ?>   Create a file called pro_dropdown_2.css .preload1 {background: url(three_1.gif);} .preload2 {background: url(three_1a.gif);} #nav {padding:0; margin:0; list-style:none; height:38px; background:#ccc url(three_0.gif) repeat-x; position:relative; z-index:500; font-family:arial, verdana, sans-serif;} #nav li.top {display:block; float:left; height:38px;} #nav li a.top_link {display:block; float:left; height:35px; line-height:33px; color:#ccc; text-decoration:none; font-size:11px; font-weight:bold; padding:0 0 0 12px; cursor:pointer;background: url(three_0.gif);} #nav li a.top_link span {float:left; display:block; padding:0 24px 0 12px; height:35px; background: url(three_0.gif) right top no-repeat;} #nav li a.top_link span.down {float:left; display:block; padding:0 24px 0 12px; height:35px; background: url(three_0a.gif) no-repeat right top;} #nav li:hover a.top_link {color:#fff; background: url(three_1.gif) no-repeat;} #nav li:hover a.top_link span {background:url(three_1.gif) no-repeat right top;} #nav li:hover a.top_link span.down {background:url(three_1a.gif) no-repeat right top;} /* Default list styling */ #nav li:hover {position:relative; z-index:200;} #nav li:hover ul.sub {left:1px; top:38px; background: #bbd37e; padding:3px; border:1px solid #5c731e; white-space:nowrap; width:90px; height:auto; z-index:300;} #nav li:hover ul.sub li {display:block; height:20px; position:relative; float:left; width:90px; font-weight:normal;} #nav li:hover ul.sub li a {display:block; font-size:11px; height:18px; width:88px; line-height:18px; text-indent:5px; color:#000; text-decoration:none;border:1px solid #bbd37e;} #nav li ul.sub li a.fly {background:#bbd37e url(arrow.gif) 80px 6px no-repeat;} #nav li:hover ul.sub li a:hover {background:#6a812c; color:#fff; border-color:#fff;} #nav li:hover ul.sub li a.fly:hover {background:#6a812c url(arrow_over.gif) 80px 6px no-repeat; color:#fff;} #nav li:hover li:hover ul, #nav li:hover li:hover li:hover ul, #nav li:hover li:hover li:hover li:hover ul, #nav li:hover li:hover li:hover li:hover li:hover ul {left:90px; top:-4px; background: #bbd37e; padding:3px; border:1px solid #5c731e; white-space:nowrap; width:90px; z-index:400; height:auto;} #nav ul, #nav li:hover ul ul, #nav li:hover li:hover ul ul, #nav li:hover li:hover li:hover ul ul, #nav li:hover li:hover li:hover li:hover ul ul {position:absolute; left:-9999px; top:-9999px; width:0; height:0; margin:0; padding:0; list-style:none;} #nav li:hover li:hover a.fly, #nav li:hover li:hover li:hover a.fly, #nav li:hover li:hover li:hover li:hover a.fly, #nav li:hover li:hover li:hover li:hover li:hover a.fly {background:#6a812c url(arrow_over.gif) 80px 6px no-repeat; color:#fff; border-color:#fff;} #nav li:hover li:hover li a.fly, #nav li:hover li:hover li:hover li a.fly, #nav li:hover li:hover li:hover li:hover li a.fly {background:#bbd37e url(arrow.gif) 80px 6px no-repeat; color:#000; border-color:#bbd37e;}   Create a file called stuHover.js stuHover = function() { var cssRule; var newSelector; for (var i = 0; i < document.styleSheets.length; i++) for (var x = 0; x < document.styleSheets[i].rules.length ; x++) { cssRule = document.styleSheets[i].rules[x]; if (cssRule.selectorText.indexOf("LI:hover") != -1) { newSelector = cssRule.selectorText.replace(/LI:hover/gi, "LI.iehover"); document.styleSheets[i].addRule(newSelector , cssRule.style.cssText); } } var getElm = document.getElementById("nav").getElementsByTagName("LI"); for (var i=0; i<getElm.length; i++) { getElm[i].onmouseover=function() { this.className+=" iehover"; } getElm[i].onmouseout=function() { this.className=this.className.replace(new RegExp(" iehover\\b"), ""); } } } if (window.attachEvent) window.attachEvent("onload", stuHover);   Replace Header.php With This <?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, helvetica, arial, geneva, sans-serif;font-size:12px;color: yellow; scrollbar-base-color: #005B70; scrollbar-arrow-color: #F3960B; scrollbar-DarkShadow-Color: #000000; } a:visited,a:active,a:hover,a:link { color: blue;text-decoration: none; } table,tr,td { font-family:helvetica, arial, geneva, sans-serif;font-size: 12px; } img { border:none; } textarea { font-family:helvetica, arial, geneva, sans-serif;font-size:12px;color: yellow; } .table2 { } .lgrad { background-image:url(lgrad.jpg); background-repeat:repeat-y; width:19px; } .linegrad { background-image:url(linegrad.PNG); background-repeat:repeat-y; background-align: center; width:2px; } .rgrad { background-image:url(rgrad.jpg); background-repeat:repeat-y; width:19px; } .dgrad { background-image:url(dgrad.jpg); background-repeat:repeat-x; height:38px; } .dgradl { background-image:url(dgradl.jpg); background-repeat:no-repeat; height:38px; width:38px; } .dgradr { background-image:url(dgradr.jpg); background-repeat:no-repeat; height:38px; width:38px; } .center { width:932px; background-color:#000000; vertical-align:top; text-align:center; } .table { background-color:#000000; } .table3 { background-color:#000000; } .table td { background-color:#000000; height:22px; } .table3 td { background-color:#000000; } td .alt { background-color:#000000; height:22px; } td .h { background-image:url(tablehgrad.png); background-repeat:repeat-x; font-weight: bold; background-color: #000000; } .table th { background-image:url(tablehgrad.png); background-repeat:repeat-x; font-weight: bold; background-color: #000000; } --> </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=""; $u=$ir['username']; if($ir['donatordays']) { $u = "<font color=red>{$ir['username']}</font>";$d="[img=donator.gif]"; } $gn=""; global $staffpage; $bgcolor = '000000'; 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() { global $ir,$c; $bgcolor = '000000'; 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 <<<OUT <table width="800"><tr><td width="800" height="230" class="logo"></td></tr></table> <table width="100%" border="0" cellpadding="0" cellspacing="0"> <table width="800"> <tr> <td>[b]Name:[/b] {$ir['username']} [{$ir['userid']}]</td> <td>[b]Money:[/b] {$fm}</td> [b]Level:[/b] {$ir['level']} [b]Crystals:[/b] {$ir['crystals']} </tr> <tr> <td>[b]Energy{$set['game_energy']}:[/b] {$enperc} <img src=images/bar_left.gif height=5><img src=images/greenbar.gif width=100 height=5><img src=images/redbar.gif width=0 height=5><img src=images/bar_fil_end.png height=5></td> <td>[b]Will{$set['game_will']}:[/b] {$wiperc} <img src=images/bar_left.gif height=5><img src=images/greenbar.gif width=100 height=5><img src=images/redbar.gif width=0 height=5><img src=images/bar_fil_end.png height=5></td> <td>[b]Brave{$set['game_brave']}:[/b] {$ir['brave']}/{$ir['maxbrave']} <img src=images/bar_left.gif height=5><img src=images/greenbar.gif width=100 height=5><img src=images/redbar.gif width=0 height=5><img src=images/bar_fil_end.png height=5></td> <td>[b]Exp{$set['game_exp']}:[/b] {$experc} <img src=images/bar_left.gif height=5><img src=images/greenbar.gif width=100 height=5><img src=images/redbar.gif width=0 height=5><img src=images/bar_fil_end.png height=5></td> <td>[b]Health{$set['game_health']}:[/b] {$hpperc} <img src=images/bar_left.gif height=5><img src=images/greenbar.gif width=100 height=5><img src=images/redbar.gif width=0 height=5><img src=images/bar_fil_end.png height=5></td> </tr> <table width="100%" border="0" cellpadding="0" cellspacing="0"> OUT; include("mainmenu1.php"); print "[url='donator.php'][b]Donate to {$set['game_name']} now for game benefits![/b][/url] "; print "[url='voting.php'][b]Vote for {$set['game_name']} now for game benefits![/b][/url] "; } function smenuarea() { include "smenu.php"; global $ir,$c; $bgcolor = '000000'; 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; } } ?>   Now Go These URL'S And Save These Images : Link 1 Link 2 Link 3 Link 4 Link 5 Link 6 Link 7 Put The Pictures In A New Directory Called 'images' Thanks, Credits Go To MDK666 For The Top Codes. Dandre02
  19. Can someone give me their code for name and money please because mine dont work.After that i will post the code
  20. The untested one just makes it worst im doing good on a new code right now its about 95% finished just need to get the bar stats sorted then i will post it.
  21. I cant i tried that and it keeps coming with some error thing.
  22. Okay i am not a good coder but i have got round re-coding some of this and this is what i have so far : [screenShot Below Code] <?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: #DEDEDE; margin-top: 0px; margin-bottom: 0px; font-family:calibri, helvetica, arial, geneva, sans-serif;font-size:12px;color: black; scrollbar-base-color: #005B70; scrollbar-arrow-color: #F3960B; scrollbar-DarkShadow-Color: #000000; } a:visited,a:active,a:hover,a:link { color: black;text-decoration: none; } table,tr,td { font-family:helvetica, arial, geneva, sans-serif;font-size: 12px; } img { border:none; } textarea { font-family:helvetica, arial, geneva, sans-serif;font-size:12px;color: black; } .table2 { } .lgrad { background-image:url(lgrad.jpg); background-repeat:repeat-y; width:19px; } .linegrad { background-image:url(linegrad.PNG); background-repeat:repeat-y; background-align: center; width:2px; } .rgrad { background-image:url(rgrad.jpg); background-repeat:repeat-y; width:19px; } .dgrad { background-image:url(dgrad.jpg); background-repeat:repeat-x; height:38px; } .dgradl { background-image:url(dgradl.jpg); background-repeat:no-repeat; height:38px; width:38px; } .dgradr { background-image:url(dgradr.jpg); background-repeat:no-repeat; height:38px; width:38px; } .center { width:932px; background-color:#FFFFFF; vertical-align:top; text-align:center; } .table { background-color:#000000; } .table3 { background-color:#000000; } .table td { background-color:#DEDEDE; height:22px; } .table3 td { background-color:#CCCCCC; } td .alt { background-color:#EEEEEE; height:22px; } td .h { background-image:url(tablehgrad.png); background-repeat:repeat-x; font-weight: bold; background-color: #D6D6D6; } .table th { background-image:url(tablehgrad.png); background-repeat:repeat-x; font-weight: bold; background-color: #D6D6D6; } --> </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=""; $u=$ir['username']; if($ir['donatordays']) { $u = "<font color=red>{$ir['username']}</font>";$d="[img=donator.gif]"; } $gn=""; global $staffpage; $bgcolor = 'FFFFFF'; print <<<OUT [img=title.jpg] <table width="100%" border="0" cellpadding="0" cellspacing="0"> <tr> <td width="20%" bgcolor="#$bgcolor" valign="top"> [b]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=greenbar.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=yellowbar.png width=$brperc height=10><img src=redbar.png width=$bropp height=10> [b]EXP:[/b] {$experc}% <img src=navybar.png width=$experc height=10><img src=redbar.png width=$exopp height=10> [b]Health:[/b] {$hpperc}% <img src=greenbar.png width=$hpperc height=10><img src=redbar.png width=$hpopp height=10> <hr /> OUT; 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() { global $ir,$c; $bgcolor = 'FFFFFF'; 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. "; } include("mainmenu1.php"); print "[url='donator.php'][b]Donate to {$set['game_name']} now for game benefits![/b][/url] "; } function smenuarea() { include "smenu.php"; global $ir,$c; $bgcolor = 'FFFFFF'; 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; } } ?> Screenshot : If anyone could help me with moving my information from the side to ontop please can you leave the code below. I have been working on this all day
  23. Okay i fixed that now what shall i put in the gap instead ?
  24. Is that in header ?
×
×
  • Create New...