Jump to content
MakeWebGames

skooda

Members
  • Posts

    494
  • Joined

  • Last visited

  • Days Won

    2

Everything posted by skooda

  1. Heres my cron job files Cron_day Cron fivemins
  2. Hey guys a friends of mines open up his new game its very impressive I hope you guys enjoy. http://www.menacegame.com/
  3. Its on my host and I have one min crons
  4. no it this http://www.gamenamecom/iMpoRtAnT/cron_day.php?code=*********
  5. Hey I was wondering if someone could start this off maybe 2 example how to do it.Well I been trying to add images to my honor awards and to show it on the users profie once they have completed it wil show on their profile.   print "</table> <table cellspacing=1 class='table' width='100%'> <tr><th colspan=3><h6>Awards</h6></th></tr>"; if($r['honors'] == 14){$crm1 = "<img src='/awards/theft1.png' alt='The Sneak Thief Award' title='The Sneak Thief Award' border='1'>";} print "<tr><td colspan=5><center>No Awards</center></td>"; print "</table>";   That's what I was doing but it didnt seem to work heres the honor awards exchange that i was going off of aswell.   <?php include "globals.php"; if(!$_GET['spend']) { print "<br /> <table width=100% cellspacing=1> <tr><th colspan=3><h6>Honor Award Exchange Center</h6></th></tr> <tr><td colspan=3 align=center>You have <b>{$ir['honors']}</b> honors.<br /> What would you like to spend your honors on?</th></tr> <tr><th>Trade For</th><th>Info</th><th>Trade</th></tr> <tr align=center><td>Labour</td><td>500 Labour Per Honor</td><td><a href='HonorExchange.php?spend=labour'>Trade</a></td></tr> <tr align=center><td>Strength</td><td>500 Strength Per Honor</td><td><a href='HonorExchange.php?spend=strength'>Trade</a></td></tr> <tr align=center><td>Agility</td><td>500 Agility Per Honor</td><td><a href='HonorExchange.php?spend=agility'>Trade</a></td></tr> <tr align=center><td>Guard</td><td>500 Defense Per Honor</td><td><a href='HonorExchange.php?spend=guard'>Trade</a></td></tr> <tr align=center><td>IQ</td><td>100 IQ Per Honor</td><td><a href='HonorExchange.php?spend=IQ'>Trade</a></td></tr> <tr align=center><td>Money</td><td>\$750 Per Honor</td><td><a href='HonorExchange.php?spend=money'>Trade</a></td></tr> <tr align=center><td>Crystals</td><td>50 Per Honor</td><td><a href='HonorExchange.php?spend=crystals'>Trade</a></td></tr> <tr align=center><td>Points</td><td>10 Per Honor</td><td><a href='HonorExchange.php?spend=points'>Trade</a></td></tr> <tr align=center><td>BioHazards Weapon Of Torture (5000 power)</td><td>Trade 100 honors</td><td><a href='HonorExchange.php?spend=biohazardgun'>Trade</a></td></tr> <tr align=center><td>BioHazards Armor (5000 armor)</td><td>Trade 100 honors</td><td><a href='HonorExchange.php?spend=biohazardarmor'>Trade</a></td></tr> </table> "; } else { if($_GET['spend'] == 'biohazardgun') { if($ir['honors'] < 100) { print "Error, you do not have enough honors.<br /> <a href='HonorExchange.php'>Back</a>"; } else { $db->query("UPDATE users SET honors=honors-100 WHERE userid=$userid"); item_add($ir['userid'], 31, 1); print "You traded 100 honors for BioHazards Weapon Of Torture."; } } else if($_GET['spend'] == 'biohazardarmor') { if($ir['honors'] < 100) { print "Error, you do not have enough honors.<br /> <a href='HonorExchange.php'>Back</a>"; } else { $db->query("UPDATE users SET honors=honors-100 WHERE userid=$userid"); item_add($ir['userid'], 32, 1); print "You traded 100 honors for an BioHazards Armor."; } } else if($_GET['spend'] == 'IQ') { print "Type in the amount of honors you want to swap for IQ.<br /> You have <b>{$ir['honors']}</b> honors.<br /> One Honor = 100 IQ.<form action='HonorExchange.php?spend=IQ2' method='post'><input type='text' name='honors' /><br /><input type='submit' value='Swap' /></form>"; } else if($_GET['spend'] == 'IQ2') { $_POST['honors']=(int) $_POST['honors']; if($_POST['honors'] <= 0 || $_POST['honors'] > $ir['honors']) { print "Error, you either do not have enough honors or did not fill out the form.<br /> <a href='HonorExchange.php?spend=IQ'>Back</a>"; } else { $iqgain=$_POST['honors']*100; $db->query("UPDATE users SET honors=honors-{$_POST['honors']} WHERE userid=$userid"); $db->query("UPDATE userstats SET IQ=IQ+$iqgain WHERE userid=$userid"); print "You traded {$_POST['honors']} honors for $iqgain IQ."; } } else if($_GET['spend'] == 'crystals') { print "Type in the amount of honors you want to trade.<br /> You have <b>{$ir['honors']}</b> honors.<br /> One Honor = 50 crystals.<form action='HonorExchange.php?spend=crystals2' method='post'><input type='text' name='honors' /><br /><input type='submit' value='Swap' /></form>"; } else if($_GET['spend'] == 'crystals2') { $_POST['honors']=(int) $_POST['honors']; if($_POST['honors'] <= 0 || $_POST['honors'] > $ir['honors']) { print "Error, you either do not have enough honors or did not fill out the form.<br /> <a href='HonorExchange.php?spend=crystals'>Back</a>"; } else { $iqgain=$_POST['honors']*50; $db->query("UPDATE users SET honors=honors-{$_POST['honors']},crystals=crystals+$iqgain WHERE userid=$userid"); print "You traded {$_POST['honors']} honors for ".number_format($iqgain)." crystals."; } } else if($_GET['spend'] == 'points') { print "Type in the amount of honors you want to trade.<br /> You have <b>{$ir['honors']}</b> honors.<br /> One Honor = 10 points.<form action='HonorExchange.php?spend=points2' method='post'><input type='text' name='honors' /><br /><input type='submit' value='Swap' /></form>"; } else if($_GET['spend'] == 'points2') { $_POST['honors']=(int) $_POST['honors']; if($_POST['honors'] <= 0 || $_POST['honors'] > $ir['honors']) { print "Error, you either do not have enough honors or did not fill out the form.<br /> <a href='HonorExchange.php?spend=points'>Back</a>"; } else { $iqgain=$_POST['honors']*10; $db->query("UPDATE users SET honors=honors-{$_POST['honors']},points=points+$iqgain WHERE userid=$userid"); print "You traded {$_POST['honors']} honors for ".number_format($iqgain)." points."; } } else if($_GET['spend'] == 'strength') { print "Type in the amount of honors you want to swap for strength.<br /> You have <b>{$ir['honors']}</b> honors.<br /> One Honor = 500 strength.<form action='HonorExchange.php?spend=strength2' method='post'><input type='text' name='honors' /><br /><input type='submit' value='Swap' /></form>"; } else if($_GET['spend'] == 'strength2') { $_POST['honors']=(int) $_POST['honors']; if($_POST['honors'] <= 0 || $_POST['honors'] > $ir['honors']) { print "Error, you either do not have enough honors or did not fill out the form.<br /> <a href='HonorExchange.php?spend=money'>Back</a>"; } else { $iqgain=$_POST['honors']*500; $db->query("UPDATE users SET honors=honors-{$_POST['honors']} WHERE userid=$userid"); $db->query("UPDATE userstats SET strength=strength+$iqgain WHERE userid=$userid"); print "You traded {$_POST['honors']} honors for ".number_format($iqgain)." strength."; } } else if($_GET['spend'] == 'agility') { print "Type in the amount of honors you want to swap for agility.<br /> You have <b>{$ir['honors']}</b> honors.<br /> One Honor = 500 agility.<form action='HonorExchange.php?spend=agility2' method='post'><input type='text' name='honors' /><br /><input type='submit' value='Swap' /></form>"; } else if($_GET['spend'] == 'agility2') { $_POST['honors']=(int) $_POST['honors']; if($_POST['honors'] <= 0 || $_POST['honors'] > $ir['honors']) { print "Error, you either do not have enough honors or did not fill out the form.<br /> <a href='HonorExchange.php?spend=money'>Back</a>"; } else { $iqgain=$_POST['honors']*500; $db->query("UPDATE users SET honors=honors-{$_POST['honors']} WHERE userid=$userid"); $db->query("UPDATE userstats SET agility=agility+$iqgain WHERE userid=$userid"); print "You traded {$_POST['honors']} honors for ".number_format($iqgain)." agility."; } } else if($_GET['spend'] == 'guard') { print "Type in the amount of honors you want to swap for guard.<br /> You have <b>{$ir['honors']}</b> honors.<br /> One Honor = 500 guard.<form action='HonorExchange.php?spend=guard2' method='post'><input type='text' name='honors' /><br /><input type='submit' value='Swap' /></form>"; } else if($_GET['spend'] == 'guard2') { $_POST['honors']=(int) $_POST['honors']; if($_POST['honors'] <= 0 || $_POST['honors'] > $ir['honors']) { print "Error, you either do not have enough honors or did not fill out the form.<br /> <a href='HonorExchange.php?spend=money'>Back</a>"; } else { $iqgain=$_POST['honors']*500; $db->query("UPDATE users SET honors=honors-{$_POST['honors']} WHERE userid=$userid"); $db->query("UPDATE userstats SET guard=guard+$iqgain WHERE userid=$userid"); print "You traded {$_POST['honors']} honors for ".number_format($iqgain)." guard."; } } else if($_GET['spend'] == 'labour') { print "Type in the amount of honors you want to swap for labour.<br /> You have <b>{$ir['honors']}</b> honors.<br /> One Honor = 500 labour.<form action='HonorExchange.php?spend=labour2' method='post'><input type='text' name='honors' /><br /><input type='submit' value='Swap' /></form>"; } else if($_GET['spend'] == 'labour2') { $_POST['honors']=(int) $_POST['honors']; if($_POST['honors'] <= 0 || $_POST['honors'] > $ir['honors']) { print "Error, you either do not have enough honors or did not fill out the form.<br /> <a href='HonorExchange.php?spend=money'>Back</a>"; } else { $iqgain=$_POST['honors']*500; $db->query("UPDATE users SET honors=honors-{$_POST['honors']} WHERE userid=$userid"); $db->query("UPDATE userstats SET labour=labour+$iqgain WHERE userid=$userid"); print "You traded {$_POST['honors']} honors for ".number_format($iqgain)." labour."; } } else if($_GET['spend'] == 'money') { print "Type in the amount of honors you want to swap for money.<br /> You have <b>{$ir['honors']}</b> honors.<br /> One Honor = \$750.<form action='HonorExchange.php?spend=money2' method='post'><input type='text' name='honors' /><br /><input type='submit' value='Swap' /></form>"; } else if($_GET['spend'] == 'money2') { $_POST['honors']=(int) $_POST['honors']; if($_POST['honors'] <= 0 || $_POST['honors'] > $ir['honors']) { print "Error, you either do not have enough honors or did not fill out the form.<br /> <a href='HonorExchange.php?spend=money'>Back</a>"; } else { $iqgain=$_POST['honors']*750; $db->query("UPDATE users SET honors=honors-{$_POST['honors']},money=money+$iqgain WHERE userid=$userid"); print "You traded {$_POST['honors']} honors for \$".number_format($iqgain)."."; } } } $h->endpage(); ?>
  6. Thanks spud but I have a question I learn a few weeks ago a user can upload exploits through a image to a game is this possible for this mod. Theirs also alot of mysql errors.
  7. None of your options are working.
  8. Your welcome
  9. Before you all read this yes I know how to format and I search the forum non of the results are not similiar to my issue. The problem is when I put the cron in manually it work(Type in browser) But when I put it in my cron job it dosnt update(I use 3diffent cron jobs form 3 different host)and it still dont work heres what formating.   curl http://gamename.com/******/cron_minute.php?code=****   curl www.gamename.com/******/cron_minute.php?code=****   http://gamename.com/******/cron_minute.php?code=****   www.gamename.com/******/cron_minute.php?code=****   curl gamename.com/******/cron_minute.php?code=****   gamename.com/******/cron_minute.php?code=****   I tryed them all and they dont work even tried wihout the code I dont what could be causing this.Heres the cron_minute file if thats needed. <?php include "config.php"; global $_CONFIG; if($_GET['code'] != $_CONFIG['code']) { die(""); } define("MONO_ON", 1); require "class/class_db_{$_CONFIG['driver']}.php"; $db=new database; $db->configure($_CONFIG['hostname'], $_CONFIG['username'], $_CONFIG['password'], $_CONFIG['database'], $_CONFIG['persistent']); $db->connect(); $c=$db->connection_id; $db->query("UPDATE users set hospital=hospital-1 WHERE hospital>0"); $db->query("UPDATE `users` SET jail=jail-1 WHERE `jail` > 0"); $hc=$db->num_rows($db->query("SELECT * FROM users WHERE hospital > 0")); $jc=$db->num_rows($db->query("SELECT * 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'"); $db->query("UPDATE users SET maxmail=0 WHERE maxmail=1"); $db->query("UPDATE users SET cityclicks=0"); $db->query("UPDATE users SET maxcomment=0 WHERE maxcomment=1"); $db->query("UPDATE users SET maxforum=0 WHERE maxforum=1"); $db->query("update auctions set time=time-1",$c); $qqq=$db->query("select * from auctions where time=0"); while($win=$db->fetch_row($qqq)) { $time=$win['time']; $item=$win['itemname']; $winner=$win['bidder']; $owner=$win['owner']; $iname=$db->query("SELECT itmname FROM items WHERE itmid='{$item}'"); if($win['bids'] > 0) { $query = "insert into inventory VALUES('','$item','$winner','1')"; $db->query($query); $r=$db->query("SELECT username FROM users WHERE userid='$owner'"); $rr=$db->fetch_row($r); $text = "You won {$rr['username']}s auction for \${$win['current']}"; $textt = "Your item was sold successfully on the auction market with {$win['bids']} bids. You have been paid \${$win['current']}"; $db->query("INSERT INTO events VALUES('','$winner',UNIX_TIMESTAMP(),0,'$text')"); $db->query("UPDATE users SET new_events=new_events+1 WHERE userid='$winner'"); $db->query("INSERT INTO events VALUES('','$owner',UNIX_TIMESTAMP(),0,'$textt')"); $db->query("UPDATE users SET new_events=new_events+1 WHERE userid='$owner'"); $dquery = "UPDATE users SET money=money+{$win['current']},auctionquota=auctionquota-1 WHERE userid='$owner'"; $db->query($dquery); } if($win['bids'] == 0) { $texttt = "Your auction has ended with no bidders. Your item has been returned to your inventory."; $db->query("INSERT INTO events VALUES('','$owner',UNIX_TIMESTAMP(),0,'$texttt')"); $db->query("UPDATE users SET new_events=new_events+1 WHERE userid='$owner'"); $winner=$win['owner']; $deleted = "INSERT INTO inventory VALUES('','$item','$winner','1')"; $db->query($deleted); } } $delete = ("DELETE FROM auctions WHERE time <= 0"); $db->query($delete); $db->query("UPDATE `users` SET `expire`=`expire`-1 WHERE `expire`>1"); $expired = $db->query("SELECT `userid`,`expire` FROM `users` WHERE `expire`=1"); while($ex=$db->fetch_row($expired)) { $findout = $db->query("SELECT `strength`,`agility`,`guard` FROM `oldstats` WHERE `userid`=".$ex['userid'].""); $update = $db->fetch_row($findout); $db->query("UPDATE `userstats` SET `agility`=".$update['agility'].",`strength`=".$update['strength'].",`guard`=".$update['guard']." WHERE `userid`=".$ex['userid'].""); $db->query("DELETE FROM `oldstats` WHERE `userid`=".$ex['userid'].""); $db->query("UPDATE `users` SET `expire`=0 WHERE `userid`=".$ex['userid'].""); $db->query("UPDATE `rehab` SET `rTIME`=`rTIME`-1 WHERE `rTIME`>0"); } ?>
  10. You could always convert v2 to v1 or the other way around
  11. Im just messing around with grpg and the header and function was out of place so heres the fix version.  
  12. DO you have peter msn email as im not one of his clients and he always respond to me in a matter of a min
  13. Ok I have started it I would like to make it a paid mod once done.Could someone give me sugestions like for staff once the user name image is change. It dont show their name(it leaves a blank) so an admin would have to use their id to search them but i would like it to show their login name instead of their username .
  14. I will buy message me
  15. Hey MWG members im looking to buy a mccode v2 license for 50$ if you have one that's for sale just message me with your Paypal saying your selling it or post it here.
  16. I would like to wish Djkanna a happy birthday.
  17. :rolleyes: did you read it.
  18. Im going to say he's busy
  19. Knowing damage this is going to be one hell of a car mod :)
  20. Im glad to know its a unbelievable deal and no but he will help as I been knowing him for 6years I did deals with him in the past.
  21. I plan on just using that deal for a good 6-months depends on how the game goes.
  22. OK this what he offer VS panel to control your vps reverse DNS control panel to reinstall Over 15 Linux OSs and keep track of your specs also lets you reboot when you want too no one else is sharing it only belongs to your server The data center is http://www.phoenixnap.com/data-center/ no downtime on any vps servers
  23. OK I just got this Memory 1 GB Bandwidth 250 GB Disk Space 20 GB 1 IP 1.5GB of ram that seem like a good deal 125$ for a year
  24. So I will be able to run a game on this deal
  25. O as in lag in the game
×
×
  • Create New...