SA-MP Forums Archive
[INI] /park command? - 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: [INI] /park command? (/showthread.php?tid=375331)



[INI] /park command? - Admigo - 06.09.2012

Heey all,

How to make a /park command to save u vehicle at a location and when u restart server your vehicle is there?
So players can park them vehicle in the server.
I tried to make a system but the system dont load the vehicles only saves it.

Please help me with this.

Admigo


Re: [INI] /park command? - Cjgogo - 06.09.2012

Well, my vehicle system saves vehicle files as %d.ini(1.ini,2.ini), the number showing actually the number of the BHOUGHT vehicles in the server.Also every of the bhought vehicles has a variable VehicleCounter, wich saves the respective number(the next number of the car that is about to be bhought, if, in total, your players bhought 15 vehicles, the index for the current vehicle would be 16, therefor the VehicleCounter[vehicleid] variable would be also 16, and the car's file, 16.ini).And then just open the file, using the VehCounter variable(wich is obviusly different for every bhought vehicle.In this case[16] open with ini the file %d.ini[16.ini]).


Re: [INI] /park command? - Admigo - 06.09.2012

Its really strange the vehicles are not loading. The vehicles needs to be owned by players.