Vice City: Multiplayer

Server Development => Scripting and Server Management => Topic started by: Finch on Mar 13, 2015, 03:07 PM

Title: RentHeli
Post by: Finch on Mar 13, 2015, 03:07 PM
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
Title: Re: RentHeli
Post by: rObInX on Mar 13, 2015, 05:24 PM
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.
Title: Re: RentHeli
Post by: hotdogcat on Mar 14, 2015, 01:14 AM

Start by using this code

function onPlayerEnterVehicle( player, veh, isPassenger )
{
if (veh.Model == model)
{
//Your code here
}
}
Title: Re: RentHeli
Post by: Kratos_ on Mar 14, 2015, 02:34 PM
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 .
Title: Re: RentHeli
Post by: Finch on Mar 15, 2015, 10:48 AM
give me some help then i will be able to create
Title: Re: RentHeli
Post by: BigcaT_ on Mar 15, 2015, 11:11 AM
I think that if you make it, it will not working perfectly..
Title: Re: RentHeli
Post by: Finch on Mar 15, 2015, 12:16 PM
what u trying to say?
Title: Re: RentHeli
Post by: Finch on Mar 16, 2015, 10:57 AM
please help me in this solution
Title: Re: RentHeli
Post by: hotdogcat on Mar 16, 2015, 04:36 PM
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