SA-MP Forums Archive
[HELP] Rent Filterscript - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: [HELP] Rent Filterscript (/showthread.php?tid=300282)



[HELP] Rent Filterscript - ivanVU - 29.11.2011

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...


Re: [HELP] Rent Filterscript - NessaHD - 29.11.2011

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


Re: [HELP] Rent Filterscript - ivanVU - 29.11.2011

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?


Re: [HELP] Rent Filterscript - AstonDA-G - 29.11.2011

You want a CreateRentalVehicle stock?


Re: [HELP] Rent Filterscript - ivanVU - 29.11.2011

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