Jump to content
MakeWebGames

[Mccodes V2]Phds


HITMAN 17

Recommended Posts

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!!");

}

}

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...