Jump to content
MakeWebGames

Neji_Hyuuga

Members
  • Posts

    46
  • Joined

  • Last visited

    Never

Everything posted by Neji_Hyuuga

  1. Re: New member search... wow cheers love this new search but where do i find the mug so i can use that part as well
  2. Re: [mccode lite / V1] Basic Forums thank you i added the v2 one is i tsecure or does it need securing cos i dont want my game being hacked but i like the mod and thank you for doing it
  3. Re: [mccodes] House Upgrades [$15] ok mate my only problem is i dont knwo when ill be able to get $15 for it i jsut hope i can get it before all copies are sold as im really looking for this code too
  4. Re: [mccode v2] Weather Gym [$1.00] cheers mate gonna enjoy having this gym on my game
  5. Re: [mccodes] House Upgrades [$15] ok thanks mate for letting me know ill go see if i can get $15 as im really looking for this mod for a game im currently in the making of to make it abit harder to gain stuff as i found out on other games i owned people gained money fast for selling there house putting money in there banks and getting interest from it then buying there house back afterwards
  6. Re: [mccodes] House Upgrades [$15] [mccodes] House Upgrades [$15] that price is thats on the main page to access this post so how much is it mate $15 that it says there or $20 that it says on your post as i dont want to be paying the wrong price but im after thismod have been for months and now i finaly found it if this is the estate mod that lets you only upgrade the house and not sell it
  7. Re: looking to buy sounds like a good idea i wonder if it can be done this mod as it really does sound like a good idea make it so its all different that other games for gaining gang respect
  8. Re: [MC Code v2] Saved Events nice mod this is +1 mate for it added it to my game
  9. Re: [mccode v2] Weather Gym [$1.00] just bought as i just found out about this gym and its a really wicked gym i love it ill be using this on my game as soon as i get it nice one mate
  10. Re: [MCCODES v1 + V2] Flash Login so once i paid how do i get the code mate do u email me it or something as im interested in it and wanting to buy it from you
  11. Re: [MCCODES v1 + V2] Flash Login this bit here mate does this mean its the entire login page with it all attached and if it is how much is $5 in ? GBP mate as im not very good at currency converting.     i am very interested in this as it sounds like a really good login page
  12. Re: cmarket.php HELP i know what its liek to buy codes and have them not working had a couple like that my self so here you go mate ill add my cmarket.php hoep it helps you and you fix your problem   <?php $_GET['ID'] = abs(@intval($_GET['ID'])); include "globals.php"; print "<h3>Crystal Market</h3>"; switch($_GET['action']) { case "buy": crystal_buy(); break; case "remove": crystal_remove(); break; case "add": crystal_add(); break; default: cmarket_index(); break; } function cmarket_index() { global $db,$ir,$c,$userid,$h; print "[url='cmarket.php?action=add']> Add A Listing[/url] Viewing all listings... <table width=75% cellspacing=1 class='table'> <tr style='background:gray'> <th>Adder</th> <th>Qty</th> <th>Price each</th> <th>Price total</th> <th>Links</th> </tr>"; $q=$db->query("SELECT cm.*, u.* FROM crystalmarket cm LEFT JOIN users u ON u.userid=cm.cmADDER ORDER BY cmPRICE/cmQTY ASC"); while($r=$db->fetch_row($q)) { if($r['cmADDER'] == $userid) { $link = "[url='cmarket.php?action=remove&ID={$r[']Remove[/url]"; } else { $link = "[url='cmarket.php?action=buy&ID={$r[']Buy[/url]"; } $each= (int) $r['cmPRICE'] / $r['cmQTY']; print "\n<tr> <td>[url='viewuser.php?u={$r[']{$r['username']}[/url] [{$r['userid']}]</td> <td>{$r['cmQTY']}</td> <td> \$" . number_format($each)."</td> <td>\$".number_format($r['cmPRICE'])."</td> <td>[$link]</td> </tr>"; } print "</table>"; } function crystal_remove() { global $db,$ir,$c,$userid,$h; $q=$db->query("SELECT * FROM crystalmarket WHERE cmID={$_GET['ID']} AND cmADDER=$userid"); if(!$db->num_rows($q)) { print "Error, either these crystals do not exist, or you are not the owner. [url='cmarket.php']> Back[/url]"; $h->endpage(); exit; } $r=$db->fetch_row($q); $db->query("UPDATE users SET crystals=crystals+{$r['cmQTY']} where userid=$userid"); $db->query("DELETE FROM crystalmarket WHERE cmID={$_GET['ID']}"); print "Crystals removed from market! [url='cmarket.php']> Back[/url]"; } function crystal_buy() { global $db,$ir,$c,$userid,$h; $q=$db->query("SELECT * FROM crystalmarket cm WHERE cmID={$_GET['ID']}"); if(!$db->num_rows($q)) { print "Error, either these crystals do not exist, or they have already been bought. [url='cmarket.php']> Back[/url]"; $h->endpage(); exit; } $r=$db->fetch_row($q); if($r['cmPRICE'] > $ir['money']) { print "Error, you do not have the funds to buy these crystals. [url='cmarket.php']> Back[/url]"; $h->endpage(); exit; } $db->query("UPDATE users SET crystals=crystals+{$r['cmQTY']} where userid=$userid"); $db->query("DELETE FROM crystalmarket WHERE cmID={$_GET['ID']}"); $db->query("UPDATE users SET money=money-{$r['cmPRICE']} where userid=$userid"); $db->query("UPDATE users SET money=money+{$r['cmPRICE']} where userid={$r['cmADDER']}"); event_add($r['cmADDER'],"[url='viewuser.php?u=$userid']{$ir['username']}[/url] bought your {$r['cmQTY']} crystals from the market for \$".number_format($r['cmPRICE']).".",$c); print "You bought the {$r['cmQTY']} crystals from the market for \$".number_format($r['cmPRICE'])."."; } function crystal_add() { global $db,$ir,$c,$userid,$h; $_POST['amnt'] = abs((int) $_POST['amnt']); $_POST['price'] = abs((int) $_POST['price']); if($_POST['amnt']) { if($_POST['amnt'] > $ir['crystals']) { die ("You are trying to add more crystals to the market than you have."); } $tp=$_POST['amnt']*$_POST['price']; $db->query("INSERT INTO crystalmarket VALUES('',{$_POST['amnt']},$userid,$tp)"); $db->query("UPDATE users SET crystals=crystals-{$_POST['amnt']} WHERE userid=$userid"); print "Crystals added to market! [url='cmarket.php']> Back[/url]"; } else { print "[b]Adding a listing...[/b] You have [b]{$ir['crystals']}[/b] crystal(s) that you can add to the market.<form action='cmarket.php?action=add' method='post'><table width=50% border=2><tr> <td>Crystals:</td> <td><input type='text' name='amnt' value='{$ir['crystals']}' /></td></tr><tr> <td>Price Each:</td> <td><input type='text' name='price' value='200' /></td></tr><tr> <td colspan=2 align=center><input type='submit' value='Add To Market' /></tr></table></form>"; } } $h->endpage(); ?>   im always glad to help fellow game owners/coders as i also knwo what it is like to not have help and do it your self and strugle so i try my best to save all that for others and help the best i can
  13. Re: Looking for a Referal Mod ... nice idea about this tolk but the one i added of urs dont work so i edited it and now it works on my game here is the edited version first of off find case "iq": hof_iq(); break; then under it add case "referal": hof_referals(); break; then find function hof_iq() { global $db,$ir,$c,$userid, $myf; print "Showing the 20 users with the highest IQ <table width=75% cellspacing=1 class='table'><tr style='background:gray'> <th>Pos</th> <th>User</th> </tr>"; $q=$db->query("SELECT u.*,g.* FROM users u LEFT JOIN userstats us ON u.userid=us.userid LEFT JOIN gangs g ON g.gangID=u.gang WHERE u.user_level != 0 $myf ORDER BY us.IQ DESC,u.userid ASC LIMIT 20"); $p=0; while($r=$db->fetch_row($q)) { $p++; if($r['userid'] == $ir['userid']) { $t="[b]";$et="[/b]"; } else { $t="";$et=""; } print "<tr> <td>$t$p$et</td> <td>$t{$r['gangPREF']} {$r['username']} [{$r['userid']}]$et</td> </tr>"; } print "</table>"; } under it add function hof_referals() { global $db,$ir,$c,$userid, $myf; print "Showing the 6 users with the highest number of referals <table width=75% cellspacing=1 class='table'><tr style='background:gray'> <th>User ID</th> <th>Number of referals</th> </tr>"; $p=0; $ar=$db->query("SELECT COUNT('refREFED') AS total,refREFER FROM referals GROUP BY refREFER ORDER BY COUNT('referred') DESC LIMIT 10"); while($s = $db->fetch_row($ar)) { echo '<tr style="background:brown">'; echo '<td>'.$s['refREFER'].'</td>'; echo '<td>'.$s['total'].'</td>'; echo '</tr>'; } also to add the link at the top of the page do the following find <td>[url='halloffame.php?action=crystals&filter={$filter}']CRYSTALS[/url]</td> directly after it add <td>[url='halloffame.php?action=referal&filter={$filter}']REFERALS[/url]</td> this is the working version its a good idea tolk not taking credit for it jsut wanting to help out by addin gthe verion i managed to get working because you forgot to add the case files and the link hope everyone liks the working version as its a good mod ill send a screenshot of it too so u can see the working version By Paul_Donna_Luke
  14. Re: [MOD V2] Send Users Secret Messages.... this sounds like a really good mod im gonna this to my game thanks mate for it you fetch out good mods all the time
  15. Re: [mccodes V2] Nudge Users well i never said i made this mod but killah seemed to think i did all i did was add it i never knew it was added before as i have not seen it on here before but it is a good mod nice one mate
  16. Re: Need an Mccodes hall of fame of referrals where in hall of fame do i add this code as i like the idea of this
  17. Re: [mccodes V2] Nudge Users i do give credit to the person who made it , its a good mod i was not taking credit for making this i just uploaded it trying to help others out and thanks karlos for the better version its better than the one i have now because like i said im not that much of a coder there are things i still dont fully understand about coding but i do my best to understand it all im not as good as you are killah just cos you been on here a lot longer than others dont give you the right to have ago at them for uploading a game code thats been on here before i seen plenty of codes thats been added by all different people most of them are the advance mailbox with i now have on my game but others never worked but this on ei have no does so next time just tell them its been added not have ago it gets you further in life
  18. Re: [mccodes V2] Nudge Users well sorry SIR man your a bossy git arn't you a simple mistake and you bite peoples head off over it i read the rules i may of missed a line its a easy mistake dont say you never made it before missing 1 line while reading something too easy to do
  19. Re: [mccodes V2] Nudge Users did i say i made it noooo i jsut uploaded it trying to help other game owners if you find the bit that says i made it then please let me know till then dont accuse people of whats not there and dont put words in there mouths
  20. first make a file called nudge.php and add the following code   <?php include "globals.php"; $_GET['ID'] = abs((int) $_GET['ID']); if(!((int)$_GET['ID'])) { print "Invalid User ID"; } else if($_GET['ID'] == $userid) { print "You cannot nudge yourself!"; } elseif($ir['nudge'] > 0) { print "You already nudged a user, please try again in 5mins!"; } else { print "You have just nudged ID {$_GET['ID']}."; event_add($_GET['ID'],"[url='viewuser.php?u={$ir['][b]{$ir['username']}[/b][/url] Nudged you!",$c); $db->query("UPDATE users SET nudge=nudge+1 WHERE userid=$userid"); $it=$db->query("SELECT u.*,us.* FROM users u LEFT JOIN userstats us ON u.userid=us.userid WHERE u.userid={$_GET['ID']}"); $er=$db->fetch_row($it); } print "</table>"; $h->endpage(); ?>   then add the SQL code in phpmyadmin ALTER TABLE `users` ADD `nudge` int(11) NOT NULL default '0'   then open cron_fivemins.php and find if($set['validate_period'] == 15 && $set['validate_on'] && in_array(date('i'),array("00", "15", "30", "45"))) { $db->query("UPDATE users SET verified=0"); } ?>   replace that with if($set['validate_period'] == 15 && $set['validate_on'] && in_array(date('i'),array("00", "15", "30", "45"))) { $db->query("UPDATE users SET verified=0"); } $db->query("UPDATE users SET nudge=0"); ?>   save and then close cron_fivemins.php then open viewuser.php and find   [[url='attack.php?ID={$r[']Attack[/url]]   add this under it   [[url='nudge.php?ID={$r[']Nudge User[/url]]   its a pointless but fun mod to have just doing my bit to help all coders/game owners cos a few people will like to try say i made this i never made it just uploaded as im a coder and im doing my part to help other coders and game owners
  21. Re: [mccode v2] edited hospital bill made for jail     sorry people about the top post the link for it was wrong i forgot to add the user bit i tried it and kept getting invailid user i found out why and posted the correct one here thanks and sorry for not adding it at first
  22. Re: edited hospital bill made for jail yh true i only made it cost nothing cos when u start a game u only get $100 and if u get busted on your first crime and dont have enough to get out ur buggered till someone does
  23. Re: edited hospital bill made for jail well i changed the txt for it and i deleted this line from it die("You cannot bail out people while in jail."); so the person who goes in jail can get them self out as well i was just trying to help out abit with the cron_min gone cos of ej.am dont allow it no more i know at the moment i got a ej.am game i know how annoying it is
  24. just make a file called jailbill.php and add the following code   <?php include "globals.php"; if($ir['jail']) { } $_GET['ID']=abs((int) $_GET['ID']); $r=$db->fetch_row($db->query("SELECT * FROM users WHERE userid={$_GET['ID']}")); if(!$r['userid']) { die("Invalid user"); } if(!$r['jail']) { die("That user is not in the jail!"); } $cost=$r['level']*1; $cf=number_format($cost); if($ir['money'] < $cost) { die("Sorry, you do not have enough money to Pay the jail Bill for {$r['username']}. You need \$$cf."); } print "You successfully paid {$r['username']} jail bill \$$cf. > [url='jail.php']Back[/url]"; $db->query("UPDATE users SET money=money-{$cost} WHERE userid=$userid"); $db->query("UPDATE users SET jail=0 WHERE userid={$r['userid']}"); event_add($r['userid'], "[url='viewuser.php?u={$ir[']{$ir['username']}[/url] payed your jail bill.", $c); $h->endpage(); ?>   i know this is the code for the hospital bill i just edited and made it for jail for the people who have a ejam game they do not allow the usage of the cron_min so this helps out abit so who ever first made the hospital bill that is a good idea and im not sure if it has been edited for the jail but if not here it is for ejam games. it is also made so that the user who goes in jail can get them self out as well but after adding it add this link in the jail.php next to bail [[url='jailbill.php']Get Out Jail Free[/url]]   please leave replys on what you think for this and for a joke and a laugh the cost to get your self out jail will cost you $1 lol just cos a laugh lol
  25. function massmailer() { global $db,$ir,$c,$userid; if($_POST['text']) { $_POST['text']=nl2br(strip_tags($_POST['text'])); $subj="This is a mass mail from the administration"; if($_POST['cat']==1) $q=$db->query("SELECT * FROM users "); else if($_POST['cat']==2) $q=$db->query("SELECT * FROM users WHERE user_level > 1"); else if($_POST['cat']==3) $q=$db->query("SELECT * FROM users WHERE user_level=2"); else $q=$db->query("SELECT * FROM users WHERE user_level={$_POST['level']}"); while($r=$db->fetch_row($q)) { $db->query("INSERT INTO mail VALUES('', 0, 0, {$r['userid']}, unix_timestamp(),'$subj','{$_POST['text']}')"); print "Mass mail sent to {$r['username']}. "; } print "Mass mail sending complete! [url='staff_special.php?action=massmailer']> Back[/url]"; } else { print "[b]Mass Mailer[/b] <form action='staff_special.php?action=massmailer' method='post'> Text: <textarea name='text' rows='7' cols='40'></textarea> <input type='radio' name='cat' value='1' /> Send to all members <input type='radio' name='cat' value='2' /> Send to staff only <input type='radio' name='cat' value='3' /> Send to admins only OR Send to user level: <input type='radio' name='level' value='1' /> Member <input type='radio' name='level' value='2' /> Admin <input type='radio' name='level' value='3' /> Secretary <input type='radio' name='level' value='5' /> Assistant <input type='submit' value='Send' /></form>"; } }   i need help to change this from the mass mail for staff or members to send a mass certain amount of items out to everyone on my game can anyone help me with this please
×
×
  • Create New...