Doctor Job if anyone is interested.
__________
Go to your PeopleMods_CityRp folder and copy the server.cs file to your desktop. Open it up from the desktop and go to line (ctrl+g) 70 and copy this code in:
$CityRP::jobs::name[$CityRP::jobs++] = "Doctor";
$CityRP::jobs::initialInvestment[$CityRP::jobs] = 750;
$CityRP::jobs::pay[$CityRP::jobs] = 85;
$CityRP::jobs::tools[$CityRP::jobs] = "hammerItem wrenchItem printGun";
$CityRP::jobs::items[$CityRP::jobs] = false;
$CityRP::jobs::law[$CityRP::jobs] = false;
$CityRP::jobs::pickpocket[$CityRP::jobs] = false;
Then go to line (ctrl+g) 1186 and paste this in:
if(%command $= "heal")
{
%amount = mFloor(getWord(%args, 0));
if(%amount < 1)
{
messageClient(%client, '', "\c6You must enter a valid amount of health to heal.");
return;
}
if($CityRP::jobs::name[CityRPData.getData(%client.bl_id).valueJobID]!= "Doctor")
{
messageClient(%client, '', "\c6Only doctors can heal others.");
return;
}
%target = containerRayCast(%client.player.getEyePoint(), vectorAdd(vectorScale(vectorNormalize(%client.player.getEyeVector()), 8), %client.player.getEyePoint()), $typeMasks::playerObjectType).client;
if(!isObject(%target))
{
messageClient(%client, '', "\c6You must be looking at and be in a reasonable distance of the player in order to give them money.");
return;
}
messageClient(%client, '', "\c6You heal \c3" @ %amount SPC "\c6of \c3" @ %target.name @ "\'s\c6 health.");
messageClient(%target, '', "\c3" @ %client.name SPC "\c6has healed you \c3" @ %amount @ "\c6 health.");
%health = %target.getDamageLevel()-%amount;
%target.setDamageLevel(%health);
%client.CityRP(1);
%target.CityRP(1);
return;
}
This is something me and bolt made a while ago, that should work.