Jump to content
MakeWebGames

asinan007

Members
  • Posts

    11
  • Joined

  • Last visited

    Never

Everything posted by asinan007

  1. Re: [mccode v2] Items Pic mod hey check my game http://www.rapid-city.blackheartworks.com/register.php?REF=527 . I've used pic in the shops and even on the inventory. Let me know if thats something u guys are looking for...
  2. Re: [V2] Reward the active. - Punish the inactive. thanx mate :-D
  3. Re: [V2] Reward the active. - Punish the inactive. what would be the code that i should use if i want to delete all the players who are inactive for 45 days, using unix_timestamp(). do help me with this.
  4. Re: Advanced Dating (v1) can anyone post a V2 for this mod its a really cool mod.
  5. Re: [mccode] donator day market for v2 but wats the use of the market if players can't buy them from the market.
  6. Re: free free free wat is it u need??
  7. Well i am thinking of having crime level for the players in my game, which is different from the players level. and according to crime level the brave increases. currently brave increases as the player level increases. but i want brave to go with crime xp. so can anyone help me with this? :-) Got it done so if anyone wants any help in that PM me....
  8. Re: [mccode] donator day market for v2 Here is my donator day market which is called donmarket.php. it works fine. but the problem is its not free of sql injection. if anyone can help.... pls cure this problem for me. <?php include "globals.php"; print "<h3>Donator Day Market</h3>"; switch($_GET['action']) { case "buy": dday_buy(); break; case "remove": dday_remove(); break; case "add": dday_add(); break; default: dday_index(); break; } function dday_index() { global $db,$ir,$c,$userid,$h; print "[url='dmarket.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 donatormarket 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='dmarket.php?action=remove&ID={$r[']Remove[/url]"; } else { $link = "[url='dmarket.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 dday_remove() { global $db,$ir,$c,$userid,$h; $q=$db->query("SELECT * FROM donatormarket WHERE cmID={$_GET['ID']} AND cmADDER=$userid"); if(!$db->num_rows($q)) { print "Error, either these days do not exist, or you are not the owner. [url='dmarket.php']> Back[/url]"; $h->endpage(); exit; } $r=$db->fetch_row($q); $db->query("UPDATE users SET donatordays=donatordays+{$r['cmQTY']} where userid=$userid"); $db->query("DELETE FROM donatormarket WHERE cmID={$_GET['ID']}"); print "days removed from market! [url='dmarket.php']> Back[/url]"; } function dday_buy() { global $db,$ir,$c,$userid,$h; $q=$db->query("SELECT * FROM donatormarket cm WHERE cmID='".mysql_real_escape_string($_GET['ID'])."'"); if(!$db->num_rows($q)) { print "Error, either these days do not exist, or they have already been bought. [url='dmarket.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 days. [url='dmarket.php']> Back[/url]"; $h->endpage(); exit; } $db->query("UPDATE users SET donatordays=donatordays+{$r['cmQTY']} where userid=$userid"); $db->query("DELETE FROM donatormarket 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']} days from the market for \$".number_format($r['cmPRICE']).".",$c); print "You bought the {$r['cmQTY']} days from the market for \$".number_format($r['cmPRICE'])."."; } function dday_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['donatordays']) { die ("You are trying to add more days to the market than you have."); } $tp=$_POST['amnt']*$_POST['price']; $db->query("INSERT INTO donatormarket VALUES('',{$_POST['amnt']},$userid,$tp)"); $db->query("UPDATE users SET donatordays=donatordays-{$_POST['amnt']} WHERE userid=$userid"); print "days added to market! [url='dmarket.php']> Back[/url]"; } else { print "[b]Adding a listing...[/b] You have [b]{$ir['donatordays']}[/b] day(s) that you can add to the market.<form action='dmarket.php?action=add' method='post'><table width=50% border=2><tr> <td>Days:</td> <td><input type='text' name='amnt' value='{$ir['donatordays']}' /></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(); ?>   any help would be appreciated.
  9. Re: Free 2 - Icons ok cool thanx mate... it does work perfectly now.
  10. Re: Free 2 - Icons hey nyna, i tried that in ma game which is mccodes v2. but the icons won't show, but the text is there to be seen. i've created an "icons" folder as well and placed all the icons in the folder. can u help me and lemme know what i did wrong. cause everything had been set as u've mentioned above.
×
×
  • Create New...