HITMAN 17 Posted December 15, 2008 Posted December 15, 2008 open cron_day.php Find $db->query("INSERT INTO coursesdone VALUES({$r['userid']},{$r['course']})"); After Add $db->query("INSERT INTO phds VALUES({$r['userid']},{$r['course']})"); Replace Education.php You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Replace Job.php You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. SQL CREATE TABLE `phds` ( `userid` int(11) NOT NULL default '0', `edu` int(11) NOT NULL default '0' ) ENGINE=MyISAM DEFAULT CHARSET=latin1; ALTER TABLE `jobs` ADD `jEDU` int(11) NOT NULL default '0'; INSERT INTO `settings` (`conf_id` ,`conf_name` ,`conf_value`)VALUES (NULL , 'weapon_c_n', '0'); Replace Staff_jobs.php You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. ======needing course to buy weapons======= open staff.php find Will Potion Item: ".item_dropdown($c, "willp_item", $set['willp_item'])." below add Course Needed To Buy Weapons: ".course_dropdown($c, "weapon_c_n", $set['weapon_c_n'])." open itembuy.php find include "globals.php"; after add if($set['weapon_c_n']>1) { $aphd=$db->query("SELECT crNAME FROM courses WHERE crID={$set['weapon_c_n']}"); $aphd=$db->fetch_row($aphd); $phd=$db->query("SELECT edu FROM phds WHERE userid=$userid && edu={$set['weapon_c_n']}"); if($db->num_rows($phd)==0) { die("You need the {$aphd['crNAME']} PHD to buy weapons!!"); } } open itemmarket.php find function item_buy() { global $db,$ir,$c,$userid,$h; after add if($set['weapon_c_n']>1) { $aphd=$db->query("SELECT crNAME FROM courses WHERE crID={$set['weapon_c_n']}"); $aphd=$db->fetch_row($aphd); $phd=$db->query("SELECT edu FROM phds WHERE userid=$userid && edu={$set['weapon_c_n']}"); if($db->num_rows($phd)==0) { die("You need the {$aphd['crNAME']} PHD to buy weapons!!"); } } IF YOU HAVE AUCTIONS MOD open bid.php find include "globals.php"; after add if($set['weapon_c_n']>1) { $aphd=$db->query("SELECT crNAME FROM courses WHERE crID={$set['weapon_c_n']}"); $aphd=$db->fetch_row($aphd); $phd=$db->query("SELECT edu FROM phds WHERE userid=$userid && edu={$set['weapon_c_n']}"); if($db->num_rows($phd)==0) { die("You need the {$aphd['crNAME']} PHD to buy weapons!!"); } } IF YOU HAVE USERSHOPS open buyitem.php find include "globals.php"; after add if($set['weapon_c_n']>1) { $aphd=$db->query("SELECT crNAME FROM courses WHERE crID={$set['weapon_c_n']}"); $aphd=$db->fetch_row($aphd); $phd=$db->query("SELECT edu FROM phds WHERE userid=$userid && edu={$set['weapon_c_n']}"); if($db->num_rows($phd)==0) { die("You need the {$aphd['crNAME']} PHD to buy weapons!!"); } } anywhere else you want the course to be needed paste if($set['weapon_c_n']>1) { $aphd=$db->query("SELECT crNAME FROM courses WHERE crID={$set['weapon_c_n']}"); $aphd=$db->fetch_row($aphd); $phd=$db->query("SELECT edu FROM phds WHERE userid=$userid && edu={$set['weapon_c_n']}"); if($db->num_rows($phd)==0) { die("You need the {$aphd['crNAME']} PHD to buy weapons!!"); } } Quote
Dazza Posted December 15, 2008 Posted December 15, 2008 Re: [Mccodes V2]Phds Who made this? Any screenies? Quote
jamboy1 Posted December 15, 2008 Posted December 15, 2008 Re: [Mccodes V2]Phds Who made this? Any screenies? ROFL obviously not him Quote
AlabamaHit Posted December 15, 2008 Posted December 15, 2008 Re: [Mccodes V2]Phds http://criminalexistence.com/ceforums/i ... ic=21682.0 amazing how close parts of the code is.... Not downing you for this.......Just saying give the credit to the right person please... Thanks for sharing :P Quote
HITMAN 17 Posted December 15, 2008 Author Posted December 15, 2008 Re: [Mccodes V2]Phds yer emm here is my cron day this is little different and needs fixing You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. this is why needs fixing You are currently doing the Weapon course, you have -6 days remaining. Quote
HITMAN 17 Posted December 16, 2008 Author Posted December 16, 2008 Re: [Mccodes V2]Phds great if someone could help Quote
POG1 Posted December 16, 2008 Posted December 16, 2008 Re: [Mccodes V2]Phds haha You created a mod and can not install it lol Quote
HITMAN 17 Posted December 16, 2008 Author Posted December 16, 2008 Re: [Mccodes V2]Phds i have installed just the cron for phds don work correctly Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.