SA-MP Forums Archive
Cardealership - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Cardealership (/showthread.php?tid=200376)



Cardealership - Berky - 18.12.2010

Yo G's
I wanted to ask something about Cardealership on a server, I want to make a Carealership but don't know a idea what method to use, (static). I want the car to be like Static and to display from who it is, so is it an idea to make Cars load from a .ini or from a .cfg? Like:
Code:
 Owned | Owner|Vehicle License Plate| XPos| YPos | ZPos| CarColor
Owned = Is it owned? 0/1
Owner = Who owns the vehicle.
Vehicle License Plate = Displays the vehicle license plate OnGameModeInit();
XPos = X Position
YPos = Y Position
ZPos = Z Position
Carcolor = Color of the car

Should it actuelly be loaded via a .ini (Information for each player) or via a .cfg which is just like:
Code:
CarInfo[i]Owned = 1;
Code:
CarSave(); < Which saves the information applied above.



Re: Cardealership - [UG]Scripter - 18.12.2010

I'd save it on a per-player basis, Purely for the fact that it's easier when something goes wrong...


Re: Cardealership - Berky - 18.12.2010

But you mean.. OnPlayerLogin, that's ugly.. If you logg out your car goes with you, and if you log in it spawns.