Posts: 105
Threads: 15
Joined: Aug 2012
Reputation:
0
Hi i've scripted my own gamemode (sqlite) it saves all player stats including houses.
now i want to create a vehicle system (car ownership).
Don't know were to start, anyone who could help me? or has a little script or tutorial?
Thanks in advance,
Posts: 210
Threads: 11
Joined: Oct 2012
Reputation:
0
Duplicate the house system but make it so it's a business with a businesstype, then create a businesstype for car dealership and let people use /buycar inside of there. And then simply save the vehicles to the player db.
Posts: 105
Threads: 15
Joined: Aug 2012
Reputation:
0
I know how to save the vehicle in the db, i made a vehicle db, and i can save vehicles in it now, but how to load it on onplayerconnect and create a vehicle from it? And how do i check when i enter a vehicle if its my vehicle?
Posts: 887
Threads: 251
Joined: Jun 2011
Reputation:
0
No one is going to explain these things in this thread, you should see more tutorials if you'd like to expand your capabilities.
Posts: 717
Threads: 11
Joined: Jul 2008
Reputation:
0
Here is a good indicator, how do you identify if a player is the same player? The player ID constantly changes, so how do you identify a SPECIFIC player to be the EXACT SAME player? If you know this, next question:
How do you identify a SPECIFIC vehicle? The vehicle ID constantly changes, so how do you identify a SPECIFIC vehicle constantly? Or rather, how COULD you?
Once you know these two, the magic is to somehow combine the two and you're settled.