Jump to content
MakeWebGames

oxidati0n

Members
  • Posts

    564
  • Joined

  • Last visited

Everything posted by oxidati0n

  1. Re: [Mccode][Free] House Pictures   lol   $houses = array( "House" => "http://www.demo-images.com/IMAGE1.gif", "Shed" => "IMAGE URL", "Farm" => "IMAGE URL" ); foreach($houses as $hs=>$hr) { if($ir['hNAME'] == $hs) { $image=$hs; } } echo $image;   11 wasted lines cut to 3 with no effort at all Thats a bit of code you guys will not have known yet
  2. Re: [mccode] mailbox with smilies Couldn't this be injected easily?
  3. Re: Cash Send Logs I got a better way, leave them instructions and run this query ALTER TABLE cashxferlogs DROP cxCONTENT;
  4. Re: [$10] Minesweeper Cool
  5. Re: [Mccode][Free] House Pictures Yea this is good also   /*AddOn by Oxi*/ if(eregi($_SERVER['HTTP_HOST'], $ir['hPIC'])) { if(!file_exists($r['hPIC'])) { echo "This image is not found."; } }
  6. Re: [mccode] FREE Criminal Record (advanced) Well it's basic => free, If I made it very efficient I would sell it.. duh! :mrgreen:
  7. Re: Mod Discussion Yup, very simple. :-D I'll proberly do it free.
  8. Re: Mod Discussion   thx for your opinion :mrgreen:
  9. Mod Discussion We always tend to make mods, and some of them dont become successful. So here you can decide more of what you want, just pick your vote and it'll affect how Netcodes UK's mods will work from this moment. It'll benefit you and make your mod purchasing a whole lot safer and easier for all of us. Thanks. Loser's votes wont be counted. (They know who they are)
  10. Re: [TGM] Joinable Organised Crimes [TGM]   ... Bugs are everywhere! lol :mrgreen: PM me if you want any help.
  11. Re: [All] Remove Items from Shops   Well I would of. But from the first function it selects the shop, then selects the items from the shop to delete. Otherwise you wouldn't know the shops items. :lol: I'm shocked you didn't have good thinking zaver. I expected more from you. :lol:
  12. Many people have had difficulty making a successful one of these. I have had a go, and its worked. This allows you to remove items from shops with such ease. :) Anyway, Here you go.   Open admin.php and find where it says case 'repclear': report_clear(); break; case 'massmailer': massmailer(); break;   Add AFTER case 'deleteshopitem': delete_shopitem_form(); break; case 'deleteshopitem2': delete_shopitem2_form(); break; case 'deleteshopitem3': delete_shopitem3_form(); break;   Then find later in the code where it says $h->endpage(); ?>   ADD BEFORE function delete_shopitem_form() { global $ir, $c; /*Created by Netcodes UK*/ $q = mysql_query("SELECT * FROM shops ORDER BY shopNAME DESC",$c); print "Remove Shop Item You can remove any item which has been added to a shop Shop Name : "; while($r=mysql_fetch_array($q)) { print "$r[shopNAME]"; } print " [url='http://netcodesuk.com']Created by Netcodes UK[/url] "; } function delete_shopitem2_form() { global $ir,$c; /*Created by Netcodes UK*/ if(!$_POST['shop']) { print "I'm sorry but you failed to collect the data as required for completing this process [url='admin.php?action=deleteshopitem']Back[/url] "; } else { $q=mysql_query("SELECT si.*,i.* FROM shopitems si LEFT JOIN items i ON si.sitemITEMID=i.itmid WHERE si.sitemSHOP='$_POST[shop]'"); print "Select Item To Delete Here you are going to select which item you want removed from the shop Shop Item : "; while($r=mysql_fetch_array($q)) { print "$r[itmname]"; } print " "; } } function delete_shopitem3_form() { global $c,$ir,$h; /*Created by Netcodes UK*/ if(!$_POST['shop'] or !$_POST['shopitem']) { print "I'm sorry you failed to collect the data as required to complete this process [url='owner.php?action=deleteshopitem']Back[/url] "; } else { mysql_query("DELETE FROM shopitems WHERE sitemSHOP='$_POST[shop]' AND sitemITEMID='$_POST[shopitem]'"); print "Congratulations, The shop item has successfully been removed [url='owner.php']Back[/url] "; } }   Your done. :mrgreen:
  13. Try this Execute SQL CREATE TABLE max_online ( value INT( 11 ) NOT NULL ) TYPE=MYISAM; INSERT INTO max_online (value) VALUES ('0');   Add in header.php $q=mysql_query("SELECT * FROM users WHERE laston>unix_timestamp()-90*8 ORDER BY laston DESC",$c); $online=mysql_num_rows($q); $q2=mysql_fetch_array(mysql_query("SELECT * FROM max_online",$c)); $maxonline=$q2['value']; if($online > $maxonline) { mysql_query("UPDATE max_online SET value=".$online." LIMIT 1;",$c); }   Then add in login.php where you want if(!$c) { include 'mysql.php'; global $c; } $q2=mysql_fetch_array(mysql_query("SELECT * FROM max_online",$c)); $maxonline=$q2['value']; print "The maximum users online recorded was [b]$maxonline[/b]";   I've used that so theres a chance of it working 99.999%
  14. Re: [Free] [v1] User Verification [Captcha]   maybe could change the if statement to $_SESSION['verified']==10 then set $_SESSION['verified']=0 and everytime it sets $_SESSION['verified']=$_SESSION['verified']+1 think something like that should work, But i'd rather have it everytime >.< TIP: Use this $_SESSION['verified']+=1; or $_SESSION['verified']++; .. :>
  15. Re: [V1] FREE! ID refiller/counter   Yep thanks zaver. I completely forgot. +1
  16. Re: [Free] [v1] User Verification [Captcha] A few issues. 1) You have to validate upon every login? :-o 2) That can easily be bypassed 3) You forgot to mention, you need to make a file in your directory images/ (If you have one prefferably) and you need to make a file called verify.jpeg AND chmod it to 0666 lol.
  17. Re: [V1] FREE! ID refiller/counter lol set it to every hour then?
  18. This is really good.. I've only thought of the mod just now. This is good if you delete players regulary on your game, This allows those slots to be filled in without no need in trying. Tested and Works   Firstly Run this SQL CREATE TABLE free_ids ( id INT( 11 ) NOT NULL ) TYPE=MYISAM ;   Next open register.php and find where it says mysql_query("INSERT INTO users (username, login_name, userpass, level, money, crystals, donatordays, user_level, energy, maxenergy, will, maxwill, brave, maxbrave, hp, maxhp, location, gender, signedup, email, bankmoney, lastip) VALUES( '{$username}', '{$_POST['username']}', md5('{$_POST['password']}'), 1, $sm, 1, 0, 1, 12, 12, 100, 100, 5, 5, 100, 100, 1, 'Male', unix_timestamp(), '{$_POST['email']}', -1, '$ip');", $c) or die(mysql_error()); $i=mysql_insert_id($c);   Replace with $getidq=mysql_query("SELECT * FROM free_ids ORDER BY id DESC LIMIT 1;",$c); if(mysql_num_rows($getidq) == 0) { $id=""; } else { $getid=mysql_fetch_array($getidq); $id=$getid['id']; } if(mysql_num_rows($getidq)) { mysql_query("DELETE FROM free_ids WHERE id={$id}",$c); } mysql_query("INSERT INTO users (userid, username, login_name, userpass, level, money, crystals, donatordays, user_level, energy, maxenergy, will, maxwill, brave, maxbrave, hp, maxhp, location, gender, signedup, email, bankmoney, lastip) VALUES('$id' ,'{$username}', '{$_POST['username']}', md5('{$_POST['password']}'), 1, $sm, 1, 0, 1, 12, 12, 100, 100, 5, 5, 100, 100, 1, 'Male', unix_timestamp(), '{$_POST['email']}', -1, '$ip');", $c) or die(mysql_error()); $i=mysql_insert_id($c);   Now add this to your daysold.php cron $q=mysql_query("SELECT userid FROM users ORDER BY userid DESC",$c); $total=mysql_num_rows($q); while($total > 0) { $q2=mysql_query("SELECT * FROM users WHERE userid={$total}",$c); $q3=mysql_query("SELECT * FROM free_ids WHERE id={$total}",$c); if(mysql_num_rows($q2) == 0 and mysql_num_rows($q3) == 0) { mysql_query("INSERT INTO free_ids (id) VALUES ({$total});",$c); } $total--; }   Updated---- Your done! Please give me +1 REMEMBER: If you want quality mods like these always buy from http://www.netcodesuk.com/mods.php.
  19. Re: [v1] Updated Statistics Page   1) That's a copy of my version just pimped out 2) I know for a fact you didn't do that, so stop trying to show off!
  20. This shows everything in your game, Males, females, donators, top donators, top gangs, how many people have a certain house, it all.. and it costs... NOTHING! FREE TO ALL! Enjoy! replace stats.php with this <?php /*----------------------------------------------------- -- Created by Oxidati0n from Netcodes UK -- Another free mod collection -- FREE SHAREWARE CODE -----------------------------------------------------*/ 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(); $q=mysql_query("SELECT userid FROM users",$c); $membs=mysql_num_rows($q); $q=mysql_query("SELECT userid FROM users WHERE bankmoney>-1",$c); $banks=mysql_num_rows($q); $q=mysql_query("SELECT userid FROM users WHERE gender='Male'",$c); $male=mysql_num_rows($q); $q=mysql_query("SELECT userid FROM users WHERE gender='Female'",$c); $fem=mysql_num_rows($q); $total=0; $q=mysql_query("SELECT money FROM users",$c); while($r=mysql_fetch_array($q)) { $total+=$r['money']; } $avg=(int) ($total/$membs); $totalb=0; $q=mysql_query("SELECT bankmoney FROM users WHERE bankmoney>-1",$c); while($r=mysql_fetch_array($q)) { $totalb+=$r['bankmoney']; } $avgb=(int) ($totalb/$banks); $totalc=0; $q=mysql_query("SELECT crystals FROM users",$c); while($r=mysql_fetch_array($q)) { $totalc+=$r['crystals']; } $totali=0; $q=mysql_query("SELECT inv_qty FROM inventory",$c); while($r=mysql_fetch_array($q)) { $totali+=$r['inv_qty']; } $avgc=(int) ($totalc/$membs); $q=mysql_query("SELECT mail_id FROM mail",$c); $mail=mysql_num_rows($q); $q=mysql_query("SELECT evID FROM events",$c); $events=mysql_num_rows($q); $nogender1=mysql_query("SELECT * FROM users WHERE gender=''",$c); $nogender=mysql_num_rows($nogender1); $maleperc=round($male/$membs*100).'%'; $femaleperc=round($fem/$membs*100).'%'; $nogenderperc=round($nogender/$membs*100).'%'; $highestdonator1=mysql_query("SELECT * FROM users ORDER BY donatordays DESC LIMIT 1;",$c); $hd=mysql_fetch_array($highestdonator1); print "Statistics Department You walk through the statistics centre and stare at the boards. </pre> <table width="90%" style="border:groove;">UsersHousesCitiesThere are currently $membs members signed up $male ($maleperc) males, $fem ($femaleperc) females and $nogender ($nogenderperc) multigenders. There are ".mysql_num_rows(mysql_query("SELECT * FROM users WHERE donatordays>0",$c))." donators "; if(mysql_num_rows($highestdonator1) != 0) { print "The highest current donator is [b][url='viewuser.php?u={$hd[']{$hd['username']}[/url][/b] "; } print " This how many members have amount of each house "; $q=mysql_query("SELECT * FROM houses ORDER BY hPRICE,hWILL ASC",$c); while($r=mysql_fetch_array($q)) { $q3=mysql_num_rows(mysql_query("SELECT * FROM users WHERE maxwill={$r['hWILL']}",$c)); print "[b]".$r['hNAME']."[/b] - $q3 users have it "; } print "..and ".mysql_num_rows(mysql_query("SELECT * FROM users WHERE maxwill<='100'",$c))." dont have a house."; print ""; $q=mysql_query("SELECT * FROM cities ORDER BY cityname ASC",$c); while($r=mysql_fetch_array($q)) { $q3=mysql_num_rows(mysql_query("SELECT * FROM users WHERE location={$r['cityid']}",$c)); $hmhi=round($q3/$membs*100).'%'; print "[b]".$r['cityname']."[/b] - $q3 users have it ({$hmhi}) "; } print "FinancialGangsMail/Events Amount of cash in circulation: \$".money_formatter($total,"").". The average player has: \$".money_formatter($avg,"").". Amount of cash in banks: \$".money_formatter($totalb,"").". Amount of players with bank accounts: $banks The average player has in their bank accnt: \$".money_formatter($avgb,"").". Amount of crystals in circulation: ".money_formatter($totalc,"").". The average player has: ".money_formatter($avgc,"")." crystals. "; $gangs=mysql_num_rows(mysql_query("SELECT gangID FROM gangs",$c)); $bg1=mysql_query("SELECT * FROM gangs ORDER BY gangRESPECT DESC LIMIT 1",$c); $bg=mysql_fetch_array($bg1); print "There are currently [b]$gangs[/b] in circulation. "; if(mysql_num_rows($bg1) != 0) { print "The best gang is [b][url='gangs.php?action=view&ID={$bg[']{$bg['gangNAME']}[/url][/b] "; } print "Mails/Events ".money_formatter($mail,"")." mails and ".money_formatter($events,"")." events have been sent.Items There are currently ".money_formatter($totali,"")." items in circulation. </table> <br><br>[url='http://netcodesuk.com/']Created by 'Netcodes UK'[/url]<br>";<br>$h->endpage();<br>?&g
  21. Re: [Free] Password reset code Gangster Language (apparently) :i duno it myt nt wrk 4 u Properly : I don't know it might not work for you EMKO please can you speak like a human being.
  22. Re: Proposed Features for DBS/MCcodes Next Ver.   Nice. Also dabs I already made this mod but w/e - It's custom staff levels with permissions.
  23. Not available for download. Enter the YouTube Video ID NOTE: Video will be formatted in 3GP in which you can send to your mobile phone. ID:
  24. Re: [Free] [v1] Profile Image Uploader   Nice..+1
  25. Re: Contact Staff Form [FREE]   By the looks of it, It allows normal members to mail staff. mass mail is only for staff.
×
×
  • Create New...