Mafia-Club
Members-
Posts
155 -
Joined
-
Last visited
Never
Content Type
Profiles
Forums
Events
Everything posted by Mafia-Club
-
[mccode v2] Flash Arcade System with High Scores [$100]
Mafia-Club replied to seanybob's topic in Paid Modifications
Re: [mccode v2] Flash Arcade System with High Scores [$150] Hey Welcome Back Seanybob -
Re: Businesses Mod [Mccode V2] Thats Nice If It Was Someone Else there would probs sell it for sme $ but you gave it away for free man thanks going to use this ? love your mods
-
[Mccodes V2] Item Sell Update [Javascript!]
Mafia-Club replied to Dave's topic in Free Modifications
Re: [Mccodes V2] Item Sell Update [Javascript!] Nice Man Keep it up -
Re: [mccodes] Dogtags [$30.00] Nice man
-
Re: No Topic whats your name on phpfreaks
-
Re: No Topic :( Sad To Hear that you leaving ce but i will find you on Phpfreaks :) Have fun mate and btw i dont hate you at all :)
-
Re: Food Shop [Mccode V2] No Problem
-
Re: Food Shop [Mccode V2] Hey to change the price look for if($ir['money'] > 2 ) { echo "You Bought A Potion Of Chips Enjoy"; $db->query("UPDATE users SET money=money-5 WHERE userid=$userid"); Change the 2 To the price you want it to be on if($ir['money'] > 2) then change the sql query where it sayes money=money- so when you buy it how much mnoey it should take out from the user
-
Re: Food Shop [Mccode V2] Thanks No i Dont Mind You Can Take It Of :)
-
Re: Number Game! [V2] Nice :) +1
-
Re: Mccodes V2 Request Name Changes Hello Heres What i coded it works too :) Preferences: case 'colorchange': color_change(); break; case 'colorchange1': do_color_change(); break; function color_change() { global $db,$ir,$c,$userid,$h; echo "<h4>Name Color Change</h4> <form action='preferences.php?action=colorchange1' method='post'> Insert Color Code: <input type='text' name='color'> <input type='submit' value='submit'> </form>"; } function do_color_change() { global $db,$ir,$c,$userid,$h; echo "Name Color Changed "; $db->query("UPDATE users SET color='{$_POST['color']}' WHERE userid=$userid"); } [url='preferences.php?action=colorchange']Change Name Color[/url] sql: ALTER TABLE `users` CHANGE `color` `color` VARCHAR( 6 ) CHARACTER SET latin1 COLLATE latin1_swedish_ci NOT NULL DEFAULT 'C8C8C8' Then Header: find: [b]Name:[/b] $gn{$u} [{$ir['userid']}] $d replace with: [b]Name:[/b]<font color='{$ir['color']}'>{$ir['username']} {$ir['userid']} $d</font> Enjoy it should work and when changing the color in preferences Make Sure you put it like #000000 or #FFFFFF etc .
-
Re: Daily Donators Reward [Mccode v2] i swear down my life and familys life i did make this 100% :|
-
Re: Daily Donators Reward [Mccode v2] You think i never made this? well you can check my first mod Food Shop Mod and i did make this on my cpanel file Manager just was practicing ok
-
Hey This My Second Mod i've made i have tested it works but the only problem is securing it lol will look up some tutorials on securing Feel Free To Use :) Add In Css (header): .tab { background: #C8C8C8; border: 1px solid #494949; } Create File reward.php(Name The file Any thing you want): <?php require "globals.php"; if ($ir['donatordays'] == 0) { echo "Sorry, This Feature is for Donators only!"; exit; } echo "<div class='tab'><center>Daily Donators Reward</center></div> [i]This Feature This only for donators you can request a reward once a day[/i] "; { if($_GET['reward']) { if($ir['rewarddone'] > 1) { die ("You Have Already Got Your Reward Today Come Back Tomrw"); } } } $num = rand(1, 5); $db->query("UPDATE users SET rewarddone=rewarddone+1 WHERE userid=$userid"); $ir['money'] =100; switch($num) { case '1': $money =rand(500,1000); print "<font color='blue'>You Gained Some Money</font>"; $db->query("UPDATE users SET money=money+{$money} WHERE userid=$userid"); break; case '2': $crystal =rand(5,10); print "<font color='blue'>You Gained Some Crystals</font>"; $db->query("UPDATE users SET crystals=crystals+{$crystal} WHERE userid=$userid"); break; case '3': $brave =rand(1,3); print "<font color='blue'>You Gained Some Brave</font>"; $db->query("UPDATE users SET brave=brave+{$brave} WHERE brave<maxbrave AND userid=$userid"); break; } print " <center>[url='reward.php?reward=?']Reward[/url]</center>"; { } $h->endpage(); ?> sql: ALTER TABLE `users` ADD `rewarddone` INT NOT NULL DEFAULT '0'; Enjoy Remeber This Is My Second Mod
-
Re: Food Shop [Mccode V2] If you Want To test and to see how it looks then go to http://midnight-dealers.com/my1.php :) you got to login first so register
-
Re: Food Shop [Mccode V2] $db->query("UPDATE users SET money=money-10 WHERE userid=$userid"): Thats the Query so when you buy a burger it takes the money out
-
Re: Food Shop [Mccode V2] Thanks Atleast Am getting somewhere in php
-
Re: Food Shop [Mccode V2] so guys what you think of this mod my first
-
Re: Food Shop [Mccode V2] ok np mate
-
Re: Food Shop [Mccode V2] Ah no Change the file Name To anythink then you got to change the links to the file name you changed it to so like file.php?action=buy and so on
-
Hey guys heres my first mod i have ever made and i am very happy with this mod has it is my first :) Btw Does AnyOne want to secure it for me Has it is'nt Secured I will Learn On How to Secure soon too :) <?php require "globals.php"; echo "<style type='text/css'> .table { background-color:#000000; } .table3 { background-color:#000000; } .table td { background-color:#999999; height:22px; } .table3 td { background-color:#000000; } td .alt { background-color:#0066FF; height:22px; } .table th { font-weight: bold; background-color: #A0A0A0; } </style>"; switch ($_GET['action']) { case 'buy': buy(); break; case 'bur': bur(); break; case 'pizza': pizza(); break; default: index(); break; } function index() { global $db,$ir,$userid; echo "<h4>Food Shop</h4> [i]Welcome To Our Food shop[/i] <table cellspacing='1' width='80%' class='table' cellspacing='1'> <tr> <th>Food Name</th> <th>Food Price</th> <th>Buy</th></tr> <tr> <td>Chips</td> <td>$2</td> <td>[url='my1.php?action=buy']Buy Chips[/url]</td></tr> <tr> <td>Burger</td> <td>$1</td> <td>[url='my1.php?action=bur']Buy Burger[/url]</td></tr> <tr> <td>Pizza</td> <td>$7</td> <td>[url='my1.php?action=pizza']Buy Pizza[/url]</td></tr></table> [i]Made By Mafia-Club[/i] "; } function buy() { global $db,$ir,$userid; if($ir['energy'] == $ir['maxenergy']) { echo "Energy Is Already Full Come Back When you Have Less Energy"; exit; } if ($ir['money'] < 1 ) { echo "Error: You Need Atleast $2 To Buy Chips"; } if($ir['money'] > 2 ) { echo "You Bought A Potion Of Chips Enjoy"; $db->query("UPDATE users SET money=money-5 WHERE userid=$userid"); $db->query("UPDATE users SET energy=energy+12 WHERE energy<maxenergy AND userid=$userid"); } } function bur() { global $db,$ir,$userid; if($ir['brave'] == $ir['maxbrave']) { echo "Brave Is Already Full Come Back Later When you Have Less Brave"; exit; } if($ir['money'] < 1) { echo "You Need Atleast $1 To Buy A burger"; } elseif($ir['money'] > 1 ) { echo "You Bought A Burger And Gained Brave"; $db->query("UPDATE users SET brave=brave+1 WHERE brave<maxbrave AND userid=$userid"); } } function pizza() { global $db,$ir,$userid; if($ir['hp'] == $ir['maxhp']) { global $db,$ir,$userid; echo "Your Health Is Already Full Come Back Later When You Have Less Health"; exit; } if($ir['money'] < 5 ) { echo "Error: You Need Atleast $7 To Buy A Pizza"; } elseif($ir['money'] > 7 ) { echo ":) You Just Bought A Pizza And will gain some health"; $db->query("UPDATE users SET money=money-7 WHERE userid=$userid"); $db->query("UPDATE users SET hp=hp+5 WHERE hp<maxhp AND userid=$userid"); } } $h->endpage(); ?>
-
Title: Midnight-Dealers Site URL: http://midnight-dealers.com/ Site Description: A wonderful game with a friendly community.. Please Join up! Please review Thanks
-
Re: [McCodes][v2] Mailbox Layout Mod Looks Good keep it up dayo
-
Re: Error Game! missing a <?php and ?>
-
Re: Error Game! :wink: the wink is the error there killah