25.06.2013, 13:35
You just have to store it. Just like you do with your account system. Which I'm pretty sure you have if you're a Roleplay server.
At my server, I had a folder called players, where I stored every player's stats inside a .int file named after the player.
e.g. Peter_Johnson.ini Albert_Einstein.ini...
So if you would like to save the car parts, First you'd have to make a car ownership script, which basically enables players to buy their cars and spawn them whenever they want, or (if you choose to) spawn them on gamemodeinit.
If this already would be scripted, you would have a file or a database including every information point on the car. E.g.
Here you have to add E.g.
Then whenever a player mods his car, save it to the database/file and restore it on next vehicle spawn.
Hope you learned something. Tell me if you need anymore help.
At my server, I had a folder called players, where I stored every player's stats inside a .int file named after the player.
e.g. Peter_Johnson.ini Albert_Einstein.ini...
So if you would like to save the car parts, First you'd have to make a car ownership script, which basically enables players to buy their cars and spawn them whenever they want, or (if you choose to) spawn them on gamemodeinit.
If this already would be scripted, you would have a file or a database including every information point on the car. E.g.
Код:
Model=522 Owner=Peter_Johnson Color1=2 Color2=222 SpawnX=0.000 SpawnY=0.000 SpawnZ=0.000 SpawnA=0.000 and so on...
Код:
Mod1= Mod2= Mod3= Mod4= and so on.
Hope you learned something. Tell me if you need anymore help.