The correct way to create a player owned vehicle system
#1

I am debating (with myself) about the correct way to create a player owned vehicle system. I was thinking about storing 4 variables to the player's profile.
These would be:
CarModel
CarX
CarY
CarZ

And when they type /getvehicle, a vehicle with the model of CarModel will spawn at CarX, CarY, CarZ.

I was wondering if anyone could think of a more efficient way to get it, and also how would I handle locking, engines, etcetera?
Reply
#2

My vehicle ownership system is very complicated, it creates a unique 10 digit number, and creates an ini file using that number.

In the ini file I store the model, color, mods, insurance, destroy count, paint ID, spawn position, any parking tickets, vehicle locks, trunk locks, trunk contents and owner.

Then I simply store the ID of the vehicle in the players user file. This way the players can own more than one vehicle, and 'sell' eachother vehicles.
Reply
#3

Wow that's a pretty good way to do it
Do you have msn? I would like to attempt making a system like that and would probably want some help with it along the way. It's fine if you don't want to help me, though.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)