
killer60
Members-
Posts
16 -
Joined
-
Last visited
killer60's Achievements
Newbie (1/14)
0
Reputation
-
Yesterday, 7:36pm By SlanderDesign http://www.musicbattle.com http://www.darkmob.net (soon to be finished)<------- im liking this mate mate the other one not sure about it its not summat that catches my eye sorry but there both good in a way but liking darkmob the best They are many but most fail.
-
Re: [V2] Item Weight nice one sniko +1
-
Re: Another Usersonline nice work m8
-
Any chance for 10 seonds of your time?
killer60 replied to bennyh's topic in Requests & In Production
Re: Any chance for 10 seonds of your time? dont know if u can do that but if u have the v2 version of gangs you could convert to v1 that would work -
Re: New Explore Page i didnt actually
-
Re: New Explore Page i made it hitman for u i can give away it if i want
-
Re: New Explore Page thx m8
-
Re: New Explore Page lol i just wanted to do something diffrent m8
-
Re: New Explore Page found problem in explore now fixed enjoy <?php include "globals.php"; ?> <?php function format($str) { if(is_numeric($str)) { return number_format($str); } else { return nl2br(stripslashes(htmlspecialchars($str))); } } ?> <?php function denied() { global $ir, $h; if($ir['jail'] || $ir['hospital']) { echo sprintf("You cannot access this whilst in %s!", $ir['hospital'] ? 'hospital' : 'jail'); $h->endpage(); exit; } } ?> <center>[b]You begin exploring the area you're in, you see a bit that interests you.[/b]</center> <table border="1" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%" id="AutoNumber1" height="299"> <tr> <td width="33%" height="19"> <p align="center"><u>Market Place</u></td> <td width="33%" height="19"> <p align="center"><u>Serious Money Makers</u></td> <td width="34%" height="19"> <p align="center"><u>Dark Side</u></td> </tr> <tr> <td width="33%" height="108"> <p align="center"> [url="shops.php"]Shops[/url] | [url="itemmarket.php"]Item Market[/url] | [url="cmarket.php"]Crystal Market[/url]</td> <td width="33%" height="108"> <p align="center"> [url="monorail.php"]Travel Agency[/url] | [url="estate.php"]Estate Agent[/url] | [url="bank.php"]City Bank[/url]</td> <td width="34%" height="108"> <p align="center"> [url="gangcentral.php"]Gangs[/url] | [url="gangwars.php"]Gang Wars[/url] | [url="fedjail.php"]Federal Jail[/url] | <a href="slotsmachine.php?tresde=428"> Slots Machine</a> | <a href="roulette.php?tresde=428"> Roulette</a> | <a href="lucky.php"> Lucky Boxes</a></td> </tr> <tr> <td width="33%" height="19"> <p align="center"><u>Statistics Dept</u></td> <td width="33%" height="19"> <p align="center"><u>Mysterious</u></td> <td width="34%" height="19"> <p align="center"><u>Coming Soon!!</u></td> </tr> <tr> <td width="33%" height="150"> <p align="center"> [url="userlist.php"]User List[/url] | [url="stafflist.php"]Staff List[/url] | <a href="halloffame.php"> Hall of Fame</a> | <a href="stats.php"> Game Stats</a> | [url="usersonline.php"]Users Online[/url]</td> <td width="33%" height="150"> <p align="center"> <a href="crystaltemple.php">Crystal Temple</a> | <a href="battletent.php"> Battle Tent</a></td> <td width="34%" height="150"> </td> </tr> </table> </body> </html>
-
i bin working on a new explore page and here is the finished one <?php include "globals.php"; ?> <?php function format($str) { if(is_numeric($str)) { return number_format($str); } else { return nl2br(stripslashes(htmlspecialchars($str))); } } ?> <?php function denied() { global $ir, $h; if($ir['jail'] || $ir['hospital']) { echo sprintf("You cannot access this whilst in %s!", $ir['hospital'] ? 'hospital' : 'jail'); $h->endpage(); exit; } } ?> <center>[b]You begin exploring the area you're in, you see a bit that interests you.[/b]</center> <table border="1" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%" id="AutoNumber1" height="299"> <tr> <td width="33%" height="19"> <p align="center"><u>Market Place</u></td> <td width="33%" height="19"> <p align="center"><u>Serious Money Makers</u></td> <td width="34%" height="19"> <p align="center"><u>Dark Side</u></td> </tr> <tr> <td width="33%" height="108"> <p align="center"> [url="shops.php"]Shops[/url] | [url="itemmarket.php"]Item Market[/url] | [url="cmarket.php"]Crystal Market[/url]</td> <td width="33%" height="108"> <p align="center"> [url="monorail.php"]Travel Agency[/url] | [url="estate.php"]Estate Agent[/url] | [url="bank.php"]City Bank[/url]</td> <td width="34%" height="108"> <p align="center"> [url="gangcentral.php"]Gangs[/url] | [url="gangwars.php"]Gang Wars[/url] | [url="fedjail.php"]Federal Jail[/url] | <a href="slotsmachine.php?tresde=428"> Slots Machine</a> | <a href="roulette.php?tresde=428"> Roulette</a> | <a href="lucky.php"> Lucky Boxes</a></td> </tr> <tr> <td width="33%" height="19"> <p align="center"><u>Statistics Dept</u></td> <td width="33%" height="19"> <p align="center"><u>Mysterious</u></td> <td width="34%" height="19"> <p align="center"><u>Coming Soon!!</u></td> </tr> <tr> <td width="33%" height="150"> <p align="center"> [url="userlist.php"]User List[/url] | <a href="stafflist.php">{$set['game_name']} Staff</a> | <a href="halloffame.php"> Hall of Fame</a> | <a href="stats.php"> Game Stats</a> | [url="usersonline.php"]Users Online[/url]</td> <td width="33%" height="150"> <p align="center"> <a href="crystaltemple.php">Crystal Temple</a> | <a href="battletent.php"> Battle Tent</a></td> <td width="34%" height="150"> </td> </tr> </table> </body> </html> screenshot enjoy
-
Re: Advanced Bug Report System fine have all i give up
-
Re: Advanced Bug Report System karlos i added that it edit of your code so id like to hand half credit to karlos everyone
-
Re: crystal market <?php include "globals.php"; print "<h3>Crystal Market</h3>"; echo sprintf(" You have %d money</p>",$ir['money']); $_GET['ID'] = abs(intval($_GET['ID'])); 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; $st=($_GET['st']) ? $_GET['st'] : 0; $cnt = $db->query("SELECT cm.*, u.* FROM crystalmarket cm LEFT JOIN users u ON u.userid=cm.cmADDER ORDER BY cmPRICE/cmQTY ASC LIMIT $st,15"); $membs=mysql_num_rows($cnt); $pages=(int) ($membs/15)+1; $no1=$st+1; $no2=$st+15; if($membs % 100 == 0) { $pages--; } echo "Pages: "; for($i=1;$i <= $pages;$i++) { $stl=($i-1)*15; echo "[url='cmarket.php?st=$stl&ord=$ord']$i[/url] "; } $no1=$st+1; $no2=$st+15; echo " Showing crystal listing $no1 to $no2 "; echo " [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>"; 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']; echo "\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>"; } echo "</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)) { echo "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']}"); echo "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)) { echo "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']) { echo "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 bankmoney=bankmoney+{$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); echo "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"); echo "Crystals added to market! [url='cmarket.php']> Back[/url]"; } else { echo "[b]Adding a listing...[/b] You have [b]{$ir['crystals']}[/b] crystals 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(); ?> securred for you F4R1D
-
Re: crystal market <?php include "globals.php"; print "<h3>Crystal Market</h3>"; $_GET['ID'] = abs(intval($_GET['ID'])); 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>Days Left</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>{$r['cmDAYS']} Days.</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']); $_POST['days'] = abs(intval($_POST['days'])); if($_POST['amnt']) { if($_POST['amnt'] > $ir['crystals']) { die ("You are trying to add more crystals to the market than you have."); } if(!in_array($_POST['days'], array(1,5,10))) { echo 'Amount of days is invalid!'; $h->endpage(); exit; } $b=$db->query("SELECT * FROM crystalmarket WHERE cmADDER=$userid"); if ($db->num_rows($b) > 2) { die("<center>You Are Only Allowed 3 Crystal Sales At A Time [url='cmarket.php?action=add'] Back[/url]"); } $tp=$_POST['amnt']*$_POST['price']; $db->query("INSERT INTO crystalmarket VALUES('',{$_POST['amnt']},$userid,$tp,{$_POST['days']})"); $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>Days:</td> <td><select type='dropdown' name='days' value='{$ir['cmDAYS']}' />> <option value='1'>1 <option value='5'>5 <option value='10'>10</select> </tr> <td colspan=2 align=center><input type='submit' value='Add To Market' /></tr></table></form>"; } } $h->endpage(); ?> here secured for you