Jump to content
MakeWebGames

RecklessCounty

Members
  • Posts

    42
  • Joined

  • Last visited

    Never

RecklessCounty's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. Re: [mccodes V2] Drag n Drop User Menu + Staff Menus [WORKING COPY] Slave-traders is down so could you re-up files somewhere?
  2. Re: [mccode]Multi alert Just so everyone knows....to add someone to the exception list on the first line where is says array(1,2,3); change the numbers 1, 2 and 3 to the ID of the player/players you want to exempt
  3. Re: Free New City Mod For v1 and lite So many thnxs..feels good..and it feels good for CE to be back!!
  4. Re: i need sum1 who understands freehostia.com That's why you don't use free hosts
  5. Re: FREE ADVANCED USERSONLINE MOD Thanks Ferdi its working now!
  6. Re: Item Market there has been a fix for this, search the forums
  7. Re: delete shop search the forum before posting
  8. Re: FREE ADVANCED USERSONLINE MOD   Dude, Do you even check the validity of your claims before posting? ${$r['money']} would produce (Example: You have twenty K dollars) $20000, Your way would simply create 20000. The original way will include the dollar sign, Whereas yours wont. If i wanted to be more in depth with it, The line would become: <th>$".money_formatter($r['money'], "")."</th> Which would produce $25,000 with all the punctuation in the value thats returned. Each to there own i guess :P with the dollar sign in front it produced an error on mine?
  9. Re: Admin.php Modification - Why Isn't It Working??? Why dont you post the contents of dead.php inside the tags?
  10. Re: FREE ADVANCED USERSONLINE MOD uh-oh <th>${$r['money']}</th> should be <th>{$r['money']}</th> if your to lazy here it is <?php // Made by Daniel Robert // Free mod advanced useronline for v1 // Please do not resell // Please leave this note // Other than that have a nice time // Don't do drugs. They aren't good for you. // Usersonline.php session_start(); require "global_func.php"; if($_SESSION['loggedin']==0) { header("Location: login.php");exit; } $userid=$_SESSION['userid']; require "header.php"; $h = new headers; $h->startheaders(); include "mysql.php"; global $c; $is=mysql_query("SELECT u.*,us.* FROM users u LEFT JOIN userstats us ON u.userid=us.userid WHERE u.userid=$userid",$c) or die(mysql_error()); $ir=mysql_fetch_array($is); check_level(); $fm=money_formatter($ir['money']); $cm=money_formatter($ir['crystals'],''); $lv=date('F j, Y, g:i a',$ir['laston']); $h->userdata($ir,$lv,$fm,$cm); $h->menuarea(); $cn=0; $q=mysql_query("SELECT * FROM users WHERE laston>unix_timestamp()-15*60 ORDER BY laston DESC"); while($r=mysql_fetch_array($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"; } } if($r['laston'] > 0) { $la=time()-$r['laston']; $unit="seconds"; if($la >= 60) { $la=(int) ($la/60); $unit="minutes"; } if($la >= 60) { $la=(int) ($la/60); $unit="hours"; if($la >= 24) { $la=(int) ($la/24); $unit="days"; } } $str="$la $unit ago"; } else { $str="--"; } if($r['last_login'] > 0) { $ll=time()-$r['last_login']; $unit2="seconds"; if($ll >= 60) { $ll=(int) ($ll/60); $unit2="minutes"; } if($ll >= 60) { $ll=(int) ($ll/60); $unit2="hours"; if($ll >= 24) { $ll=(int) ($ll/24); $unit2="days"; } } $str2="$ll $unit2 ago"; } else { $str2="--"; } $cn++; print" <table width='500' border='2' height='20'> <tr> <th height='6'><u>Order</u></th> <th><u>Name</u></th> <th><u>ID</u></th> <th><u>Level</u></th> <th><u>Gender<u/></th> <th><u>Last Action<u/></th> <th><u>Money</u></th> <th><u>Attack</u></th> </tr> <tr> <th>$cn.</th> <th>[url='viewuser.php?u={$r[']{$r['username']}[/url]</th> <th>{$r['userid']}</th> <th>{$r['level']}</th> <th>{$r['gender']}</th> <th>$str</th> <th>{$r['money']}</th> <th>[url='attack.php?ID={$r[']Attack Him[/url]</th> </tr> </table>"; } $h->endpage(); ?>
  11. Re: Gift Sorry for the added if ($ir['thanks'] > 0) { die("Sorry, you already got your treat today"); } And the " instead of '
  12. Create a file called gift.php and add this to it (edited by seanybob) <?php session_start(); require "global_func.php"; if ($_SESSION['loggedin'] == 0) { header("Location: login.php"); exit; } $userid = $_SESSION['userid']; require "header.php"; $h = new headers; $h->startheaders(); include "mysql.php"; global $c; $is = mysql_query("SELECT u.*,us.* FROM users u LEFT JOIN userstats us ON u.userid=us.userid WHERE u.userid=$userid", $c) or die(mysql_error()); $ir = mysql_fetch_array($is); check_level(); $fm = money_formatter($ir['money']); $lv = date('F j, Y, g:i a', $ir['laston']); $h->userdata($ir, $lv, $fm); $h->menuarea(); if ($ir['thanks'] > 0) { die("Sorry, you already got your treat today"); } $auto = (int)rand(1, 10); if ($auto == 1) { mysql_query("UPDATE users SET money=money+10000 WHERE userid=$userid", $c); mysql_query("UPDATE users set thanks=thanks+1 WHERE userid={$ir['userid']}", $c); print "Congrats, you won $10,000"; } if ($auto == 2) { mysql_query("UPDATE users SET money=money+20000 WHERE userid=$userid", $c); mysql_query("UPDATE users set thanks=thanks+1 WHERE userid={$ir['userid']}", $c); print "Congrats, you won $20,000"; } if ($auto == 3) { mysql_query("UPDATE users SET money=money+30000 WHERE userid=$userid", $c); mysql_query("UPDATE users set thanks=thanks+1 WHERE userid={$ir['userid']}", $c); print "Congrats, you won $30,000"; } if ($auto == 4) { mysql_query("UPDATE users SET money=money+40000 WHERE userid=$userid", $c); mysql_query("UPDATE users set thanks=thanks+1 WHERE userid={$ir['userid']}", $c); print "Congrats, you won $40,000"; } if ($auto == 5) { mysql_query("UPDATE users SET money=money+50000 WHERE userid=$userid", $c); mysql_query("UPDATE users set thanks=thanks+1 WHERE userid={$ir['userid']}", $c); print "Congrats, you won $50,000"; } if ($auto == 6) { mysql_query("UPDATE users SET crystals=crystals+100 WHERE userid=$userid", $c); mysql_query("UPDATE users set thanks=thanks+1 WHERE userid={$ir['userid']}", $c); print "Congrats, you won 100 crystals"; } if ($auto == 7) { mysql_query("UPDATE users SET crystals=crystals+200 WHERE userid=$userid", $c); mysql_query("UPDATE users set thanks=thanks+1 WHERE userid={$ir['userid']}", $c); print "Congrats, you won 200 crystals"; } if ($auto == 8) { mysql_query("UPDATE users SET crystals=crystals+300 WHERE userid=$userid", $c); mysql_query("UPDATE users set thanks=thanks+1 WHERE userid={$ir['userid']}", $c); print "Congrats, you won 300 crystals"; } if ($auto == 9) { mysql_query("UPDATE users SET crystals=crystals+400 WHERE userid=$userid", $c); mysql_query("UPDATE users set thanks=thanks+1 WHERE userid={$ir['userid']}", $c); print "Congrats, you won 400 crystals"; } if ($auto == 10) { mysql_query("UPDATE users SET crystals=crystals+500 WHERE userid=$userid", $c); mysql_query("UPDATE users set thanks=thanks+1 WHERE userid={$ir['userid']}", $c); print "Congrats, you won 500 crystals"; } ?> Add this somewhere like in main menu if($ir['thanks'] == 0) { print "[[url="gift.php"]Click Here to get your free gift![/url]]"; } And use this SQL for it all ALTER TABLE `users` ADD `thanks` int(11) NOT NULL default '0'; Cron from Isomerizer mysql_query("UPDATE users SET thanks='0'", $c); And this for v2 <?php include("globals.php"); if ($ir['thanks'] > 0) { die("Sorry, you already got your treat today"); } $auto = (int)rand(1, 10); if ($auto == 1) { mysql_query("UPDATE users SET money=money+10000 WHERE userid=$userid", $c); mysql_query("UPDATE users set thanks=thanks+1 WHERE userid={$ir['userid']}", $c); print "Congrats, you won $10,000"; } if ($auto == 2) { mysql_query("UPDATE users SET money=money+20000 WHERE userid=$userid", $c); mysql_query("UPDATE users set thanks=thanks+1 WHERE userid={$ir['userid']}", $c); print "Congrats, you won $20,000"; } if ($auto == 3) { mysql_query("UPDATE users SET money=money+30000 WHERE userid=$userid", $c); mysql_query("UPDATE users set thanks=thanks+1 WHERE userid={$ir['userid']}", $c); print "Congrats, you won $30,000"; } if ($auto == 4) { mysql_query("UPDATE users SET money=money+40000 WHERE userid=$userid", $c); mysql_query("UPDATE users set thanks=thanks+1 WHERE userid={$ir['userid']}", $c); print "Congrats, you won $40,000"; } if ($auto == 5) { mysql_query("UPDATE users SET money=money+50000 WHERE userid=$userid", $c); mysql_query("UPDATE users set thanks=thanks+1 WHERE userid={$ir['userid']}", $c); print "Congrats, you won $50,000"; } if ($auto == 6) { mysql_query("UPDATE users SET crystals=crystals+100 WHERE userid=$userid", $c); mysql_query("UPDATE users set thanks=thanks+1 WHERE userid={$ir['userid']}", $c); print "Congrats, you won 100 crystals"; } if ($auto == 7) { mysql_query("UPDATE users SET crystals=crystals+200 WHERE userid=$userid", $c); mysql_query("UPDATE users set thanks=thanks+1 WHERE userid={$ir['userid']}", $c); print "Congrats, you won 200 crystals"; } if ($auto == 8) { mysql_query("UPDATE users SET crystals=crystals+300 WHERE userid=$userid", $c); mysql_query("UPDATE users set thanks=thanks+1 WHERE userid={$ir['userid']}", $c); print "Congrats, you won 300 crystals"; } if ($auto == 9) { mysql_query("UPDATE users SET crystals=crystals+400 WHERE userid=$userid", $c); mysql_query("UPDATE users set thanks=thanks+1 WHERE userid={$ir['userid']}", $c); print "Congrats, you won 400 crystals"; } if ($auto == 10) { mysql_query("UPDATE users SET crystals=crystals+500 WHERE userid=$userid", $c); mysql_query("UPDATE users set thanks=thanks+1 WHERE userid={$ir['userid']}", $c); print "Congrats, you won 500 crystals"; } ?> (by seanybob)
  13. Re: [v1] House Tax Could you make this for edit house to?
  14. Re: TIPS!!!! someone that can code
  15. Re: Parse error: syntax error, unexpected $end in /home/imgame/public_html/admin male sure you close ale your functions with a }
×
×
  • Create New...