
Karlos
Members-
Posts
951 -
Joined
-
Last visited
Never
Content Type
Profiles
Forums
Events
Everything posted by Karlos
-
Re: Cookie Shop My Second MOD!! WOOT Does That Mean Mines More Advanced Cause Snikos Is More Basic :-P
-
[mccode] Playable ZX SPECTRUM JAVA EMULATOR comes with loads of games
Karlos replied to Uridium's topic in Free Modifications
Re: [MOD] Playable ZX SPECTRUM JAVA EMULATOR comes with loads of games So it does the same job i guess :wink: -
[mccode] Playable ZX SPECTRUM JAVA EMULATOR comes with loads of games
Karlos replied to Uridium's topic in Free Modifications
Re: [MOD] Playable ZX SPECTRUM JAVA EMULATOR comes with loads of games Shouldn't It Be <?php include("globals.php"); Or Don't It Matter :? :wink: -
Re: Bar23 [V2] why does every mod you two need to argue :? P.S Soz i aint been replying, just got on in 5days :wink:
-
Re: [V2] Car Racing nopee :x
-
Re: Bar23 [V2] Thanks, Kyle Helped Me :wink: Thanks Kyle
-
Re: Bar23 [V2] Kyle Helped Me Recode This So Here It Is <?php /* Bar23 Mod Made By Karlos Made For Mccode V2 Date Made: 20 - Sep - 2008 Fixed Up By Kyle */ include("globals.php"); if(!$_GET['spend']) { echo ' Welcome To The Famous Bar23 [i]Bar23 Was Established In 2008 For The Needy Population Of '.$set['game_name'].'[/i] [i]These Are Not Items, These Add On To Your Bars Sratight Away.[/i] [b]Lunches[/b] <table border="1"> <tr> <th>Lunch</th> <th>Cost</th> <th>Buy</th> </tr> <tr> <td>Curry</td> <td>$250</td> <td>[url="?spend=1"]Buy[/url]</td> </tr> <tr> <td>Fish</td> <td>$400</td> <td>[url="?spend=2"]Buy[/url]</td> </tr> <tr> <td>Pizza</td> <td>$700</td> <td>[url="?spend=3"]Buy[/url]</td> </tr> <tr> <td>Roast Dinner</td> <td>$1000</td> <td>[url="?spend=4"]Buy[/url]</td> </tr> <tr> <td>Salad</td> <td>$1500</td> <td>[url="?spend=5"]Buy[/url]</td> </tr> <table> [b]Alcohol[/b] <table border="1"> <tr> <th>Lunch</th> <th>Cost</th> <th>Buy</th> </tr> <tr> <td>Carlsberg</td> <td>$250</td> <td>[url="?spend=6"]Buy[/url]</td> </tr> <tr> <td>Jack Daniels</td> <td>$400</td> <td>[url="?spend=7"]Buy[/url]</td> </tr> <tr> <td>Moonshine</td> <td>$700</td> <td>[url="?spend=8"]Buy[/url]</td> </tr> <tr> <td>Southern Comfort</td> <td>$1000</td> <td>[url="?spend=9"]Buy[/url]</td> </tr> <tr> <td>Vodka</td> <td>$1500</td> <td>[url="?spend=10"]Buy[/url]</td> </tr> </table>'; } else if($_GET['spend'] == 1) { if($ir['money'] < 249) { echo 'You don\'t have enough money to buy the Curry, you need $250!'; } else { $sql = sprintf("UPDATE users SET money=money-250, energy=energy+3 WHERE userid=%s", $userid); mysql_query($sql); echo 'Congratulations, you bought a Curry for $250! [url="bar23.php"]Back to Shop[/url] '; } } else if($_GET['spend'] == 2) { if($ir['money'] <399) { echo 'You don\'t have enough money to buy the Fish, you need $400!'; } else { $sql = sprintf("UPDATE users SET money=money-400, energy=energy+5 WHERE userid=%s", $userid); mysql_query($sql); echo 'Congratulations, you bought a Fish for $400! [url="bar23.php"]Back to Shop[/url] '; } } else if($_GET['spend'] == 3) { if($ir['money'] <699) { echo 'You don\'t have enough money to buy the Pizza, you need $700!'; } else { $sql = sprintf("UPDATE users SET money=money-700, energy=energy+10 WHERE userid=%s", $userid); mysql_query($sql); echo 'Congratulations, you bought a Pizza for $700! [url="bar23.php"]Back to Shop[/url] '; } } else if($_GET['spend'] == 4) { if($ir['money'] < 999) { echo 'You don\'t have enough money to buy the Roast Dinner, you need $1000!'; } else { $sql = sprintf("UPDATE users SET money=money-1000, energy=energy+13 WHERE userid=%s", $userid); mysql_query($sql); echo 'Congratulations, you bought a Roast Dinner for $1000! [url="bar23.php"]Back to Shop[/url] '; } } else if($_GET['spend'] == 5) { if($ir['money'] < 1499) { echo 'You don\'t have enough money to buy the Salad, you need $1500!'; } else { $sql = sprintf("UPDATE users SET money=money-250, energy=energy+18 WHERE userid=%s", $userid); mysql_query($sql); echo 'Congratulations, you bought a Salad for $1500! [url="bar23.php"]Back to Shop[/url] '; } } else if($_GET['spend'] == 6) { if($ir['money'] < 249) { echo 'You don\'t have enough money to buy the Carlsberg, you need $250!'; } else { $sql = sprintf("UPDATE users SET money=money-250, brave=brave+3 WHERE userid=%s", $userid); mysql_query($sql); echo 'Congratulations, you bought a Carlsberg for $250! [url="bar23.php"]Back to Shop[/url] '; } } else if($_GET['spend'] == 7) { if($ir['money'] <399) { echo 'You don\'t have enough money to buy the Jack Daniels, you need $400!'; } else { $sql = sprintf("UPDATE users SET money=money-400, brave=brave+5 WHERE userid=%s", $userid); mysql_query($sql); echo 'Congratulations, you bought a Jack Daniels for $400! [url="bar23.php"]Back to Shop[/url] '; } } else if($_GET['spend'] == 8) { if($ir['money'] <699) { echo 'You don\'t have enough money to buy the Moonshine, you need $700!'; } else { $sql = sprintf("UPDATE users SET money=money-700, brave=brave+10 WHERE userid=%s", $userid); mysql_query($sql); echo 'Congratulations, you bought a Moonshine for $700! [url="bar23.php"]Back to Shop[/url] '; } } else if($_GET['spend'] == 9) { if($ir['money'] < 999) { echo 'You don\'t have enough money to buy the Southern Comfort, you need $1000!'; } else { $sql = sprintf("UPDATE users SET money=money-1000, brave=brave+13 WHERE userid=%s", $userid); mysql_query($sql); echo 'Congratulations, you bought a Southern Comfort for $1000! [url="bar23.php"]Back to Shop[/url] '; } } else if($_GET['spend'] == 10) { if($ir['money'] < 1499) { echo 'You don\'t have enough money to buy the Vodka, you need $1500!'; } else { $sql = sprintf("UPDATE users SET money=money-250, brave=brave+18 WHERE userid=%s", $userid); mysql_query($sql); echo 'Congratulations, you bought a Vodka for $1500! [url="bar23.php"]Back to Shop[/url] '; } } $h->endpage(); ?>
-
Re: [V2] Car Racing Well By The Way Theses Codes Look You Can't.... I Might Make One I Dunno :|
-
Re: Bar23 [V2] I Noticed I Coded Tables Wrong -.-" anyway all fixed
-
Re: URL Image I Would Be The Same For All Websites.....:wink: I Think Im Right :-P Easier Way To Do it Is Find <title> What Ever You Things Called </title> Add Below <link rel="shortcut icon" href="LINK FOR PICTURE"> Obviously Change LINK FOR PICTURE To Yours, Im Jst Saying As Some People Aren't That Intelligent
-
Re: Another New Mailbox :-o
-
Re: Bar23 [V2] Thanks
-
Re: help wanted afetr you got them up run installer.php :wink:
-
Re: Another New Mailbox get the pictures save them upload to whatever you use e.g photobucket and use [/img ] tags Take Space Out Tho :wink:
-
Re: Bar23 [V2] thanks but i can sat i made this 100% from scratch :-D im not the best coder but im still learning
-
Re: Another New Mailbox Screenshots? Always Nice To Have Screenys :-D
-
Ive Seen Games that Make Items For Food And Drinks So I Decided To Make A Shop That Adds Them On Straight Away Call It bar23.php <?php // Bar23 Mod // Made By Karlos // Made For Mccode V2 // Date Made: 20 - Sep - 2008 include "globals.php" print "Welcome To The Famous Bar23 [i]Bar23 Was Established In 2008 For The Needy Population Of {$set['game_name']}[/i] [i]These Are Not Items, These Add On To Your Bars Sratight Away.[/i] [b]Lunches[/b] <table border=1><th>Lunch</th><th>Cost</th><th>Buy</th><tr> <tr><td>Curry</td><td>$250</td><td>[url='bar23.php?spend=1']Buy[/url]</td> <tr><td>Fish</td><td>$400</td><td>[url='bar23.php?spend=2']Buy[/url]</td> <tr><td>Pizza</td><td>$700</td><td>[url='bar23.php?spend=3']Buy[/url]</td> <tr><td>Roast Dinner</td><td>$1000</td><td>[url='bar23.php?spend=4']Buy[/url]</td> <tr><td>Salad</td>td>$1500</td><td>[url='bar23.php?spend=5']Buy[/url]</td><table> [b]Alcohol[/b] <table border=1><th>Lunch</th><th>Cost</th><th>Buy</th><tr> <tr><td>Carlsberg</td><td>$250</td><td>[url='bar23.php?spend=6']Buy[/url]</td> <tr><td>Jack Daniels</td><td>$400</td><td>[url='bar23.php?spend=7']Buy[/url]</td> <tr><td>Moonshine</td><td>$700</td><td>[url='bar23.php?spend=8']Buy[/url]</td> <tr><td>Southern Comfort</td><td>$1000</td><td>[url='bar23.php?spend=9']Buy[/url]</td> <tr><td>Vodka</td>td>$1500</td><td>[url='bar23.php?spend=10']Buy[/url]</td><table>"; else { if($_GET['spend'] == '1') { if($ir['money'] <249) { print "You don't have enough money to buy the Curry, you need $250!"; } else { $sql = sprintf("UPDATE users SET money=money-250, energy=energy+3 WHERE userid=%s", $userid); mysql_query($sql); print "Congratulations, you bought a Curry for $250! [url='bar23.php']Back to Shop[/url] "; } } else { if($_GET['spend'] == '2') { if($ir['money'] <399) { print "You don't have enough money to buy the Fish, you need $400!"; } else { $sql = sprintf("UPDATE users SET money=money-400, energy=energy+5 WHERE userid=%s", $userid); mysql_query($sql); print "Congratulations, you bought a Fish for $400! [url='bar23.php']Back to Shop[/url] "; } } else { if($_GET['spend'] == '3') { if($ir['money'] <699) { print "You don't have enough money to buy the Pizza, you need $700!"; } else { $sql = sprintf("UPDATE users SET money=money-700, energy=energy+10 WHERE userid=%s", $userid); mysql_query($sql); print "Congratulations, you bought a Pizza for $700! [url='bar23.php']Back to Shop[/url] "; } } else { if($_GET['spend'] == '4') { if($ir['money'] <999) { print "You don't have enough money to buy the Roast Dinner, you need $1000!"; } else { $sql = sprintf("UPDATE users SET money=money-1000, energy=energy+13 WHERE userid=%s", $userid); mysql_query($sql); print "Congratulations, you bought a Roast Dinner for $1000! [url='bar23.php']Back to Shop[/url] "; } } else { if($_GET['spend'] == '5') { if($ir['money'] <1499) { print "You don't have enough money to buy the Salad, you need $1500!"; } else { $sql = sprintf("UPDATE users SET money=money-1500, energy=energy+18 WHERE userid=%s", $userid); mysql_query($sql); print "Congratulations, you bought a Salad for $1500! [url='bar23.php']Back to Shop[/url] "; else { if($_GET['spend'] == '6') { if($ir['money'] <249) { print "You don't have enough money to buy the Carlsberg, you need $250!"; } else { $sql = sprintf("UPDATE users SET money=money-250, brave=brave+3 WHERE userid=%s", $userid); mysql_query($sql); print "Congratulations, you bought a Carlsberg for $250! [url='bar23.php']Back to Shop[/url] "; } } else { if($_GET['spend'] == '7') { if($ir['money'] <399) { print "You don't have enough money to buy the Jack Daniels, you need $400!"; } else { $sql = sprintf("UPDATE users SET money=money-400, brave=brave+5 WHERE userid=%s", $userid); mysql_query($sql); print "Congratulations, you bought a Jack Daniels for $400! [url='bar23.php']Back to Shop[/url] "; } } else { if($_GET['spend'] == '8') { if($ir['money'] <699) { print "You don't have enough money to buy the Moonshine, you need $700!"; } else { $sql = sprintf("UPDATE users SET money=money-700, brave=brave+10 WHERE userid=%s", $userid); mysql_query($sql); print "Congratulations, you bought a Moonshine for $700! [url='bar23.php']Back to Shop[/url] "; } } else { if($_GET['spend'] == '9') { if($ir['money'] <999) { print "You don't have enough money to buy the Southern Comfort, you need $1000!"; } else { $sql = sprintf("UPDATE users SET money=money-1000, brave=brave+13 WHERE userid=%s", $userid); mysql_query($sql); print "Congratulations, you bought a Southern Comfort for $1000! [url='bar23.php']Back to Shop[/url] "; } } else { if($_GET['spend'] == '10') { if($ir['money'] <1499) { print "You don't have enough money to buy the Vodka, you need $1500!"; } else { $sql = sprintf("UPDATE users SET money=money-1500, brave=brave+18 WHERE userid=%s", $userid); mysql_query($sql); print "Congratulations, you bought a Vodka for $1500! [url='bar23.php']Back to Shop[/url] "; } } } } } } } } } } } } } } ?> Notice: Not Tested But Should Work EDIT: Removed An Unneeded }
-
[mccode v2] Enhanced Hall of fame COMPLETED!
Karlos replied to Haunted Dawg's topic in Free Modifications
Re: Enhanced Hall of fame [v2] I gave him the ideas of cartagorys :-D -
Re: [V2] Car Racing Here It Is With Security And The Missing php Again carracing.php <?php include "globals.php"; if($ir['car'] == 0) { die("Haha, you cannot race on your feet...!"); } else { if($ir['car'] == 1) { //set $win prize winings $win=rand(10,170); $loss=rand(10,276); if(rand(1,30) <= 14) { print "You start the race in your sports car. You dont make a good start but it pays off in the end. You win $/$win"; $sql = sprintf("UPDATE users SET money=money+$win WHERE userid=%s", $userid); mysql_query($sql); } else { if(rand(1,30) <= 15) { print "You start the race in your $color sports car. You dont make a good start and it carries out throughout the whole of the race, you dont win anything, you loose $/$loss"; $sql = sprintf("UPDATE users SET money=money-$loss WHERE userid=%s", $userid); mysql_query($sql); } else { if(rand(1,30) <= 5) { print "You start the race in your sports car. You turn a corner sharply and crash into the barrier and you car is unable to work anymore you need to buy another one [[url='carracingbuycar.php']Go Buy A Car[/url]]"; $sql = sprintf("UPDATE users SET car=0 WHERE userid=%s", $userid); mysql_query($sql); } } } } } ?>
-
Re: [V2] Car Racing I Normally Do
-
Re: [V2] Car Racing i took dumbass out :-D i prefer other stuff :roll:
-
Re: [V2] Car Racing Well You Wrote One Code Wrong Missing php and ive added security carracing.php <?php include "globals.php"; if($ir['car'] == 0) { die("Haha, you cannot race on your feet.."); } else { if($ir['car'] == 1) { //set $win prize winings $win=rand(10,300); if(rand(1,100) <= 20) { print "You start the race in your sports car. You dont make a good start but it pays off in the end. You win $/$win"; $sql = sprintf("UPDATE users SET money=money+$win WHERE userid=%s", $userid); mysql_query($sql); } else { if(rand(1,100) <= 50) { print "You start the race in your $color sports car. You dont make a good start and it carries out throughout the whole of the race, you loose $/$win"; $sql = sprintf("UPDATE users SET money=money-$win WHERE userid=%s", $userid); mysql_query($sql); } } } } ?> carracingbuycar.php <?php include "globals.php"; print "<h3>Buy A Car For Car Racing</h3>"; print " <table border=2><th>Car</th><th>Price</th><th>Purchase</th> <tr> <td>Sports Car</td><td>$3500</td><td>[url='carracingbuycar.php?spend=car']Buy[/url]</td></table>"; if($_GET['spend'] == 'car') { if($ir['money'] <3500) { print "You don't have enough money!"; } else { if($ir['money'] >3499) { print "You bought the Car! [url='index.php']Go Home[/url] [url='carracing.php']Go Car Racing[/url]"; $sql = sprintf("UPDATE users SET money=money-3500,car=1 WHERE userid=%s", $userid); mysql_query($sql); } } } $h->endpage(); ?>
-
mccode-v2 8 Lines to secure your site from known sql injections.
Karlos replied to Haunted Dawg's topic in Free Modifications
Re: 8 Lines to secure your site from known sql injections. im noobie...remember that kyle :wink: -
Re: Updated Display Pic System [V2] Nice one mate, keep it up :-D :wink:
-
Re: Simple Trades [V2] Not Bad, Nice one :wink: