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



Vehicle problem - jimis - 01.09.2014

Hi guys, i am using this vehicle system on my server, https://sampforum.blast.hk/showthread.php?tid=276887 its a very nice sytem, but when a player disconnect his car remain in game, thats mean that if i have 50 players and they have 5 vehicles each other then all those cars exist on game the same time and the server is lagg.. , someone may show me how to modifie that, or onother nice system but with load cars on player connect??


Re: Vehicle problem - K9IsGodly - 01.09.2014

I think you could just destroy it on logout, and then read from the Vehicles bit of AVS and just load that same car with the exact specifications that it had.


Re: Vehicle problem - jimis - 01.09.2014

Quote:
Originally Posted by K9IsGodly
Посмотреть сообщение
I think you could just destroy it on logout, and then read from the Vehicles bit of AVS and just load that same car with the exact specifications that it had.
thanks for reply man, but the problem is that avs save the car in a text file with name of car id not the owner name, and its also says on filterscript init "loadvehicles" which means that load all cars together, how i can just load player's cars id on player connect?