Jump to content
MakeWebGames

peterisgb

Members
  • Posts

    818
  • Joined

  • Last visited

  • Days Won

    65

Everything posted by peterisgb

  1. I like how you have used them and yea they sure do stand out more than the traditional. Looks Good
  2. SNAP hehe. I like circles, they stand out more 😄 I like it. Here's mine 🙂
  3. Some info missing that i would like to know please. PHP version, 8? 7? Mysqli, PDO?
  4. Thats good. Did mine help at all?
  5. 1. Load PHPmyadmin 2. Click table Users, and you'll want to click Structure near the top. 3. head down to exp and follow along and click Change. 4. Change Type from int to Decimal. 5. change Value Length to 11,2 from 11. 6. Click Save.
  6. yeah, found that out a few days ago, Its cpanel fault for changing how they charge for their software. I have decided not to use it as I don't like what they are using now lol.
  7. Yeah, I got bored with the price of Gold being stuck at the same rate and only changing when being changed, This way makes it a varied price allowing to make loss/gain on gold and gold stocks hehe
  8. http://infamouswars.mygamesonline.org
  9. Here is mine, I just copied and pasted 😄 if (17 == date('G')) { $qm = $db->query("SELECT userid, bankmoney FROM users WHERE bankmoney >= '1'"); while ($rm = $db->fetch_row($qm)) { $money = $rm['bankmoney']/100*2; event_add($rm['userid'], "Your Bank Interest of \$<span class=green>".number_format($money)."</span> has been credited to your bank account.", $c); } $db->query('UPDATE users SET bankmoney=bankmoney+(bankmoney/100*2) WHERE bankmoney > 0'); } Snapshot of output. attached
  10. http://infamouswars.mygamesonline.org Screenshots are on homepage.
  11. peterisgb

    LotGD

    i manged to host it on a site for £2.50 for the year. They had PHP 5.3. http://legendsofthegreendragon.mygamesonline.org MTG said i could shim things but it something i haven't done before so didn't know what i was doing.
  12. peterisgb

    LotGD

    Incase anyone is wanting to find a server host supporting php most PHP versions including php 5.3 you can use this site. awardspace.net It has a free option and there are cheap paid versions. This is the only site i have found so far that claims to have php5.3 and actually have it.
  13. peterisgb

    LotGD

    Some here may know, Specially the older groups. I've managed to get my hands on Legends of the Green Dragon script with 1,000+ modules. So I've ran an Old version of Wamp due to PHP support. Its only seems to run on php5.3 What i am looking for is, Is there some kind of wrapper i could use to make the old scripts work or know of a host that still supports php5.3 Its abit of a long reach, Worst case scenario is i setup wampserver to the world but then that means hosting it on my PC which isnt what i want to do. Anything help or advice here would be greatly appreciated.
  14. peterisgb

    Epic Games

    I own all the GTAs on Steam, I'm using the same username, PeterisGB, welcome to add me
  15. New Comp system made, Updated Game layouts, screenshots added to login page. Plus updates everyday, On hunt for new players. Even just signing up helps to create new players for the new competition system. Some Screenshots of latest work. I've dropped the main menu from the main panels in favour of a slide out menu giving more space in the main panel. Added screenshot of the new competition system that may be release here on these forums if it works out well. I made the Competition system yesterday and the cron was made with the help of a friend. The idea is to make people stay on longer, which after day 1, it seems effective
  16. Magictallguy made this one quite a few years ago but has served me well since. create file called cronless_crons.php and stick this in it. <?php if ('/cronless_crons.php' == $_SERVER['PHP_SELF']) { exit; } if (!isset($set)) { $set = array(); $settq = $db->query('SELECT * FROM settings'); while ($r = $db->fetch_row($settq)) { $set[$r['conf_name']] = $r['conf_value']; } } // Minute $result2 = $db->query("SELECT * FROM updates WHERE name = '1min'"); $result1 = $db->fetch_row($result2); $hla1 = time() - $result1['last']; if ($hla1 > 60) { $n1 = floor($hla1 / 60); $db->query(sprintf('UPDATE `users` SET `hospital` = GREATEST(0, `hospital` - %u) WHERE `hospital` > 0', $n1)); $db->query(sprintf('UPDATE `users` SET `jail` = GREATEST(0, `jail` - %u) WHERE `jail` > 0', $n1)); // minute Cron stuff here $hc = $db->fetch_single($db->query('SELECT COUNT(`userid`) FROM `users` WHERE `hospital` > 0')); $jc = $db->fetch_single($db->query('SELECT COUNT(`userid`) FROM `users` WHERE `jail` > 0')); $db->query("UPDATE `settings` SET `conf_value` = '$hc' WHERE `conf_name` = 'hospital_count'"); $db->query("UPDATE `settings` SET `conf_value` = '$jc' WHERE `conf_name` = 'jail_count'"); $time = time(); $db->query('UPDATE `updates` SET `last` = '.$time." WHERE `name` = '1min'"); $floor = $time - (floor($time / 60) * 60); if ($floor > 0) { $newUpdate = time() - $floor; $db->query('UPDATE `updates` SET `last` = '.$newUpdate." WHERE `name` = '1min'"); } } // Five minute $result2 = $db->query("SELECT * FROM `updates` WHERE `name` = '5min'"); $result2 = $db->fetch_row($result2); $hla2 = time() - $result2['last']; if ($hla2 > 300) { $n = floor($hla2 / 300); $db->query('UPDATE `users` SET `brave` = LEAST(`brave` + (((`maxbrave` / 10) + 0.5) * '.$n.'), `maxbrave`), `hp` = LEAST(`hp` + ((`maxhp` / 12) * '.$n.'), `maxhp`), `energy` = IF(`donatordays`, LEAST(`energy` + ((`maxenergy` / 5) * '.$n.'), `maxenergy`), LEAST(`energy` + ((`maxenergy` / 10) * '.$n.'), `maxenergy`)), `will` = LEAST(`maxwill`, `will` + '.($n * 100).')'); $db->query('UPDATE `pets` SET `energy` = LEAST((`energy` + ((`maxenergy` / 30) + 2) * '.$n.'), maxenergy) WHERE (`energy` < `maxenergy`)'); $db->query('UPDATE `pets` SET `hp` = LEAST((`hp` + ((`maxhp` / 30) + 2) * '.$n.'), maxhp) WHERE (`hp` < `maxenergy`)'); // 5 minute cron stuff here $floor = $time - (floor($time / 300) * 300); if ($floor > 0) { $newUpdate = time() - $floor; $db->query('UPDATE `updates` SET `last` = '.$newUpdate." WHERE `name` = '5min'"); } } // 1 hour $result3 = $db->query("SELECT * FROM `updates` WHERE `name` = '1hour'"); $result3 = $db->fetch_row($result3); $hla3 = time() - $result3['last']; if ($hla3 > 3600) { $n3 = floor($hla3 / 3600); // Hourly cron stuff here if (17 == date('G')) { // 5pm crons here like workpayouts } if (8 == date('G')) { // 8am crons here } if (60 == $set['validate_period'] && $set['validate_on']) { $db->query('UPDATE users SET verified=0'); } $time = time(); $db->query('UPDATE `updates` SET `last` = '.$time." WHERE `name` = '1hour'"); $floor = $time - (floor($time / 3600) * 3600); if ($floor > 0) { $newUpdate = time() - $floor; $db->query('UPDATE `updates` SET `last` = '.$newUpdate." WHERE `name` = '1hour'"); } } // 1 day $result4 = $db->query("SELECT * FROM `updates` WHERE `name` = '1day'"); $result4 = $db->fetch_row($result4); $hla4 = time() - $result4['last']; if ($hla4 > 86400) { $n4 = floor($hla4 / 86400); $db->query('UPDATE `fedjail` SET `fed_days` = GREATEST(0, `fed_days` - '.$n4.')'); $q = $db->query('SELECT * FROM `fedjail` WHERE `fed_days` = 0'); $ids = array(); // Daily cron stuff here if (1 == date('j')) { // First of the month Crons here } $time = time(); $db->query('UPDATE `updates` SET `last` = '.$time." WHERE `name` = '1day'"); $floor = $time - (floor($time / 86400) * 86400); if ($floor > 0) { $newUpdate = time() - $floor; $db->query('UPDATE `updates` SET `last` = '.$newUpdate." WHERE `name` = '1day'"); } } // 1 Week $result5 = $db->query("SELECT * FROM `updates` WHERE `name` = '1week'"); $result5 = $db->fetch_row($result5); $hla5 = time() - $result5['last']; if ($hla5 > 604800) { $n5 = floor($hla5 / 604800); // Weekly Stuff Here if you have any $time = time(); $db->query('UPDATE `updates` SET `last` = '.$time." WHERE `name` = '1week'"); $floor = $time - (floor($time / 604800) * 604800); if ($floor > 0) { $newUpdate = time() - $floor; $db->query('UPDATE `updates` SET `last` = '.$newUpdate." WHERE `name` = '1week'"); } } Change and Add your Crons to the right section. and here are the SQLs CREATE TABLE `updates` ( `name` varchar(255) NOT NULL DEFAULT '', `last` int(255) NOT NULL DEFAULT 60 ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `updates` -- INSERT INTO `updates` (`name`, `last`) VALUES ('1min', 1624438860), ('5min', 1624438800), ('1hour', 1624438800), ('1day', 1624406400), ('1month', 1541030400), ('1week', 1623888000); COMMIT;
  17. mainmenu.php Not 100% sure what was doing it, guessing its the clock function maybe. Rewrote and bug gone 🙂 <?php global $db,$c,$ir, $set, $userid; $hc = $db->query("SELECT * FROM users WHERE hospital > 0"); $hospitalcount = $db->num_rows($hc); $jc = $db->query("SELECT * FROM users WHERE jail > 0"); $jailcount = $db->num_rows($jc); $worksho = $db->query("SELECT * FROM itemscreated WHERE iUSER=$userid"); $workshop = $db->num_rows($worksho); $ec=$ir['new_events']; $mc=$ir['new_mail']; if($ir['hospital']) { print " <div class='navipart'> <div class='navitop'><p> <img src='images/navi_txt.gif' alt='' /> </p></div> <div class='navi_mid'><ul> <li> <a class='link1' href='index.php'>Home</a></li> <li> <a class='link1' href='shops.php'>Medical Shop</a></li> <li><a class='link1' href='jail.php'>Jail ({$jailcount})</a></li> <li> <a class='link1' href='hospital.php'>Hospital ({$hospitalcount})</a></li> <li> <a class='link1' href='inventory.php'>Inventory</a></li> <li> <a class='link1' href='workshop.php'>Workshop ($workshop)</a></li>"; } elseif($ir['jail']) { print " <div class='navipart'> <div class='navitop'><p> <img src='images/navi_txt.gif' alt='' /> </p></div> <div class='navi_mid'><ul> <li><a class='link1' href='jail.php'>Jail ({$jailcount})</a></li>"; } else { print " <div class='navipart'> <div class='navitop'><p> <img src='images/navi_txt.gif' alt='' /> </p></div> <div class='navi_mid'><ul> <li><a class='link1' href='index.php'>Home</a></li> <li><a class='link1' href='inventory.php'>Inventory</a></li> <li><a class='link1' href='workshop.php'>Workshop ($workshop)</a></li>"; } if($ec > 0) { print "<li> <a class='link1' href='events.php'>Events ($ec)</a></li>"; } else { print "<li> <a class='link1' href='events.php'>Events (0)</a></li>"; } if($mc > 0) { print "<li> <a class='link1' href='mailbox.php'>Mailbox ($mc)</a></li>"; } else { print "<li> <a class='link1' href='mailbox.php'>Mailbox (0)</a></li>"; } if($ir['chathide'] == 1){ print"<li><a class='link1' href='chat.php'>Chat</a></li>"; } if($ir['new_announcements']) { print "<li> <a class='link1' href='announcements.php' style='font-weight: 800;'>Announcements ({$ir['new_announcements']})</a></li>"; } else { print "<li> <a class='link1' href='announcements.php'>Announcements (0)</a></li>"; } if($ir['jail'] and !$ir['hospital']) { print "<li> <a class='link1' href='gym.php'>Jail Gym</a></li> <li><a class='link1' href='inventory.php'>Inventory</a></li> <li> <a class='link1' href='hospital.php'>Hospital({$hospitalcount})</a></li>"; } else if (!$ir['hospital']) { print "<li> <a class='link1' href='explore.php'>Explore</a></li> <li> <a class='link1' href='gym.php'>Gym</a></li> <li> <a class='link1' href='criminal.php'>Crimes</a></li> <li> <a class='link1' href='gta.php'>GTA</a></li> <li> <a class='link1' href='job.php'>Your Job</a></li> <li> <a class='link1' href='business_home.php'>Your Business</a></li> <li> <a class='link1' href='stocks.php'>Stock Market</a></li> <li> <a class='link1' href='competition.php'>Game Events</a></li> <li> <a class='link1' href='contest.php'>Contest</a></li> <li> <a class='link1' href='hospital.php'>Hospital ({$hospitalcount})</a></li> <li> <a class='link1' href='jail.php'>Jail ({$jailcount})</a></li>"; } else { print "<li> <a class='link1' href='jail.php'>Jail ({$jailcount})</a></li>"; } print "<li> <a class='link1' href='forums.php'>Forums</a></li>"; print " <li> <a class='link1' href='newspaper.php'>Newspaper</a></li> <li> <a class='link1' href='search.php'>Search</a></li>"; if(!$ir['jail'] && $ir['gang']) { print "<li> <a class='link1' href='zFamily.php?p=myFam'><font color = green>Your Gang</a></li> </div> <div><img src='images/navi_btm.gif' alt='' /></div> </div> "; } if($ir['user_level'] > 1) { print " <div class='navipart'> <div class='navitop'><p> <img src='images/staff_links.gif' alt='' /> </p></div> <div class='navi_mid'><ul> <li> <a class='link1' href='staff.php'>Staff Panel</a></li> "; if ($userid == '1') { echo "<li> <a class='link1' href='ownerpanel.php'>Owner Panel</a></li>";; } print " </div> <div><img src='images/navi_btm.gif' alt='' /></div> </div>"; print " <div class='navipart'> <div class='navitop'><p> <img src='images/staff_online.gif' alt='' /> </p></div> <div class='navi_mid'><ul> "; $q=$db->query("SELECT * FROM users WHERE laston>(unix_timestamp()-15*60) AND user_level>1 ORDER BY userid ASC"); while($r=$db->fetch_row($q)) { $la=time()-$r['laston']; $unit="secs"; if($la >= 60) { $la=(int) ($la/60); $unit="mins"; } if($la >= 60) { $la=(int) ($la/60); $unit="hours"; if($la >= 24) { $la=(int) ($la/24); $unit="days"; } } print "<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href='viewuser.php?u={$r['userid']}'>{$r['username']}</a> ($la $unit)<br> </div><div><img src='images/navi_btm.gif' alt='' /></div> </div> "; } } if($ir['donatordays']) { print " <div class='navipart'> <div class='navitop'><p> <img src='images/donators_only.gif' alt='' /> </p></div> <div class='navi_mid'><ul> <li> <a class='link1' href='friendslist.php'>Friends List</a></li> <li> <a class='link1' href='blacklist.php'>Black List</a></li> <li> <a class='link1' href='ddreward.php'>Daily Rewards</a></li> <li> <a class='link1' href='vipgym.php'>VIP Gym</a></li> </div> <div><img src='images/navi_btm.gif' alt='' /></div> </div> "; } print " <div class='navipart'> <div class='navitop'><p> <img src='images/other_links.gif' alt='' /> </p></div> <div class='navi_mid'><ul> <li> <a class='link1' href='preferences.php'>Preferences</a></li> <li> <a class='link1' href='preport.php'>Player Report</a></li> <li> <a class='link1' href='helptutorial.php'>Help Tutorial</a></li> <li> <a class='link1' href='gamerules.php'>Game Rules</a></li> <li> <a class='link1' href='viewuser.php?u={$ir['userid']}'>My Profile</a></li> <li> <a class='link1' href='logout.php'>Logout</a></li> </div> <div><img src='images/navi_btm.gif' alt='' /></div> </div> " ; echo("<table border='1' width='85%' bordercolor='white'> <tr style='background: url('.$bimage.');'><th><font color=gold>Time and Date</th></tr><tr><td style='background: url('.$bimage.');'><font color=gold>".date ('F j, Y')."<br />".date('g:i a')."</td></tr></table>"); ?> Welcome to see if you can figure it out, This is the before i fixed it mainmenu.php After looking through it i still cant see the issue lol. All i know is i removed and rewrote and bang, double issue fixed. Spooky.
  18. Fixed and eradicated the double bug. Issue Resolved 🙂
  19. one of my old sites I just used https://www.appgyver.com and used webview lol. Its a free site that allows you to make apps etc
  20. Ouch. I would still highly suggest moving off it tho
  21. isn't mysql no longer support in modern version of php?
  22. I don't use this myself as it doesn't fit my game. It needs works and securing before official use. This was made as a base script to build on and repair where needed.
  23. I've just updated the original post. I dont use this and havent used it since i made it lol.
  24. Most are some here, Mainly Free, A few paid ones but i paid for them so i wouldnt release them 😄
×
×
  • Create New...