Sqlite vehicle system - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Sqlite vehicle system (
/showthread.php?tid=562798)
Sqlite vehicle system -
Cheesus - 11.02.2015
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,
Re: Sqlite vehicle system -
GGRoleplay - 11.02.2015
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.
Re: Sqlite vehicle system -
Cheesus - 11.02.2015
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?
Re: Sqlite vehicle system -
Cheesus - 12.02.2015
pawn Код:
If(ScriptingHelp[thread][562798][answered] == 0) return BumpTopic(562798);
Re: Sqlite vehicle system -
Cheesus - 18.02.2015
Help anyone?
Re: Sqlite vehicle system -
PaulDinam - 18.02.2015
No one is going to explain these things in this thread, you should see more tutorials if you'd like to expand your capabilities.
Re: Sqlite vehicle system -
Extremo - 18.02.2015
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.