
Cyanide
Members-
Posts
107 -
Joined
-
Last visited
Never
Content Type
Profiles
Forums
Events
Everything posted by Cyanide
-
Re: [mccode] Steps market users would probably love this, but i want them to do more than search the streets in my game, so i wont be using it. but +1 for posting
-
Re: Court Mod V1 Props to you, not many people would be doing this, matter of fact, most would be trying to sell the mod as there own.
-
Re: **Trade** I agree with Vorlen, but either way, this is posted in the wrong place.
-
Re: [v1] Bar Room w/ Chat FREE meh, i didnt test it before i posted it, sorry...all i did was insert the shoutbox
-
Re: Tutorial: v2 - v1 Conversion +1 to you too
-
Re: Free gamedemo thingy Ok, this is the most retarded thread I have ever seen. You people jumped his ass because he asked about the lite codes. He says he doesnt want them for himself, he has been asked to install them for someone else, and even if he does want them for himself, it's none of your damn business, everyone has to start somewhere and MC is written in a way it's easy to understand. So just back off, and leave the guy alone. Admins, please lock this thread. :mrgreen:
-
Re: v2 hall of shame nice addition, ill be using this
-
Re: Tutorial: v1 - v2 Conversion You dont need to change the querys for a v1 mod to work with v2, thats a needless step
-
Re: Tutorial: v2 - v1 Conversion thats the same thing i said in less detail lol...i just explained more for the newer coders
-
To convert a v2 mod to work with v1: Open the file you want to convert and find: include "globals.php"; replace that with: require "global_func.php"; if($_SESSION['loggedin']==0) { header("Location: login.php");exit; } $userid=$_SESSION['userid']; require "header.php"; $h = new headers; $h->startheaders(); include "mysql.php"; global $c; $is=mysql_query("SELECT u.*,us.* FROM users u LEFT JOIN userstats us ON u.userid=us.userid WHERE u.userid=$userid",$c) or die(mysql_error()); $ir=mysql_fetch_array($is); check_level(); $fm=money_formatter($ir['money']); $lv=date('F j, Y, g:i a',$ir['laston']); $h->userdata($ir,$lv,$fm); $h->menuarea(); now you will need to change all the sql querys to look like the mccodes v1 querys: examples: v1 query: mysql_query("UPDATE users SET exp=exp+{$exga}, energy=0 WHERE gang={$ir['gang']}", $c); v2 query: $db->query("SELECT * FROM users WHERE userid={$_POST['userid']}"); when you are done the v2 query should look like this: mysql_query("SELECT * FROM users WHERE userid={$_POST['userid']}"); *note* there are fast ways to do this using dreamweaver or wordpad* Using DreamWeaver: Press CTRL+F, this will bring up the search / replace function type this in the first box: $db-> type this in the replace with box: mysql_ click replace all, and you're done. Using Wordpad: press CTRL+H this will bring up the replace menu type this in the find what box: $db-> type this in the replace with box: mysql_ click ok and you're done. I hope this helps someone out.
-
I wasn't sure where to post this, move if needed. Ok, I have been asked alot about how to convert a v1 mod to a v2 mod so I decided to post this, hope it helps out. This is much easier than most think. Ok, first, open the v1 mod you wish to convert and find: require "global_func.php"; if($_SESSION['loggedin']==0) { header("Location: login.php");exit; } $userid=$_SESSION['userid']; require "header.php"; $h = new headers; $h->startheaders(); include "mysql.php"; global $c; $is=mysql_query("SELECT u.*,us.* FROM users u LEFT JOIN userstats us ON u.userid=us.userid WHERE u.userid=$userid",$c) or die(mysql_error()); $ir=mysql_fetch_array($is); check_level(); $fm=money_formatter($ir['money']); $lv=date('F j, Y, g:i a',$ir['laston']); $h->userdata($ir,$lv,$fm); $h->menuarea(); and replace it with this: include "globals.php"; and you're done. most of you know that the sql querys in v2 are written differently than in v1, but that doesnt matter, the usual mysql_query will work just the same, there is no need to change it.
-
Have you ever noticed how everything you can do to someone in an MCCodes game sends them to the hospital? Want something different? Want to keep your players from getting tired of the same old thing? Then here you go. This mod allows users to frame there enemies for murder and send them to jail for a random amount of time. Features: Cannot be used while at war. Cannot be used on players who are at war. Cannot be used while in hospital or jail. Cannot be used on players who are in the same gang as you. Easily customized for how much brave to use, exp to gain, and jail / hospital time. Players have a chance to fail and be sent to the hospital. Amount of brave needed is increased by level. Includes an easy to edit config file. Price: $10.00 USD. I can install & customize for an extra $5.00 USD. For questions, or to purchase, you can send me a message via msn messenger at [email protected]
-
Ok, I took the modified Pub code and modified it some more, I added in a shoutbox so you can talk to other people in the bar. Hope you all enjoy. barroom.php <?php /*----------------------------------------------------- -- A product of Genocide -- barroom.php -- Modified By Cyanide [url]www.dreamburst.com[/url] -----------------------------------------------------*/ session_start(); require "global_func.php"; if($_SESSION['loggedin']==0) { header("Location: login.php");exit; } $userid=$_SESSION['userid']; require "header.php"; $h = new headers; $h->startheaders(); include "mysql.php"; global $c; $is=mysql_query("SELECT u.*,us.* FROM users u LEFT JOIN userstats us ON u.userid=us.userid WHERE u.userid=$userid",$c) or die(mysql_error()); $ir=mysql_fetch_array($is); check_level(); $fm=money_formatter($ir['money']); $cm=money_formatter($ir['crystals'],''); $lv=date('F j, Y, g:i a',$ir['laston']); $h->userdata($ir,$lv,$fm,$cm); $h->menuarea(); if(!$_GET['spend']) { print "<h2>The Bar Room</h2> Hi and welcome , what would you like?. Prices and payment options are listed below. <h3>Drink Menu</h3> <table border='1' width='90%' bordercolor='#939393'><tr background='header.jpg'><th>Drinks</th><th>Price</th><th><center>Buy</th></tr><tr> <td><center>Gin and Juice</td><td><td><center>$1,000,000</td><td><center>[url='barroom.php?spend=Juice']Buy[/url]</td></tr><tr> <td><center>Beer</td><td><center>$5,000,000</td><td><center>[url='barroom.php?spend=Beer']Buy[/url]</td></tr><tr> <td><center>Brandy</td><center>$7,000,000</td><td><center>[url='barroom.php?spend=Brandy']Buy[/url]</td></tr><tr> <td><center>Tequila</td><td><center>$10,000,000</td><td><center>[url='barroom.php?spend=Tequila']Buy[/url]</td></tr></table> <h3>Bar Room Chatter</h3>"; //Start Shoutbox $_POST['message']=mysql_real_escape_string($_POST['message']); $_POST['message']=strip_tags($_POST['message']); $_POST['message']=htmlentities($_POST['message'], ENT_QUOTES); if($_POST['message'] != "") { mysql_query("INSERT INTO shoutbox VALUES('',{$ir['userid']},'{$_POST['message']}',unix_timestamp())",$c) or die (mysql_error()); print "[i]Shout posted in shout box.[/i]"; } else { //Submit button JS Start print <<<EOF <SCRIPT LANGUAGE="JavaScript"> <!-- Begin function disableForm(theform) { if (document.all || document.getElementById) { for (i = 0; i < theform.length; i++) { var tempobj = theform.elements[i]; if (tempobj.type.toLowerCase() == "submit" || tempobj.type.toLowerCase() == "reset") tempobj.disabled = true; } return true; } else { return false; } } // End --> </script> EOF; //Submit Button JS End"; print " } else { if($_GET['spend'] == 'Juice') { if($ir['money'] <1000000) { print "You don't have enough money to buy a pint of beer , Get out of my PUB!"; } else { mysql_query("UPDATE users SET will=will+35,energy=0,money=money-1000000 WHERE userid=$userid",$c); mysql_query("UPDATE users SET will=maxwill WHERE will > maxwill",$c); print "<center>You payed the Bartender \$1,000,000,and then drank your juice . You feel some of your will comming back to you. [url='index.php']>Home[/url]</center>"; } } else if($_GET['spend'] == 'Beer') { if($ir['money'] <5000000) { print "You don't have enough money to buy a pint of beer , Get out of my PUB!"; } else { mysql_query("UPDATE users SET will=will+70,energy=0,money=money-5000000 WHERE userid=$userid",$c); mysql_query("UPDATE users SET will=maxwill WHERE will > maxwill",$c); print "<center>You payed the Bartender $5,000,000, and then drank your beer. You feel some of your will comming back to you. [url='index.php']>Home[/url]</center>"; } } else if($_GET['spend'] == 'Brandy') { if($ir['money'] <10000000) { print "You don't have enough money to buy a pint of beer , Get out of my PUB!"; } else { mysql_query("UPDATE users SET will=will+210,energy=0,money=money-10000000 WHERE userid=$userid",$c); mysql_query("UPDATE users SET will=maxwill WHERE will > maxwill",$c); print "<center>You payed the Bartender \$10,000,000, and then drank your Brandy. You feel some of your will comming back to you. [url='index.php']>Home[/url]</center>"; } } else if($_GET['spend'] == 'Tequila') { if($ir['money'] <10000000) { print "You don't have enough money to buy a pint of beer , Get out of my PUB!"; } else { mysql_query("UPDATE users SET will=will-50,energy=+250,money=money-10000000 WHERE userid=$userid",$c); mysql_query("UPDATE users SET will=maxwill WHERE will > maxwill",$c); print "<center>You payed the Bartender $10,000,000, and then drank your tequila. You feel Dizzy , Then you feel some of your energy comming back to you. [url='index.php']>Home[/url]</center>"; } } } } $h->endpage(); ?> Shoutbox SQL CREATE TABLE `shoutbox` ( `sid` int(11) NOT NULL default '0', `suserid` int(11) NOT NULL default '0', `smessage` varchar(255) NOT NULL default '', `stime` int(11) NOT NULL default '0' ) ENGINE=MyISAM DEFAULT CHARSET=latin1; :mrgreen:
-
I would like to know more about how to incorperate a SMF layout into MCCodes v1. I have seen it done, and it looks great.
-
Re: v1 Terrorist Mod $10.00 This sounds interesting, would be well worth $10.00 to someone who cant code or just doesnt want to. :mrgreen:
-
Ok, this is a little something simple, just layout modifications, thought maybe someone could use it. Enjoy. <?php /*----------------------------------------------------- -- Mono Country v1.0 BETA -- A product of DBS-entertainment -- Copyright held 2005 by Dabomstew -- INDEX.php -----------------------------------------------------*/ session_start(); require "global_func.php"; if($_SESSION['loggedin']==0) { header("Location: login.php");exit; } $userid=$_SESSION['userid']; require "header.php"; $h = new headers; $h->startheaders(); include "mysql.php"; global $c; $is=mysql_query("SELECT u.*,us.* FROM users u LEFT JOIN userstats us ON u.userid=us.userid WHERE u.userid=$userid",$c) or die(mysql_error()); $ir=mysql_fetch_array($is); check_level(); $fm=money_formatter($ir['money']); $cm=money_formatter($ir['crystals'],''); $lv=date('F j, Y, g:i a',$ir['laston']); $h->userdata($ir,$lv,$fm,$cm); $h->menuarea(); if($ir['jail']) { print"You cannot do crimes while youre in jail."; $h->endpage(); exit; } if($ir['hospital']) { print"You cannot do crimes while youre in the hospital."; $h->endpage(); exit; }$q=mysql_query("SELECT * FROM crimegroups ORDER by cgORDER ASC",$c); print "[b]Do Crimes[/b] <table width='75%'><tr><th>Crime</th><th>Cost</th><th>Payout</th><th>Do</th></tr>"; while($r=mysql_fetch_array($q)) { print "<tr style='background-color:gray'><td colspan='4'>{$r['cgNAME']}</td></tr>"; $q2=mysql_query("SELECT * FROM crimes WHERE crimeGROUP={$r['cgID']}",$c); while ($r2=mysql_fetch_array($q2)) { print "<tr><td>{$r2['crimeNAME']}</td><td><center>{$r2['crimeBRAVE']} Brave</td><td><center>\${$r2['crimeSUCCESSMUNY']}</center></td><td><center>[url='docrime.php?c={$r2[']Do[/url]</center></td></tr>"; } } $h->endpage(); ?>
-
Hello all, I just thought I would stop in here and introduce myself. I am new to this forum, but I'm a long time coder and graphics designer. I have recently started working with Vorlen of Dreamburst Studios, and I would like to offer my services to anyone who may need it. Peace.