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



car enter problem - uploadboys - 21.09.2016

hello

i have RPG (role play game ) gamemod

i found 1 problem and i cant solve that

peroblem: when i lock the car and i left the server or relog into the server, afther spawn my personal car the other users can enter the car and car is the lock !!!




Re: car enter problem - Lynn - 21.09.2016

Assuming the car is being despawned after you log out(After locking it)
You probably aren't saving and loading the vehicle information, such as if it's locked or not.
You need to set the vehicle params accordingly when the vehicle is spawned.
If it's locked, spawn it with lock params on. Otherwise, spawn it with lock params off.


Re: car enter problem - uploadboys - 21.09.2016

thats work and saving the lock status but othe car enter the car in lock status