SA-MP Forums Archive
Question. - 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: Question. (/showthread.php?tid=202730)



Question.[Solved] - Tee - 25.12.2010

How long do mods take to load when a vehicle spawns?

Because in my vehicle system the mods save upto the time when the player disconnect but when the reconnect all mods go back to 0.


Re: Question. - FreshDoubleX - 25.12.2010

I think you have some respawn function there. But, when you disconnect, and then connect, does your vehicle is on the same place ? Or vehicle is respawned too.


Re: Question. - Tee - 25.12.2010

When they disconnects the vehicle gets destroyed and when they connect it gets created.


Re: Question. - FreshDoubleX - 25.12.2010

Check for respawncars function in your gamemode, also search filterscripts if you have them. You have respawn function under onplayerdisconnect or there is a timer that respawns all cars.


Re: Question. - Tee - 25.12.2010

When the player logs in the car gets created. But i have a timer that saves the files every 1 second, could that be conflicting with it?


Re: Question. - FreshDoubleX - 25.12.2010

Well, does this vehicle system saves your vehicle parts/mods ?


Re: Question. - Tee - 25.12.2010

Ok the timer that is called every 1 second saves that players stats as well as the vehicle stats. When the player mods the vehicle then disconnects, i take a look at the vehicle file and see the mods. But as soon as they login the car gets created, with the color they added and the paintjob, just no mods.

Thanks for your help this far.


Re: Question. - SkizzoTrick - 25.12.2010

They get instantly loaded in my server


Re: Question. - Tee - 25.12.2010

How do you save them?