Jump to content
MakeWebGames

peterisgb

Members
  • Posts

    738
  • Joined

  • Last visited

  • Days Won

    41

Everything posted by peterisgb

  1. function gang_warview() { global $db, $ir, $c, $userid, $gangdata; $wq = $db->query( "SELECT * FROM `gangwars` WHERE `warDECLARER` = {$ir['gang']} OR `warDECLARED` = {$ir['gang']}"); echo "<b>These are the wars your gang is in.</b><br /> <table width='75%' cellspacing='1' class='table'> <tr> <th>Time Started</th> <th>Versus</th> <th>Who Declared</th> </tr>"; while ($r = $db->fetch_row($wq)) { if ($gangdata['gangID'] == $r['warDECLARER']) { $w = 'You'; $f = 'warDECLARED'; } else { $w = 'Them'; $f = 'warDECLARER'; } $d = date('F j, Y, g:i:s a', $r['warTIME']); $ggq = $db->query( "SELECT `gangID`, `gangNAME` FROM `gangs` WHERE `gangID` = " . $r[$f]); $them = $db->fetch_row($ggq); echo "<tr> <td>$d</td> <td> <a href='gangs.php?action=view&amp;ID={$them['gangID']}'> {$them['gangNAME']} </a> </td> <td>$w</td> </tr>"; } echo "</table>"; } Only minor, Like myself, simple things, Just a quick look. Missed a ` in the sql query to get gangNAME, Fix Above
  2. I dont run a successfull one, but its not gone anywhere, been online since Oct 2018 and still actively work on it.
  3. <center><table width=90% cellspacing=1 class=table border=1 bordercolor=#636363></center><tr><td> Proposer: <a href="viewuser.php?u={$r['userid']}">{$r['username']}</a> </td> Try that
  4. I do mainly FREE and maybe the odd paid. But then, I ain't in it for the money. (Money just helps hehe)
  5. if (function_exists("get_magic_quotes_gpc") == false) { function get_magic_quotes_gpc() { return 0; } } if (get_magic_quotes_gpc() == 0) { foreach ($_POST as $k => $v) { $_POST[$k] = addslashes($v); } foreach ($_GET as $k => $v) { $_GET[$k] = addslashes($v); } } Myself. I just delete the whole lot. from the pages and carry on.
  6. Mine is still on the older style ish.
  7. Infamous Wars Screenshots are on the main login page. Using Mccodes core orignally but highly modified over the last 4 years of work so far. Not posted screenshots here due to the 300px limit. but there are some outdated ones on the home page or a newer one on my profile header here. I havent done any real advertisment yet as its not fully ready for full public release.
  8. I dont suppose you got a list of your old mods and have any still? Wouldn't mind a gander. I'm glad your back and i look forward to seeing what you bring to the forums. EDIT: If you don't I have your Workshop Mod kicking around somwhere if you want me to drop it back to you.
  9. Well thats all going to be down to opinions lol. Everyone will say theirs is the best ๐Ÿ˜„
  10. Yeah theres a few of use still using and working with mccodes still
  11. I was thinking the same but kepted my mouth shut
  12. Said user hasn't been on since July 2020 so you may not get a reply.
  13. Check that outputs are the same. Some could be displaying in percentage.
  14. I enabled debug last time i was in there this morning. If you refresh the error page it should display the error now.
  15. Don't forget to post the SQL ๐Ÿ˜„
  16. Made this just now for you. Create a file called streets.php and insert this. <?php require_once('globals.php'); echo "<h3>The Streets</h3><hr />"; $map = '<img src="images/streets.png" usemap="#image-map"> <map name="image-map"> <area target="" alt="Search 1" title="Search 1" href="streets.php?search=1" coords="0,0,100,100" shape="rect"> <area target="" alt="Search 2" title="Search 2" href="streets.php?search=1" coords="100,0,200,100" shape="rect"> <area target="" alt="Search 3" title="Search 3" href="streets.php?search=1" coords="200,0,300,100" shape="rect"> <area target="" alt="Search 4" title="Search 4" href="streets.php?search=1" coords="300,0,400,100" shape="rect"> <area target="" alt="Search 5" title="Search 5" href="streets.php?search=1" coords="400,0,500,100" shape="rect"> <area target="" alt="Search 6" title="Search 6" href="streets.php?search=1" coords="0,0,100,200" shape="rect"> <area target="" alt="Search 7" title="Search 7" href="streets.php?search=1" coords="100,0,200,200" shape="rect"> <area target="" alt="Search 8" title="Search 8" href="streets.php?search=1" coords="200,0,300,200" shape="rect"> <area target="" alt="Search 9" title="Search 9" href="streets.php?search=1" coords="300,0,400,200" shape="rect"> <area target="" alt="Search 10" title="Search 10" href="streets.php?search=1" coords="400,0,500,200" shape="rect"> <area target="" alt="Search 11" title="Search 11" href="streets.php?search=1" coords="0,0,100,300" shape="rect"> <area target="" alt="Search 12" title="Search 12" href="streets.php?search=1" coords="100,0,200,300" shape="rect"> <area target="" alt="Search 13" title="Search 13" href="streets.php?search=1" coords="200,0,300,300" shape="rect"> <area target="" alt="Search 14" title="Search 14" href="streets.php?search=1" coords="300,0,400,300" shape="rect"> <area target="" alt="Search 15" title="Search 15" href="streets.php?search=1" coords="400,0,500,300" shape="rect"> <area target="" alt="Search 16" title="Search 16" href="streets.php?search=1" coords="0,0,100,400" shape="rect"> <area target="" alt="Search 17" title="Search 17" href="streets.php?search=1" coords="100,0,200,400" shape="rect"> <area target="" alt="Search 18" title="Search 18" href="streets.php?search=1" coords="200,0,300,400" shape="rect"> <area target="" alt="Search 19" title="Search 19" href="streets.php?search=1" coords="300,0,400,400" shape="rect"> <area target="" alt="Search 20" title="Search 20" href="streets.php?search=1" coords="400,0,500,400" shape="rect"> <area target="" alt="Search 21" title="Search 21" href="streets.php?search=1" coords="0,0,100,500" shape="rect"> <area target="" alt="Search 22" title="Search 22" href="streets.php?search=1" coords="100,0,200,500" shape="rect"> <area target="" alt="Search 23" title="Search 23" href="streets.php?search=1" coords="200,0,300,500" shape="rect"> <area target="" alt="Search 24" title="Search 24" href="streets.php?search=1" coords="300,0,400,500" shape="rect"> <area target="" alt="Search 25" title="Search 25" href="streets.php?search=1" coords="400,0,500,500" shape="rect"> </map>'; if (isset($_GET['search']) && $_GET['search']) { if ($ir['steps'] <= '0') { echo "Sorry, you don't have enough Steps."; $h->endpage(); exit; } $num = rand(1, 5); $db->query("UPDATE `users` SET `steps`=`steps` - 1 WHERE `userid` = $userid"); switch ($num) { case 1: $tokens = rand(10, 75); echo "You find {$tokens} crystals"; $db->query("UPDATE `users` SET `crystals` = `crystals` + {$tokens} WHERE `userid` = {$userid}"); break; case 2: $money = rand(100, 2500); echo "You find ".money_formatter($money); $db->query("UPDATE `users` SET `money` = `money` + {$money} WHERE `userid` = {$userid}"); break; case 3: echo "You Find Nothing"; break; case 4: echo "You Find Nothing"; break; case 5: echo "You Find Nothing"; break; } ?><hr /> You have <?php echo $ir['steps']; ?> Steps Left. <hr /><?php echo $map; } else { ?>You have <?php echo $ir['steps']; ?> Steps Left.<hr /> Click Anywhere on the Street to Search it.<br /> <?php echo $map; } $h->endpage(); Upload the Attached Image to public_html/images/ directory. Insert this into your Five minute Cron, usually cron_fivemins.php $db->query("UPDATE users SET steps=steps+5 WHERE steps <= 100"); And Finally, Insert this into your SQL databse ALTER TABLE `users` ADD `steps` int(11) NOT NULL DEFAULT '0';
  17. Yes, Anyone who is authorized by you can adjust a files etc. You can select which section said user can access.
  18. My Easy Mod installer is now on the Market.
  19. Happy with the Template now so here are some Screenshots. Just got to add the NEW tags where needed once i figure it out ๐Ÿ˜„
  20. Thanks. I would add alot more to it but unfortunately most of my stuff ingame has been edited and implanted into so many other things that i cant release them publically ๐Ÿ˜„
  21. If you want to check out some of the mods in action you can log into my game. CLICK ME
  22. So i have decided to put all my mods on one place where its accessible. This is the Directory to All my Mods, their Status and when they was Last Edited My Mods Directory Overall: 14 Mods Linked to MWG. 10 Live Mods onsite. (Live Mod means that the code is active on my game and if i update it ingame it will auto update to the Mod Directory) Last Updated: 7rd April 2022 10:26pm GMT. Thanks. ideas and what you think of the site welcomed.
  23. As Dave said above. The cheap hosting here is a VERY good deal and cpanel access which is mint.
  24. Oh wow. Your Mcccodes stuff was EPIC!! I can only imagine what you could make now with a few more years of code under your belt ๐Ÿ˜„
×
×
  • Create New...