Hello, this is Pecon7 (Left4Block in game) and I found an old dusty copy of the OLD CityRP. Personally I liked this mod beacause it had quite a few epic features including that the system for "buying" land was completely automatic and it had a good taxes system as well. There are a few features that are "broken" like
function CityRP_giveMoney(%client, %command, %args)
{
%money = mFloor(getWord(%args, 0));
if(%money < 1)
{
messageClient(%client, '', "\c6You must enter a valid amount of money to give.");
return;
}
if(CityRPData.getData(%client.bl_id).valueMoney - %money < 0)
{
messageClient(%client, '', "\c6You don't have that much money to give.");
return;
}
if(!isObject(%client.player))
{
messageClient(%client, '', "\c6Spawn first before you use this command.");
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 give \c3$" @ %money SPC "\c6to \c3" @ %target.name @ "\c6.");
messageClient(%target, '', "\c3" @ %client.name SPC "\c6has given you \c3$" @ %money @ "\c6.");
CityRPData.getData(%client.bl_id).valueMoney -= %money;
CityRPData.getData(%target.bl_id).valueMoney += %money;
%client.CityRP(1);
%target.CityRP(1);
return;
I have been testing this mod a lot lately and have found only a few other minor issues. I hope somebody could help me find the problem with this part of the script.
Hopefully there will be at least someone who can give a small helpful comment.