
jimmytubbs
Members-
Posts
92 -
Joined
-
Last visited
Never
Content Type
Profiles
Forums
Events
Everything posted by jimmytubbs
-
hi on my game i keep getting were people buy 1 house and are getting 2. and the same with ads on the newspaper. Can any one help please will supply code if needed
-
Blow members minds with the ULTIMATE explore page
jimmytubbs replied to Uridium's topic in General Discussion
Re: Blow members minds with the ULTIMATE explore page How do you find out what the sepcific co-ords are of one part and how do you get the image of a rectangle to show up? -
Flags v2 create file flags.php <?php /*----------------------------------------------------- -- Made By Jimmytubbs -- Free Mod -- flags.php -- Criminal Existance Forums -----------------------------------------------------*/ include"globals.php"; if($ir['money'] == 0) { die("<font color='red'><center> You Cant Play! You Have No Money! This game costs 100 per go.</font>"); } print "<table width=100% border=0><tr><th><center><h3>Flags</h3></center></th></tr> <tr><th>"; $_GET['number']=(int) $_GET['number']; if($_GET['number']) { $earn=round($ir['money']*($ir['level']+1)/100); $lose=round($ir['money']*($ir['level']+1)/105); if($earn > 100000 or $earn < 1) { $earn=100; } if($lose > 100000 or $lose < 1) { $lose=80; } if($_GET['number'] != 1 and $_GET['number'] != 2 and $_GET['number'] != 3) { die("Those number's don't exist."); } $rand=rand(1,3); if($_GET['number'] == $rand) { print "You guessed the correct countries flag <font color=lime>Congratulations you found \$$earn .</font> "; } else { print "You guessed the wrong countries flag <font color=red>You lost 100 dollars</font> "; } print "<table width=70% border=0><tr><th>"; if($_GET['number'] == 1) { if($rand == 1) { print "[img=flag1.gif]"; } else { print "[img=flag1.gif]"; } } else { print "[img=flag1.gif]"; } print "</th><th>"; if($_GET['number'] == 2) { if($rand == 2) { print "[img=flag2.gif]"; } else { print "[img=flag2.gif]"; } } else { print "[img=flag2.gif]"; } print "</th><th>"; if($_GET['number'] == 3) { if($rand == 3) { print "[img=flag3.gif]"; } else { print "[img=flag3.gif]"; } } else { print "[img=flag3.gif]"; } print "</th></tr></table>"; print " You are being redirected back</font> <meta http-equiv='refresh' content='2; url=flags.php'> "; //queries, die if($_GET['number'] == $rand) { $db->query("UPDATE users SET money=money+{$earn} WHERE userid=$userid",$c); } else { $db->query("UPDATE `users` SET money = money-100 WHERE userid=$userid",$c ); } } else { $earn=round($ir['money']*($ir['level']+1)/100); $lose=round($ir['money']*($ir['level']+2)/105); if($earn > 100000 or $earn < 1) { $earn=100; } if($lose > 100000 or $lose < 1) { $lose=100; } print "You walk up to a building. A wise man is in there, he asks you if you want to play a game of flags? He then says i will show you 3 flags for 3 different contries, you have to guess the country i am thinking of, if you do you will get [b]$100.[/b] But if you don't, You will lose $100, You have [{$ir['money']}] Dollars left.[/b] <table width=70% border=0><tr><th> [url='flags.php?number=1'][img=flag1.gif][/url] Uk? </th><th> [url='flags.php?number=2'][img=flag2.gif][/url] South Africa? </th><th> [url='flags.php?number=3'][img=flag3.gif][/url] Equador? </th></tr></table> "; } print "</th></tr></table>"; $h->endpage(); ?> Then upload the three flags Then your done! All codes tested and working cheers jimmytubbs
-
hi in v2 i want to make a main menu where you click and then you get some links which drop down under neath the categories. But i dont know how to do that can any 1 help? you can see a example @ these http://www.torncountry.com and http://www.bbspy.co.uk Cheers jimmytubbs
-
Re: [v2]Casino[v2] hi in any of the codes find some thing like this: $db->query("update users set credits=credits-8 where userid=$userid"); then just change the + or - sign next to credits and then the number its simple cheers jimmytubbs
-
Re: [v2]Casino[v2] carnigames.php <?php require "globals.php"; if($ir['credits']<1) die("<center>You are out of credits. [url='carnival.php']<font color=red>Go buy some</font>[/url]"); if ($_GET['action'] == 'balloon') { $bal=rand(1,100); if ($bal>=10) { print "You missed! [url='carnival.php']Back[/url]"; $db->query("update users set credits=credits-5 where userid=$userid"); } else { print "You pop a balloon and win 5 Crystals! "; $db->_query("update users set credits=credits-5 where userid=$userid"); $db->query("update users set crystals=crystals+5 where userid=$userid"); } } if ($_GET['action'] == 'duck') { $dck=rand(1,10); if ($dck==1) { print "You picked up the duck with the number 1 on the bottom! Sorry the lucky number was 3 [url='carnival.php']Back[/url]"; $db->query("update users set credits=credits-5 where userid=$userid"); } if ($dck==2) { print "You picked up the duck with the number 2 on the bottom! Sorry the lucky number was 3 [url='carnival.php']Back[/url]"; $db->$db->query("update users set credits=credits-5 where userid=$userid"); } if ($dck==3) { print "You picked up the duck with the number 3 on the bottom! You won 3 Crystals! [url='carnival.php']Back[/url]"; $db->query("update users set credits=credits-5 where userid=$userid"); $db->query("update users set crystals=crystals+3 where userid=$userid"); } if ($dck==4) { print "You picked up the duck with the number 4 on the bottom! Sorry the lucky number was 3 [url='carnival.php']Back[/url]"; $db->query("update users set credits=credits-5 where userid=$userid"); } if ($dck==5) { print "You picked up the duck with the number 5 on the bottom! Sorry the lucky number was 3 [url='carnival.php']Back[/url]"; $db->query("update users set credits=credits-5 where userid=$userid"); } if ($dck==6) { print "You picked up the duck with the number 6 on the bottom! Sorry the lucky number was 3 [url='carnival.php']Back[/url]"; $db->query("update users set credits=credits-5 where userid=$userid"); } if ($dck==7) { print "You picked up the duck with the number 7 on the bottom! Sorry the lucky number was 3 [url='carnival.php']Back[/url]"; $db->query("update users set credits=credits-5 where userid=$userid"); } if ($dck==8) { print "You picked up the duck with the number 8 on the bottom! Sorry the lucky number was 3 [url='carnival.php']Back[/url]"; $db->query("update users set credits=credits-5 where userid=$userid"); } if ($dck==9) { print "You picked up the duck with the number 9 on the bottom! Sorry the lucky number was 3 [url='carnival.php']Back[/url]"; $db->query("update users set credits=credits-5 where userid=$userid"); } if ($dck==10) { print "You picked up the duck with the number 10 on the bottom! Sorry the lucky number was 3 [url='carnival.php']Back[/url]"; $db->query("update users set credits=credits-5 where userid=$userid"); } } if ($_GET['action'] == 'strongman') { $mrk=rand(1,10); if ($mrk==1) { print "You pick up the hammer and swing! The little marker barely moves...pityful [url='carnival.php']Back[/url]"; $db->query("update users set credits=credits-5 where userid=$userid"); } if ($mrk==2) { print "You pick up the hammer and swing! The marker moves up a little to the spot that says ...weakling [url='carnival.php']Back[/url]"; $db->query("update users set credits=credits-5 where userid=$userid"); } if ($mrk==3) { print "You pick up the hammer and swing! The marker moves up a little to the spot that says ...wimpy [url='carnival.php']Back[/url]"; $db->query("update users set credits=credits-5 where userid=$userid"); } if ($mrk==4) { print "You pick up the hammer and swing! The marker moves up a little to the spot that says ...give it up [url='carnival.php']Back[/url]"; $db->query("update users set credits=credits-5 where userid=$userid"); } if ($mrk==5) { print "You pick up the hammer and swing! The marker moves up a little to the spot that says ...only halfway how sad [url='carnival.php']Back[/url]"; $db->query("update users set credits=credits-5 where userid=$userid"); } if ($mrk==6) { print "You pick up the hammer and swing! The marker moves up a little to the spot that says ...getting there [url='carnival.php']Back[/url]"; $db->query("update users set credits=credits-5 where userid=$userid"); } if ($mrk==7) { print "You pick up the hammer and swing! The marker moves up a little to the spot that says ...almost [url='carnival.php']Back[/url]"; $db->query("update users set credits=credits-5 where userid=$userid"); } if ($mrk==8) { print "You pick up the hammer and swing! The marker moves up a little to the spot that says ...Good Girl [url='carnival.php']Back[/url]"; $db->query("update users set credits=credits-5 where userid=$userid"); } if ($mrk==9) { print "You pick up the hammer and swing! The marker moves up a little to the spot that says ...Good boy [url='carnival.php']Back[/url]"; $db->query("update users set credits=credits-5 where userid=$userid"); } if ($mrk==10) { print "You pick up the hammer and swing! You hear the bell ring!!! You won 2 Demon Claws [url='carnival.php']Back[/url]"; $db->query("update users set credits=credits-5 where userid=$userid"); $db->query("update users set crystals=crystals+2 where userid=$userid"); } } if ($_GET['action'] == 'dunk') { print"staffmember is currently in the Dunking Booth "; $bal=rand(1,10); if ($bal==1) { print "You throw the ball and miss so staff taunts you [url='carnival.php']Back[/url]"; $db->query("update users set credits=credits-5 where userid=$userid"); } if ($bal==2) { print "You throw the ball and miss so staff taunts you [url='carnival.php']Back[/url]"; $db->query("update users set credits=credits-5 where userid=$userid"); } if ($bal==3) { print "You throw the ball and miss so staff taunts you [url='carnival.php']Back[/url]"; $db->query("update users set credits=credits-5 where userid=$userid"); } if ($bal==4) { print "You throw the ball and miss so staff taunts you [url='carnival.php']Back[/url]"; $db->query("update users set credits=credits-5 where userid=$userid"); } if ($bal==5) { print "You throw the ball and miss so staff taunts you [url='carnival.php']Back[/url]"; $db->query("update users set credits=credits-5 where userid=$userid"); } if ($bal==6) { print "You throw the ball and miss so staff taunts you [url='carnival.php']Back[/url]"; $db->query("update users set credits=credits-5 where userid=$userid"); } if ($bal==7) { print "You throw the ball and miss so staff taunts you [url='carnival.php']Back[/url]"; $db->query("update users set credits=credits-5 where userid=$userid"); } if ($bal==8) { print "You throw the ball and miss so staff taunts you [url='carnival.php']Back[/url]"; $db->query("update users set credits=credits-5 where userid=$userid"); } if ($bal==9) { print "You throw the ball and miss so staff taunts you [url='carnival.php']Back[/url]"; $db->query("update users set credits=credits-5 where userid=$userid"); } if ($bal==10) { print "You throw the ball and hit the target and staff goes for a dip!!! You won 5 crystals [url='carnival.php']Back[/url]"; $db->query("update users set credits=credits-5 where userid=$userid"); $db->query("update users set crystals=crystals+5 where userid=$userid"); } } ?> All this has been tested cheers jimmytubbs & webster2001 P.S pm one of us if any problems
-
Re: [v2]Casino[v2] PART 2 Replace slots.php <?php include "globals.php"; $tresder = (int) (rand(100,999)); $maxbet=$ir['level']*250; $_GET['tresde']=abs((int) $_GET['tresde']); if(($_SESSION['tresde'] == $_GET['tresde']) || $_GET['tresde']<100) { die ("Error, you cannot refresh or go back on the slots, please use a side link to go somewhere else. [url='slotsmachine.php?tresde=$tresder']> Back[/url]"); } $_SESSION['tresde']=$_GET['tresde']; $_GET['bet']=abs((int) $_GET['bet']); print "<h3>Slots</h3>"; if($_GET['bet']) { if($_GET['bet'] > $ir['credits']) { die("You are trying to bet more than you have. [url='slotsmachine.php?tresde=$tresder']> Back[/url]"); } else if($_GET['bet'] > $maxbet) { die("You have gone over the max bet. [url='slotsmachine.php?tresde=$tresder']> Back[/url]"); } $slot[1]=(int) rand(0,9); $slot[2]=(int) rand(0,9); $slot[3]=(int) rand(0,9); print "You place \${$_GET['bet']} into the slot and pull the pole. You see the numbers: [b]$slot[1] $slot[2] $slot[3][/b] You bet \${$_GET['bet']} "; if($slot[1]==$slot[2] && $slot[2]==$slot[3]) { $won=$_GET['bet']*26; $gain=$_GET['bet']*25; print "and won \$$won by lining up 3 numbers pocketing you \$$gain extra."; } else if ($slot[1]==$slot[2] || $slot[2]==$slot[3] || $slot[1]==$slot[3]) { $won=$_GET['bet']*3; $gain=$_GET['bet']*2; print "and won \$$won by lining up 2 numbers pocketing you \$$gain extra."; } else { $won=0; $gain=-$_GET['bet']; print "and lost it."; } $db->query("UPDATE users SET credits=credits+({$gain}) where userid=$userid"); $tresder = (int) (rand(100,999)); print " [url='slotsmachine.php?bet={$_GET[']> Another time, same bet.[/url] [url='slotsmachine.php?tresde=$tresder']> I'll continue, but I'm changing my bet.[/url] [url='explore.php']> Enough's enough, I'm off.[/url]"; } else { print "Ready to try your luck? Play today! The maximum bet for your level is \$$maxbet. <form action='slotsmachine.php' method='get'> Bet: \$<input type='text' name='bet' value='5' /> <input type='hidden' name='tresde' value='$tresder' /> <input type='submit' value='Play!!' /> </form>"; } $h->endpage(); ?> Replace roulette.php <?php include "globals.php"; $tresder = (int) (rand(100,999)); $maxbet=$ir['level']*150; $_GET['tresde']=abs((int) $_GET['tresde']); if(($_SESSION['tresde'] == $_GET['tresde']) || $_GET['tresde']<100) { die ("Error, you cannot refresh or go back on the slots, please use a side link to go somewhere else. [url='roulette.php?tresde=$tresder']> Back[/url]"); } $_SESSION['tresde']=$_GET['tresde']; $_GET['bet']=abs((int) $_GET['bet']); $_GET['number']=abs((int) $_GET['number']); print "<h3>Roulette: Pick a number between 0 - 36</h3>"; if($_GET['bet']) { if($_GET['bet'] > $ir['credits']) { die("You are trying to bet more than you have. [url='roulette.php?tresde=$tresder']> Back[/url]"); } else if($_GET['bet'] > $maxbet) { die("You have gone over the max bet. [url='roulette.php?tresde=$tresder']> Back[/url]"); } else if ($_GET['number'] > 36 or $_GET['number'] < 0 or $_GET['bet'] < 0) { die("The Numbers are only 0 - 36. [url='roulette.php?tresde=$tresder']> Back[/url]"); } $slot[1]=(int) rand(0,36); print "You place \${$_GET['bet']} into the slot and pull the pole. You see the number: [b]$slot[1][/b] You bet \${$_GET['bet']} "; if($slot[1]==$_GET['number']) { $won=$_GET['bet']*37; $gain=$_GET['bet']*36; print "and won \$won by matching the number u bet pocketing you \$gain extra."; } else { $won=0; $gain=-$_GET['bet']; print "and lost it."; } $db->query("UPDATE users SET credits=credits+({$gain}) where userid=$userid"); $tresder = (int) (rand(100,999)); print " [url='roulette.php?bet={$_GET[']> Another time, same bet.[/url] [url='roulette.php?tresde=$tresder']> I'll continue, but I'm changing my bet.[/url] [url='explore.php']> Enough's enough, I'm off.[/url]"; } else { print "Ready to try your luck? Play today! The maximum bet for your level is \$maxbet. <form action='roulette.php' method='get'> Bet: \$<input type='text' name='bet' value='5' /> Pick (0-36): <input type='text' name='number' value='18' /> <input type='hidden' name='tresde' value='$tresder' /> <input type='submit' value='Play!!' /> </form>"; } $h->endpage(); ?> Poker.php <?php include "globals.php"; print "<h3>Poker</h3>"; $ChipPrice=5; // Price Per Chip in Poker $times=350; //-- how many rounds the poker game should last if(!$_SESSION['chips']) { $chiptxt="no"; } else {$chiptext=$_SESSION['chips']; } if(!$_GET['action']) { if($_SESSION['game'] == 1) { die("You cannot visit here while in a game!"); } print "Welcome to the All-Stars Poker Room! This Place is either where you have your day or you don't! Warning: If you enter the game and decide to quit before finished, You lose all your chips You currently have $_SESSION[chips] chips! <table width=50% border=1 style=\"border:groove;\" bordercolor=orange> <tr><td> [url='poker.php?action=buychips']Buy Chips For Casino Credits[/url]</td></tr> <tr><td>[url='index.php']Back to Game[/url]</td></tr>"; if($_SESSION['chips'] > 0) { print "<tr><td> [url='poker.php?action=startgame']Start Your Game[/url]</td></tr><tr><td> [url='poker.php?action=sellchips']Sell Chips[/url]</td></tr>"; } print "</table>"; } else if($_GET['action'] == "game" and $_SESSION['game'] == 1) { if($_SESSION['times'] == 0) { print "You have used up all your turns and have finished your Poker game! [url='poker.php']Click here to visit home and use up all your chips on whatever you want[/url] "; $_SESSION['game']=0; $h->endpage(); exit(); } if($_SESSION['chips'] < 0) { print "You have used up all your chips and your broke! You were sent out of the poker room! [url='poker.php']Back[/url] "; $_SESSION['chips']=0; $_SESSION['game']=0; $h->endpage(); exit(); } print "[img=http://img454.imageshack.us/img454/2804/pokerroommo8.png] "; if($_POST['chips_use'] < $_SESSION['chips'] and $_POST['chips_use'] > 0 and $_POST['chips_use']) { $chances=rand(150,750); if($chances > 450) { $used=$_POST['chips_use']*2; print "I'm sorry you lost $used chips! <hr />"; $_SESSION['chips']=$_SESSION['chips']-$used; } else { $won=$_POST['chips_use']*5; print "Congrats, You won and were credited $used chips! <hr />"; $_SESSION['chips']=$_SESSION['chips']+$won; } } else if(isset($_GET['gambleall'])) { $chipam=(int) rand(1,$_SESSION['chips']); $chances=rand(150,750); if($chances > 350) { $used=$chipam*2; print "I'm sorry you lost $used chips! <hr />"; $_SESSION['chips']=$_SESSION['chips']-$used; } else { $won=$chipam*5; print "Congrats, You won and were credited $used chips! <hr />"; $_SESSION['chips']=$_SESSION['chips']+$won; } } print "[b]What do you want to do[/b] You have <font color=orange>$_SESSION[chips]</font> chips left You have <font color=green>\$".number_format($ir['credits'])."</font> credits left You have <font color=teal>\$".number_format($_SESSION['chips']*$ChipPrice)."</font> credits from chips <table width=50% border=1><tr><td>[b]Use My Turn[/b] <form action='poker.php?action=game' method='post'>Chips to Use :<input type='text' name='chips_use' value='$_SESSION[chips]'> <input type=submit value='-Take My Turn-'></form> </td></tr></table> [url='poker.php?action=game&gambleall']Gamble Random[/url] [url='poker.php?action=gamequit']Quit Game[/url] "; $_SESSION['game']=1; } else if($_GET['action'] == "gamequit" and $_SESSION['game'] == 1) { if($_GET['next'] == "confirmed") { $_SESSION['times']=0; $_SESSION['game']=0; print "You have left the tournament! [url='poker.php']Back[/url] [url='poker.php?action=gamequit&next=confirmed']Quit now![/url] [url='poker.php?action=game']No, stay in the poker room[/url] "; } } else if($_GET['action'] == "startgame") { if($_SESSION['game'] == 1) { print "You have already started the game [url='poker.php?action=game']Click here to go back to your table[/url] "; exit(); } if($_SESSION['chips'] == 0) { print "You have no chips, So you cannot enter! [url='poker.php?action=room']Back[/url] "; $h->endpage(); exit(); } print "You have started the game [url='poker.php?action=game']Click here to go to your table[/url] "; $_SESSION['game']=1; $_SESSION['times']=$times; } else if($_GET['action'] == "sellchips") { if($_SESSION['game'] == 1) { die("You cannot buy chips while you are in a game"); } if($_SESSION['chips'] == 0) { print "You don't have any chips to sell dude! [url='poker.php']Back[/url] "; } else if($_POST['chips'] > 0) { if($_POST['chips'] > $_SESSION['chips']) { print "I'm sorry you don't have that many chips in your command [url='poker.php']Back[/url] "; } else { $cashtopay=$_POST['chips']*$ChipPrice; $db->query("UPDATE users SET credits=credits+$cashtopay WHERE userid=$userid"); $_SESSION['chips']=$_SESSION['chips']-$_POST['chips']; print "You have sold $_POST[chips] chip's and you have been paid \$$cashtopay! [url='poker.php']Back[/url] "; } } else { if($_POST['chips'] < 0) { if($_SESSION['abused'] == "ONCEA") { print "<font color=red>Thats it you've cheated twice, I'll just put you in hospital for 50 minutes and you get can lost cause i get all your chips, Your toasted fool!</font> "; $db->query("UPDATE users SET hospital=50, hospreason='Tryed to Cheat at the Poker House' WHERE userid=$userid"); $_SESSION['chips']=0; $_SESSION['abused']=0; $h->endpage(); exit(); } print "<font color=red>Thats it, Cheat One more time and your toasted!</font> "; $_SESSION['abused']="ONCEA"; $h->endpage(); exit(); } print "You currently have $_SESSION[chips] You can sell <form action='poker.php?action=sellchips' method='post'> <table width=90% border=1><tr><th>Chips</th><td><input type='text' name='chips' value='$_SESSION[chips]'></td></tr> <tr><th>PPC [size="1"](Price Per Chip)[/size]</th><td>\$".number_format($ChipPrice)."</td></tr> <tr><td colspan=2><input type=submit value='Sell Chips'></td></tr> </table></form>"; } } else if($_GET['action'] == "buychips") { if($_SESSION['game'] == 1) { die("You cannot buy chips while you are in a game"); } if($_POST['chips']> 0) { $POKER['chipprice']=$_POST['chips']*$ChipPrice; if($_POST['chipprice'] > $_POST['credits']) { print "I'm sorry you don't have enough credits to buy $_POST[chips] chips [url='poker.php']Back[/url] "; } else { $new['chips']=$_SESSION['chips']+$_POST['chips']; $_SESSION['chips']=$new['chips']; $db->query("UPDATE users SET credits=credits-$POKER[chipprice] WHERE userid=$userid"); print "You bought <font color=orange>$_POST[chips]</font> chips for <font color=green>\$".number_format($POKER[chipprice])."</font>! You must not logout or you will lose all your chips, These chips are only allowed now during your session. [url='poker.php']Back[/url] "; } } else { if($_POST['chips'] < 0) { if($_SESSION['abused'] == "ONCE") { print "<font color=red>Thats it you've cheated twice, I'll just put you in hospital for 50 minutes and you get can lost cause i get all your chips, Your toasted fool!</font> "; $db->query("UPDATE users SET hospital=50, hospreason='Tryed to Cheat at the Poker House' WHERE userid=$userid"); $_SESSION['chips']=0; $_SESSION['abused']=0; $h->endpage(); exit(); } print "<font color=red>Thats it, Cheat One more time and your toasted!</font> "; $_SESSION['abused']="ONCE"; $h->endpage(); exit(); } print "[b]Buy Chips[/b] <form action='poker.php?action=buychips' method='post' name='buychips'> <table width=50% border=1><tr><th>Chips</th><td> <input type='text' name='chips' size=6 maxlength=4></td></tr> <tr><td colspan=2> </td></tr> <tr><th>PPC [size="1"](Price Per Chip Casino Credits)[/size]</th><td>\$".number_format($ChipPrice)."</td></tr> <tr><td colspan=2><input type=submit value='-Purchase Chips-'></td></tr> </table></form>"; } } else { print "ERROR! You have selected an invalid function, Please check back or Go through the side menu [url='poker.php']Back[/url] "; } $h->endpage(); ?> carnival.php <?php include "globals.php"; if($ir['jail']>0 || $ir['hospital']>0) die("<center>You can not move around right now."); if(!$_GET['buy']) { print "<h2><center>Welcome to the Carnival. You currently have {$ir['credits']} credits do you want to buy some?</h2></center>"; print "<center>What would you like to do? "; print"<table width=80% class=h border=1><tr><th> All these games require casino credits</th></tr> <tr><td background='bullet.gif'><center>[url='casino.php?action=buy500']-Buy 500 credits for $1000-</center>[/url] </td></tr> <tr><td background=bullet.gif><center>[url='carnigames.php?action=balloon']- Balloon Dart Game - 5 credits per dart-</center>[/url] </tr></td> <tr><td background=bullet.gif><center>[url='carnigames.php?action=duck']-Lucky Ducks - 5 credits per duck-</center>[/url] </td></tr> <tr><td background=bullet.gif><center>[url='carnigames.php?action=strongman']-Strongman Game - 5 credits per swing-</center>[/url] </td></tr> <tr><td background=bullet.gif><center>[url='carnigames.php?action=dunk']-Dunking Booth - 5 credits per throw-</center>[/url] </td></tr></table>"; } ?>
-
Casino made by me and webster 2001 casino.php <?php include 'globals.php'; print "<h3><u>Casino</u></h3>"; { switch($_GET['action']) { case 'getmore': deposit(); break; case 'get100': get100(); break; case 'get200': get200(); break; case 'get500': get100(); break; case 'getaccount': getaccount(); break; case 'pacman': pacman(); break; default : index(); break; } } function index() { global $db, $ir,$c,$userid,$h; if($ir['credits']<0) { print "<a href='casino.php?action=getaccount'>Get a Casino Credits Account Here!"; } else { print " <center><table width=75%> <tr><th width=100% background='tableup.jpg'><font color=white>Casino</font></th></tr> <tr> <td width=100% background='bullet.gif'><center>[img=casino1.png]</center></td></tr> <tr> <th background='tableup.jpg'><font color=white> Casino Credits</font></th></tr> <tr><td background='bullet.gif'><center>[b]<font color=white>You currently have \${$ir['credits']} Casino Credits.[/b] [url='casino.php?action=get100']<font color=gold>Get 100 credits for \$200[/url]</font> [url='casino.php?action=get200']<font color=gold>Get 200 credits for \$400[/url]</font> [url='casino.php?action=get500']<font color=gold>Get 500 credits for \$1,000[/url]</font></center></td></tr> <tr> <td background='bullet.gif'><center><font color=white> You can spend these on Casino games and will win more credits if you win the game!</center></td></tr> <tr> <th background='tableup.jpg'> <font color=white> Casino Games </font></th></tr> <tr><td background='bullet.gif'><center> <table width=50%> <tr><td width=50%>[url='lucky.php']<font color=white>Lucky Boxes [/url]</td><td width=50>[url='poker.php']Poker[/url]</td></tr> <tr><td width=50%>[url="slotsmachine.php?tresde=676765><font"]Slots Matchine[/url]</td><td width=50><a href='casino.php?action=pacman'><font color=white>Pac-Man</td></tr> <tr><td width=50%>[url="roulette.php?tresde=676765><font"]Roulette[/url]</td><td width=50>[url="carnival.php><font"]Go to the Carnival[/url]</font></td></tr> </center></td></tr></table> </center> "; } } function get100() { global $db, $ir,$c,$userid,$h; if($ir['money']>199) { $db->query("UPDATE users SET money=money-200,credits=credits+100 WHERE userid=$userid"); print " You have just brought 100 Casino Credits for \$200! You now have [b]{$ir['credits']}[/b] Casino Credits. You now have {$ir['money']} Money[/b]"; } else if($ir['money']<200) { print "You do not have enough money! [url='casino.php']Go back to the Casino![/url]"; } } function getaccount() { if($ir['credits']==0) { global $db, $ir,$c,$userid,$h; $db->query("UPDATE users SET credits=credits+100 WHERE userid=$userid"); print "<font color=red size=3>[b]Congratulations! You have just brought a Casino Credits account for \$2,000 [url='casino.php']Click here to start using your new Casino Account[/url]"; } else if($ir['money']==0 ) { print "You do not have enough money! [url='casino.php']Go back to the Casino![/url]"; } } function get200() { global $db, $ir,$c,$userid,$h; if($ir['money']==400) { $db->query("UPDATE users SET money=money-400,credits=credits+200 WHERE userid=$userid"); print " You have just brought 200 Casino Credits for \$400! You now have [b]{$ir['credits']}[/b] Casino Credits. You now have {$ir['money']} Money[/b]"; } else if($ir['money']==0) { print "You do not have enough money! [url='casino.php']Go back to the Casino![/url]"; } } function get500() { global $db, $ir,$c,$userid,$h; if($ir['money']>199) { global $db, $ir,$c,$userid,$h; $db->query("UPDATE users SET money=money-1000,credits=credits+500 WHERE userid=$userid"); print " You have just brought 500 Casino Credits for \$1,000! You now have [b]{$ir['credits']}[/b] Casino Credits. You now have {$ir['money']} Money[/b]"; } else if($ir['money']>0) { print "You do not have enough money! [url='casino.php']Go back to the Casino![/url]"; } } function pacman() { print "[b] You paid 5 Credits and get to play Pac-Man as many times as you like![/b] "; global $db, $ir,$c,$userid,$h; print"<OBJECT classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0' width='470' height='470'> <PARAM name=quality value=high> <PARAM name='SRC' value='http://www.zemnetmedia.com/games/pacman/pacmangame.swf'> <EMBED src='http://www.zemnetmedia.com/games/pacman/pacmangame.swf' width='470' height='470' quality=high pluginspage='http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash' type='application/x-shockwave-flash'> </EMBED></object> [b]These are the shortcut keys: <font color=red>M</font> - Turn music On/Off <font color=red>P</font> - Pause/ Unpause the game <font color=red>Q</font> - Quit the Game <font color=red>L</font> - Low quality on/ off"; } $h->endpage(); ?> Add this to PHP my admin ALTER TABLE `users` ADD `credits` int(11) NOT NULL default '0'; In header find Then add below Replace lucky.php with this <?php include "globals.php"; print "<h3>Lucky Boxes</h3><hr />"; if($_GET['open']) { if($ir['boxes_opened'] >= 5) { die("Sorry, you have already opened 5 boxes today. Come back tomorrow."); } if($ir['credits'] < 100) { die("Sorry, it costs \100 credits to open a box. Come back when you have enough."); } $num=rand(1, 5); $db->query("UPDATE users SET boxes_opened=boxes_opened+1, credits=credits-1000 WHERE userid=$userid"); $ir['credits']-=100; switch($num) { case 1: $tokens=rand(1,5); print "First outcome here (gained {$tokens} crystals)"; $db->query("UPDATE users SET crystals=crystals+{$tokens} WHERE userid={$userid}"); break; case 2: $money=rand(330, 3300); print "Second outcome here (gained \${$money})"; $db->query("UPDATE users SET credits=credits+{$money} WHERE userid={$userid}"); break; case 3: $stole=min(rand($ir['credits']/10, $ir['credits']/5), 10); print "Third outcome here (lost \${$stole})"; $db->query("UPDATE users SET credits=credits-{$stole} WHERE userid={$userid}"); break; case 4: print "Fourth outcome here (nothing)"; break; case 5: print "Fifth outcome here (nothing)"; break; } print "<hr /> [url='lucky.php?open=1']Open Another[/url] [url='explore.php']Back to Town[/url]"; } else { print "A man comes up to you and whispers, "I have magical boxes, I let you open one for \100 credits. You can open a maximum of 5 a day. Deal or no deal?<hr /> [url='lucky.php?open=1']Okay, open one.[/url] [url='explore.php']No thanks.[/url]"; } $h->endpage(); ?>
-
Re: [MOD] Voice Mail ? Good mod m8 :-)
-
Re: [V1] Chests [V1] V2 conversion <?php /*----------------------------------------------------- -- Made By Psychotic -- Free Mod -- chests.php -----------------------------------------------------*/ include"globals.php"; if($ir['money'] == 0) { die("<font color='red'><center> You Cant Play! You Have No Money!</font>"); } if($ir['keys'] == 0) { die("<font color='red'><center> You Cant Play! You Have No Keys!</font>"); } print "<table width=100% border=0><tr><th><center><h3>[img=images/chest1.png]</h3></center></th></tr> <tr><th>"; $_GET['number']=(int) $_GET['number']; if($_GET['number']) { $earn=round($ir['money']*($ir['level']+1)/100); $lose=round($ir['money']*($ir['level']+1)/105); if($earn > 100000 or $earn < 1) { $earn=100; } if($lose > 100000 or $lose < 1) { $lose=80; } if($_GET['number'] != 1 and $_GET['number'] != 2 and $_GET['number'] != 3) { die("Those number's don't exist."); } $rand=rand(1,3); if($_GET['number'] == $rand) { print "You put the key in the chest, they key did'nt snap and the lock opened <font color=lime>Congratulations you found \$$earn And 1 key.</font> "; } else { print "You put the key in the chest, the key snapped in the hole <font color=red>You lost a key.</font> "; } print "<table width=70% border=0><tr><th>"; if($_GET['number'] == 1) { if($rand == 1) { print "[img=Images/chest2.png]"; } else { print "[img=Images/chest.png]"; } } else { print "[img=Images/chest.png]"; } print "</th><th>"; if($_GET['number'] == 2) { if($rand == 2) { print "[img=Images/chest2.png]"; } else { print "[img=Images/chest.png]"; } } else { print "[img=Images/chest.png]"; } print "</th><th>"; if($_GET['number'] == 3) { if($rand == 3) { print "[img=Images/chest2.png]"; } else { print "[img=Images/chest.png]"; } } else { print "[img=Images/chest.png]"; } print "</th></tr></table>"; print " You are being redirected back</font> <meta http-equiv='refresh' content='3; url=chests.php'> "; //queries, die if($_GET['number'] == $rand) { $db->query("UPDATE users SET money=money+{$earn} WHERE userid=$userid",$c); $db->query("UPDATE users SET chestsincome=chestsincome+{$earn} WHERE userid=$userid",$c); $db->query("UPDATE `users` SET `keys` = `keys` + '1' WHERE `userid` = '$ir[userid]'"); } else { $db->query("UPDATE `users` SET `keys` = `keys` - '1' WHERE `userid` = '$ir[userid]'"); } } else { $earn=round($ir['money']*($ir['level']+1)/100); $lose=round($ir['money']*($ir['level']+2)/105); if($earn > 100000 or $earn < 1) { $earn=100; } if($lose > 100000 or $lose < 1) { $lose=80; } print "You walk up to three chests, you find a key on the floor, its old and will probably only one try. If you get the right chest you will pocket whats inside [b]\$$earn[/b] But if you don't, You will lose a key, You have [{$ir['keys']}] keys Left[/b] <table width=70% border=0><tr><th> [url='chests.php?number=1'][img=Images/chest.png][/url] </th><th> [url='chests.php?number=2'][img=Images/chest.png][/url] </th><th> [url='chests.php?number=3'][img=Images/chest.png][/url] </th></tr></table> "; } print "</th></tr></table>"; $h->endpage(); ?> All the rest is the same as above ^^
-
[mccode v2] BBCode Gradient Text Generator
jimmytubbs replied to shrek1609's topic in Free Modifications
Re: BBCode Gradient Text Generator --- FREE Mod great mod! :-D -
Re: crystal bank OMG v2 well ill give you credit as ur a newbie but [v2] look for include "globals.php"; [v1] look for require "global_func.php"; It does not have to be include "globals.php"; it could be require "globals.php"; for V2 Also it does not have to be require "global_func.php"; it could be include "global_func.php"; Include just means include it if the files exists whereas require means the file has got to exist otherwise it will not display Actually The require() function is identical to include(), except that it handles errors differently. The include() function generates a warning (but the script will continue execution) while the require() function generates a fatal error (and the script execution will stop after the error). If you include a file with the include() function and an error occurs, you might get an error message
-
Re: crystal bank OMG v2 well ill give you credit as ur a newbie but [v2] look for include "globals.php"; [v1] look for require "global_func.php";
-
Hi a quick mod as i was bored lol Call the file prize.php <?php include"globals.php"; print " <table width=80% cellspacing=1 class='table'> <tr><th> [url='prize.php']- Click Here to Get a prize!!!!!! -[/url]</th></tr>"; $db->query("UPDATE users SET money=money-100,energy=energy-1,brave=brave-1 WHERE userid=$userid"); ?> All codes are made by me free mod cheers jimmytubbs
-
Re: Race Logs V2 i needed this cheers :-)
-
Hi i think this would help some other people as well can some actually post a Mysql injection protection from hackers that actually works please cheers jimmytubbs
-
Re: NEED HELP!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! lol told you no one will help you cus your title is spaming change it and some people might help :roll:
-
Re: Slight Problem! Need Help <?phpinclude "globals.php";$_GET['ID'] = abs((int) $_GET['ID']);//Foodif(!$_GET['ID']){print "Invalid use of file";}else{$i=$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_id={$_GET['ID']} AND iv.inv_userid=$userid");if(mysql_num_rows($i) == 0){print "Invalid item ID";}else{$r=$db->fetch_row($i);if(!$r['effect1_on'] && !$r['effect2_on'] && !$r['effect3_on']){ die("Sorry, this item cannot be used as it has no effect.");}if($r['effect1_on']){ $einfo=unserialize($r['effect1']); if($einfo['inc_type']=="percent") { if(in_array($einfo['stat'],array('energy','will','brave','hp'))) { $inc=round($ir['max'.$einfo['stat']]/100*$einfo['inc_amount']); } else { $inc=round($ir[$einfo['stat']]/100*$einfo['inc_amount']); } } else { $inc=$einfo['inc_amount']; } if($einfo['dir']=="pos") { if(in_array($einfo['stat'],array('energy','will','brave','hp'))) { $ir[$einfo['stat']]=min($ir[$einfo['stat']]+$inc, $ir['max'.$einfo['stat']]); } else { $ir[$einfo['stat']]+=$inc; } } else { $ir[$einfo['stat']]=max($ir[$einfo['stat']]-$inc, 0); } $upd=$ir[$einfo['stat']]; if(in_array($einfo['stat'], array('strength', 'agility', 'guard', 'labour', 'IQ'))) { $db->query("UPDATE `userstats` SET {$einfo['stat']} = '{$upd}' WHERE userid={$userid}"); } else { $db->query("UPDATE `users` SET {$einfo['stat']} = '{$upd}' WHERE userid={$userid}"); }}if($r['effect2_on']){ $einfo=unserialize($r['effect2']); if($einfo['inc_type']=="percent") { if(in_array($einfo['stat'],array('energy','will','brave','hp'))) { $inc=round($ir['max'.$einfo['stat']]/100*$einfo['inc_amount']); } else { $inc=round($ir[$einfo['stat']]/100*$einfo['inc_amount']); } } else { $inc=$einfo['inc_amount']; } if($einfo['dir']=="pos") { if(in_array($einfo['stat'],array('energy','will','brave','hp'))) { $ir[$einfo['stat']]=min($ir[$einfo['stat']]+$inc, $ir['max'.$einfo['stat']]); } else { $ir[$einfo['stat']]+=$inc; } } else { $ir[$einfo['stat']]=max($ir[$einfo['stat']]-$inc, 0); } $upd=$ir[$einfo['stat']]; if(in_array($einfo['stat'], array('strength', 'agility', 'guard', 'labour', 'IQ'))) { $db->query("UPDATE `userstats` SET {$einfo['stat']} = '{$upd}' WHERE userid={$userid}"); } else { $db->query("UPDATE `users` SET {$einfo['stat']} = '{$upd}' WHERE userid={$userid}"); }}if($r['effect3_on']){ $einfo=unserialize($r['effect3']); if($einfo['inc_type']=="percent") { if(in_array($einfo['stat'],array('energy','will','brave','hp'))) { $inc=round($ir['max'.$einfo['stat']]/100*$einfo['inc_amount']); } else { $inc=round($ir[$einfo['stat']]/100*$einfo['inc_amount']); } } else { $inc=$einfo['inc_amount']; } if($einfo['dir']=="pos") { if(in_array($einfo['stat'],array('energy','will','brave','hp'))) { $ir[$einfo['stat']]=min($ir[$einfo['stat']]+$inc, $ir['max'.$einfo['stat']]); } else { $ir[$einfo['stat']]+=$inc; } } else { $ir[$einfo['stat']]=max($ir[$einfo['stat']]-$inc, 0); } $upd=$ir[$einfo['stat']]; if(in_array($einfo['stat'], array('strength', 'agility', 'guard', 'labour', 'IQ'))) { $db->query("UPDATE `userstats` SET {$einfo['stat']} = '{$upd}' WHERE userid={$userid}"); } else { $db->query("UPDATE `users` SET {$einfo['stat']} = '{$upd}' WHERE userid={$userid}"); }}print "{$r['itmname']} used successfully!";}}$h->endpage();?> soz if it doesnt work
-
Re: Mining V2 Converted omg thats easy change mysql_ to $db-> and _array to _row ( thats for all the script advice use notepad and ctrl + H )
-
Re: NEED HELP!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! no one will help you if you spam
-
Re: HElP! and that helps me how? :?
-
EDITED: hi on my newspaper i get this and here the code function fetch_single($result=0) { if(!$result) { $result=$this->result; } return mysql_result($result, 0, 0); } cheers jimmytubbs p.s i am trying to learn how to code
-
Re: please help me soz now it doesnt come up with anything :? :|
-
hi i want make it show your gender (picture) by your name ive tried it but it doesnt work if($ir['gender']=male) { $u = "<font color=>{$ir['username']}</font>"; $m="[img=male.gif]"; } else { if($ir['gender']=female) { $u = "<font color=>{$ir['username']}</font>"; "$f='[img=female.gif]'"; } } and i have the variables by name as well im using v2 if that helps :? cheers jimmytubbs:?