RentHeli

Started by Finch, Mar 13, 2015, 03:07 PM

Previous topic - Next topic

Finch

Well i See RentHeli Command Which take rent 20000 for one day for heli
what is it function i want this cmd give me example plz
Beztone is a scripter but he is too stupid

rObInX

#1
Quote from: Finch on Mar 13, 2015, 03:07 PMWell i See RentHeli Command Which take rent 20000 for one day for heli
what is it function i want this cmd give me example plz

Why don't you try ?

Unless you try at least a bit and post it here, I'm not going to help.

hotdogcat


Start by using this code

function onPlayerEnterVehicle( player, veh, isPassenger )
{
if (veh.Model == model)
{
//Your code here
}
}


Credits to Bart.

Kratos_

#3
I'm not sure that whether he want that 1 day ( 24 hours ) would be calculated by the basis of time player spent in the heli or someone
will pay that money to heli's owner to take it for rent for 24 hours & now it depends on him ( person who takes heli on rent ) that how much he is going to use the heli .
Show us the effort you made for it .
In the middle of chaos , lies opportunity.

Finch

give me some help then i will be able to create
Beztone is a scripter but he is too stupid

BigcaT_

#5
I think that if you make it, it will not working perfectly..

Finch

what u trying to say?
Beztone is a scripter but he is too stupid

Finch

please help me in this solution
Beztone is a scripter but he is too stupid

hotdogcat

#8
Try to give a look into RBAN system, here you'll have all the necessary to calculate the time with some small edits.
Another tip: don't check every time you call onPlayerEnterVehicle the database.

RBAN Link: http://vcmp.liberty-unleashed.co.uk/forum/index.php?topic=1713.msg11506#msg11506


Credits to Bart.