Page 1 of 1

Boats for rent, reset if not returned

Posted: Thu Jan 03, 2008 4:18 am
by Jemrada
HI,

I remember at one time this was tried. Allowing people to use a boat to cross water but people was leaving it in the middle of the water.

Is it possible to allow people to rent or use a boat, but if it is left in the middle of the water or somewhere that it can't be reached. Can it reset after a certain amount of time inactivity?

Posted: Wed Jan 09, 2008 2:28 am
by markxxx420
i have a script for this. just make a building that sells a usable item, rename it to something like renta-boat. then in servergamescript.txt in your programfiles/theuniversal/data folder add this;


Event( "UseItem", "Renta-boat" )
{
*command=setvehicle %player% 4
}

you will have to change the name renta-boat to whatever your usable item was renamed to.

Posted: Wed Jan 09, 2008 12:00 pm
by Jemrada
Thanks, What about how long they can use it?

I would like to make it where it can't be taken with them. I want it to only be used for that time they need to go on the water or maybe a certain amount of time.

Posted: Wed Jan 09, 2008 12:16 pm
by zaroba
once usable items are used they vanish from your inventory.

so a player could buy a boat from a boat rental shop, use the item when they cross the water, and then they would have to buy another for the next crossing.

Posted: Wed Jan 09, 2008 2:05 pm
by Jemrada
OK, sounds good.

That will work. So they can use it until they select to a new vehicle and then it gone. Excellent


Would this work for maybe a house/tent? I am looking for a way to use a tent as a beginner or low level building with no storage.