
Ghetto
Members-
Posts
413 -
Joined
-
Last visited
Never
Content Type
Profiles
Forums
Events
Everything posted by Ghetto
-
Re: WWI USA-21 Germany-18 Russia-17 Great Britan-26 France-18
-
Re: 3 Word Game Stuffed with bubblewrap
-
Re: WWI USA-20 Germany-18 Russia-19 Great Britan-25 France-18
-
Re: Password Protect Staff/Admin Panel No because the username/passwords are stored in this file. You obviously use a different user/pass then you game one so they could be sat there for hours fingering it out. You use a different user/pass for each staff member.
-
Re: 3 Word Game testicals with a
-
Re: WWI USA-19 Germany-18 Russia-19 Great Britan-25 France-19 :evil:
-
Re: Emergency Broadcast System (Spam Thread) Lol no i didnt :evil: i used notepad then i noticed it in the quote :lol: :-P
-
Re: Guess the next poster Nope Jesse
-
Re: Counting (nr game) 1675
-
I know there has already been one of these made but this ones unique no SQL required, Can be used on any page. You can put in a single user/pass for everyone or use a different user/pass for each person you want to access the file. Price: $10 Screenshot: PM me if your interested.
-
Re: New items page [V2] I will take some in a minute just finishing off another mod.
-
The old V2 items page was pretty basic so heres a revamped version of it. inventory.php <?php include "globals.php"; $q=$db->query("SELECT * FROM items WHERE itmid IN({$ir['equip_primary']}, {$ir['equip_secondary']}, {$ir['equip_armor']})"); while($r=$db->fetch_row($q)) { $equip[$r['itmid']]=$r; } echo "<table width='70%' border='0' cellspacing='1' class='table'> <tr> <th>Primary Weapon</th><th>Secondary Weapon</th><th>Armor</th></tr> <tr><td>"; if($equip[$ir['equip_primary']]['itmid']) { print $equip[$ir['equip_primary']]['itmname']."</td>"; } else { echo "None equipped.</td>"; } echo "<td>"; if($equip[$ir['equip_secondary']]['itmid']) { print $equip[$ir['equip_secondary']]['itmname']."</td>"; } else { echo "None equipped.</td>"; } echo "<td>"; if($equip[$ir['equip_armor']]['itmid']) { print $equip[$ir['equip_armor']]['itmname']."</td>"; } else { echo "None equipped.</td>"; } echo "</tr> </table> <hr width='70%' color='black'> "; $invwep=$db->query("SELECT iv.*,i.*,it.* FROM inventory iv LEFT JOIN items i ON iv.inv_itemid=i.itmid LEFT JOIN itemtypes it ON i.itmtype=it.itmtypeid WHERE iv.inv_userid={$userid} && it.itmtypeid=1 || iv.inv_userid={$userid} && it.itmtypeid=2 ORDER BY i.itmtype ASC, i.itmname ASC"); echo "<table width='70%' border='0' cellspacing='1' class='table'> <tr><th align='left' width='40%'>Weapon</th><th align='left' width='20%'>Style</th><th align='left' width='20%'>Sale Value</th><th align='left' width='20%'>Equipt As?</th></tr>"; if ($db->num_rows($invwep) == 0) { echo "<tr><td colspan='4'>[b]You have no weapons![/b]</td></tr></table> <hr width='70%' color='black'> "; } else { while($i=$db->fetch_row($invwep)) { echo "<tr><td align='left'>[b]{$i['itmname']}[/b]"; echo " [[url='iteminfo.php?ID={$i[']Info[/url]] [[url='itemsend.php?ID={$i[']Send[/url]] [[url='itemsell.php?ID={$i[']Sell[/url]]"; echo "</td><td>{$i['itmtypename']}"; echo "</td><td align='right'>\${$i['itmsellprice']}</td><td align='right'>"; if($equip[$ir['equip_primary']]['itmid']) { print $equip[$ir['equip_primary']]['itmname']."</td>"; } else { echo " [url='equip_weapon.php?ID={$i[']Not Equpped[/url]</td>"; } echo "</tr>"; } echo "</table> <hr width='70%' color='black'> "; } $invarm=$db->query("SELECT iv.*,i.*,it.* FROM inventory iv LEFT JOIN items i ON iv.inv_itemid=i.itmid LEFT JOIN itemtypes it ON i.itmtype=it.itmtypeid WHERE iv.inv_userid={$userid} && it.itmtypeid=3 ORDER BY i.itmtype ASC, i.itmname ASC"); echo "<table width='70%' border='0' cellspacing='1' class='table'><tr><th align='left' width='40%'>Armor</th><th align='left' width='20%'>Style</th><th align='left' width='20%'>Sale Value</th><th align='left' width='20%'>Equipt As?</th></tr>"; if ($db->num_rows($invarm) == 0) { echo "<tr><td colspan='4'>[b]You have no armor![/b]</td></tr></table> <hr width='70%' color='black'> "; } else { while($i=$db->fetch_row($invarm)) { echo "<tr><td align='left'>[b]{$i['itmname']}[/b]"; echo " [[url='iteminfo.php?ID={$i[']Info[/url]] [[url='itemsend.php?ID={$i[']Send[/url]] [[url='itemsell.php?ID={$i[']Sell[/url]]"; echo "</td><td>{$i['itmtypename']}"; echo "</td><td align='right'>\${$i['itmsellprice']}</td><td align='right'>"; echo " [[url='equip_armor.php?ID={$i[']Equip as Armor[/url]]"; echo "</td></tr>"; } echo "</table> <hr width='70%' color='black'> "; } $inv=$db->query("SELECT iv.*,i.*,it.* FROM inventory iv LEFT JOIN items i ON iv.inv_itemid=i.itmid LEFT JOIN itemtypes it ON i.itmtype=it.itmtypeid WHERE iv.inv_userid={$userid} && it.itmtypeid>3 ORDER BY i.itmtype ASC, i.itmname ASC"); echo "<table width='70%' border='0' cellspacing='1' class='table'><tr><th align='left' width='40%'>Item</th><th align='left' width='20%'>Type</th><th align='left' width='20%'>Sale Value</th><th align='left' width='20%'>Total Sale Value</th></tr>"; if ($db->num_rows($inv) == 0) { echo "<tr><td colspan='4'>[b]You have no items![/b]</td></tr></table> <hr width='70%' color='black'> "; } else { while($i=$db->fetch_row($inv)) { echo "<tr><td align='left'>[b]{$i['itmname']}[/b] "; if ($i['inv_qty'] > 1) { echo " x{$i['inv_qty']}"; } echo " [[url='iteminfo.php?ID={$i[']Info[/url]] [[url='itemsend.php?ID={$i[']Send[/url]] [[url='itemsell.php?ID={$i[']Sell[/url]]"; if($i['effect1_on'] || $i['effect2_on'] || $i['effect3_on']) { echo " [[url='itemuse.php?ID={$i[']Use[/url]]"; } echo "</td><td>{$i['itmtypename']}"; echo "</td><td align='right'>\${$i['itmsellprice']}</td><td align='right'>"; echo "$".($i['itmsellprice']*$i['inv_qty']); echo "</td></tr>"; } echo "</table>"; } $h->endpage(); ?> Should be working without any bugs but if you fine any just let me know. EDIT: Sceenshot added:
-
Re: (New) Feature Vip News [V1] Booo 8-)
-
This is a casino with a modified version of mccodes V2 slots (much better). casino.php <?php include "globals.php"; switch($_GET['step']) { case 'index': casino_index(); break; case 'slots': casino_slots(); break; default: casino_index(); break; } function casino_index() { global $db,$ir,$c,$userid,$h; $tresder = (int) (rand(100,999)); echo "<table><tr><td><center> Welcome to the hitman-city casino. Take a look around and see if there is anything you would like to play. You have {$ir['casinotokens']} casino tokens. [url='casino.php?step=slots&rfc=$tresder']> Slots[/url] </tr></td></table>"; } function casino_slots() { global $db,$ir,$c,$userid,$h; if (!isset($_GET['action'])){ $tresder = (int) (rand(100,999)); if(!$_GET['rfc']) { echo "Stop Tring to cheat."; $h->endpage(); exit; } $bet=$ir['level']*25; echo "Welcome to the slots area. It costs [b]\$$bet[/b] for your level to play. Just pull the handle. Do you want to play? You have [b]{$ir['casinotokens']}[/b] casino tokens left. >[url='casino.php?step=slots&action=pull&rfc=$tresder']Yeah i'll play[/url] >[url='casino.php']No thanks[/url]"; } else { if ($_GET['action']=='pull') { $tresder = (int) (rand(100,999)); if(!$_GET['rfc']) { echo "Stop Tring to cheat."; $h->endpage(); exit; } $bet=$ir['level']*25; $wining=$ir['level']*250; $_GET['rfc']=abs((int) $_GET['rfc']); if(($_SESSION['rfc'] == $_GET['rfc']) || $_GET['rfc']<100) { echo "<table><tr><td>No refreshin in the casino.</td></tr></table>"; $h->endpage(); exit; } $_SESSION['rfc']=$_GET['rfc']; echo "<table><tr><td><h3>Slots</h3>"; if($bet > $ir['money']) { echo "You dont have enouth money to play the slots. </td></tr></table>"; $h->endpage(); exit; } else if($ir['casinotokens'] == 0) { echo "You have not got anymore casino tokens left. Please wait till tomorrow.</td></tr></table>"; $h->endpage(); exit; } $slot[1]=(int) rand(1,9); if($slot[1]==1) { $pic="<img src=/slots/1.gif>"; } if($slot[1]==2) { $pic="<img src=/slots/2.gif>"; } if($slot[1]==3) { $pic="<img src=/slots/3.gif>"; } if($slot[1]==4) { $pic="<img src=/slots/4.gif>"; } if($slot[1]==5) { $pic="<img src=/slots/5.gif>"; } if($slot[1]==6) { $pic="<img src=/slots/6.gif>"; } if($slot[1]==7) { $pic="<img src=/slots/7.gif>"; } if($slot[1]==8) { $pic="<img src=/slots/8.gif>"; } if($slot[1]==9) { $pic="<img src=/slots/9.gif>"; } $slot[2]=(int) rand(1,9); if($slot[2]==1) { $pic2="<img src=/slots/1.gif>"; } if($slot[2]==2) { $pic2="<img src=/slots/2.gif>"; } if($slot[2]==3) { $pic2="<img src=/slots/3.gif>"; } if($slot[2]==4) { $pic2="<img src=/slots/4.gif>"; } if($slot[2]==5) { $pic2="<img src=/slots/5.gif>"; } if($slot[2]==6) { $pic2="<img src=/slots/6.gif>"; } if($slot[2]==7) { $pic2="<img src=/slots/7.gif>"; } if($slot[2]==8) { $pic2="<img src=/slots/8.gif>"; } if($slot[2]==9) { $pic2="<img src=/slots/9.gif>"; } $slot[3]=(int) rand(1,9); if($slot[3]==1) { $pic3="<img src=/slots/1.gif>"; } if($slot[3]==2) { $pic3="<img src=/slots/2.gif>"; } if($slot[3]==3) { $pic3="<img src=/slots/3.gif>"; } if($slot[3]==4) { $pic3="<img src=/slots/4.gif>"; } if($slot[3]==5) { $pic3="<img src=/slots/5.gif>"; } if($slot[3]==6) { $pic3="<img src=/slots/6.gif>"; } if($slot[3]==7) { $pic3="<img src=/slots/7.gif>"; } if($slot[3]==8) { $pic3="<img src=/slots/8.gif>"; } if($slot[3]==9) { $pic3="<img src=/slots/9.gif>"; } echo "You place $$bet into the slot and pull the pole. You see the numbers: [b]$pic$pic2$pic3[/b] "; if($slot[1]==$slot[2] && $slot[2]==$slot[3]) { $won=$wining*5; echo "You won $$won by lining up 3 numbers."; } else if ($slot[1]==$slot[2] || $slot[2]==$slot[3] || $slot[1]==$slot[3]) { $won=$wining; echo "You won $$won by lining up 2 numbers."; } else { $won=0; $gain=-$wining; echo "Nothing lined up try again?."; } $db->query("UPDATE users SET money=money-$bet, casinotokens=casinotokens-1 WHERE userid=$userid"); $db->query("UPDATE users SET money=money+$won where userid=$userid"); $tresder = (int) (rand(100,999)); echo " <center> [url='casino.php?step=slots&action=pull&rfc=$tresder']> Try Again.[/url] "; echo "</td></tr></table>"; } if($_GET['action'] != 'pull') { echo "Hacking attempt"; $h->endpage(); exit; } } } $h->endpage(); ?> Add in cron_day.php $db->query("UPDATE users SET casinotokens=75"); SQL: ALTER TABLE `users` ADD `casinotokens` INT( 11 ) NOT NULL ; Then create a folder called 'slots' and make 9 pictures from 1 - 9 and upload them in that folder and your done. I will be posting more casino games when i make them.
-
Re: Free gamedemo thingy Exactly I'm going by what he said you've been putting words in his mouth. You don't even know him so give him a chance. Everyones the same on this forum, thinking every new person's a n00b because they ask a question just grow up and stop judging people.
-
Re: Free gamedemo thingy Can earhter of you two read? He said he wants them for a customer not himself.
-
Re: Free gamedemo thingy It will be good to see what your game turns out like then. :-)
-
Re: New And Improved Register There is no copyright for V2 so it dosent matter where it got the game from. The only copyrighted version of MCCodes is the light (free) version.
-
Re: Counting (nr game) 1668
-
Re: Guess the next poster Nope Tezza`
-
Re: WWI USA-19 Germany-1 Russia-19 Great Britan-24 France-20
-
Re: Emergency Broadcast System (Spam Thread) My eye sights alrite acctually :-D :-D :-) :-( :-o :? 8-) :lol: :x :-P :oops: :cry: :evil: :roll: :wink: :| :mrgreen: :mrgreen: :| :wink: :roll: :evil: :cry: :oops: :-P :x :lol: 8-) :? :-o :-( :-) :-D Woot.
-
Re: Counting (nr game) 1666
-
Re: Guess the next poster Nope -Matt-
-
Re: Debit/Credit Card Mod $15 All you really need to do is a few edits in the admin/staff panel add a SQL like crimeSUCCESSCARD in the crimes table and in the docrime.php put something like this in there if($r['crimeSUCCESSCARD']) { $db->query("UPDATE users SET wateverthecardis=wateverthecardis+{$r['crimeSUCCESSCARD']} WHERE userid=$userid"); } and then you can create the crimes in the admin/staff panel.