Author Topic: Can you fix this? :D  (Read 773 times)

Ok, I stole a dropcash mod from cashmodII who stole it from Iban and It's broken D:

Code: [Select]
if(CityRPData.getData(%this.bl_id).valuemoney > 0)
{
%cash = new Item()
{
datablock = nametoid("dropcastuffem");
canPickup = false;
value = %CityRPData.getData(%this.bl_id).valuemoney;
};
%cash.setScale("0.6 0.6 0.6");
%cash.setShapeNameColor("0 1 0");
%cash.setShapeNameDistance(10);
%cash.setTransform(setWord(%this.player.getTransform(), 2, getWord(%this.player.getTransform(), 2) + 2));
%cash.setVelocity(VectorAdd(%this.player.getVelocity(),VectorScale(%this.player.getEyeVector(), 10)));
MissionCleanup.add(%cash);
%CityRPData.getData(%this.bl_id).valuemoney = 0;
}
« Last Edit: April 04, 2009, 10:49:52 PM by Pew446 »

if(CityRPData.getData(%this.bl_id).valuemoney > 0)
Does one of these exist?

Does one of these exist?

CityRPData.addValue("money", 100);

:/

I need this fixed too.

Code: [Select]
registerOutputEvent("fxDTSBrick", "SellFood", "String 20 20\tint 1 500 1\tlist Small 0 Medium 1 Large 2", 1);
and this is function:

Code: [Select]
function fxDTSBrick::SellFood(%this,%name,%cost,%size,%client)
{
messageClient(%client,'',"\c6This service is offering you a \c3" @ %size SPC"\c6of \c3" @ %name SPC"\c6for $\c3" @ %cost @ "\c6. say \c3^yes \c6to accept or \c3^no \c6to decline.");
}

Edit: Nevermind, I'm too stupid to restart a server. Thanks it works.
« Last Edit: April 05, 2009, 12:51:38 AM by Pew446 »

CityRPData.addValue("money", 100);

:/
What I meant was, does your server actually have a CityRPData object? You should be replacing it with your own data storage thing instead of breaking the one in CityRP for your mod.

What I meant was, does your server actually have a CityRPData object? You should be replacing it with your own data storage thing instead of breaking the one in CityRP for your mod.

Yeah but the thing is, I've modded cityrp to have hunger, names that change color when wanted, your demerit amount in lower bar thing, etc...

I need this fixed too.

Code: [Select]
registerOutputEvent("fxDTSBrick", "SellFood", "String 20 20\tint 1 500 1\tlist Small 0 Medium 1 Large 2", 1);
and this is function:

Code: [Select]
function fxDTSBrick::SellFood(%this,%name,%cost,%size,%client)
{
messageClient(%client,'',"\c6This service is offering you a \c3" @ %size SPC"\c6of \c3" @ %name SPC"\c6for $\c3" @ %cost @ "\c6. say \c3^yes \c6to accept or \c3^no \c6to decline.");
}

Edit: Nevermind, I'm too stupid to restart a server. Thanks it works.
No offense, but that is very funny.