[HELP] Rent Filterscript
#1

Hello,i am using this filterscript for rent vehicles : https://sampforum.blast.hk/showthread.php?tid=252231

and i saw a suggestion that he should add rentprice in this function,

Код:
CreateRentalVehicle(modelid, x, y, z, angle, color1, color2);
so it will be like this

Код:
CreateRentalVehicle(modelid, x, y, z, angle, color1, color2, rentprice);
can anyone do that for me,i mean that function..

Thank you , i hope that you are understanting me...
Reply
#2

pawn Код:
new Rentprice // Define how much this will cost.
CreateRentalVehicle(modelid, x, y, z, angle, color1, color2, rentprice);
pawn Код:
#define 1000 rentprice // Change 1000 to your own price.
Easy as that
Reply
#3

ok,but i don't want this,i need

Quote:

CreateRentalVehicle(modelid, x, y, z, angle, color1, color2, rentprice);

so,


Quote:

CreateRentalVehicle(540,1250.1256,965.6326,125.125 6, 31, 151, 151, 450);
CreateRentalVehicle(407,312.512,125.3163,86.531, 31, 151, 151, 350);

do you understand now?
Reply
#4

You want a CreateRentalVehicle stock?
Reply
#5

yes,but not this one :

Quote:

stock CreateRentalVehicle(iModel, Float:fX, Float:fY, Float:fZ, Float:fAngle, iCol1, iCol2)
{
new
TMP;

TMP = AddStaticVehicle(iModel, Float:fX, Float:fY, Float:fZ, Float:fAngle, iCol1, iCol2);

SetVehicleNumberPlate(TMP, "Rental");
SetVehicleToRespawn(TMP);

IsRentable[TMP] = 1;
IsRented[TMP] = 0;
RentedBy[TMP] = "No-one";
return TMP;
}

i wanna stock with whom I will be able to make different prices for every rental vehicle
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)