Posts: 836
Threads: 107
Joined: Sep 2010
Reputation:
0
25.12.2010, 00:00
(
Последний раз редактировалось Tee; 16.03.2011 в 01:15.
)
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.
Posts: 167
Threads: 7
Joined: Nov 2010
Reputation:
0
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.
Posts: 836
Threads: 107
Joined: Sep 2010
Reputation:
0
When they disconnects the vehicle gets destroyed and when they connect it gets created.
Posts: 167
Threads: 7
Joined: Nov 2010
Reputation:
0
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.
Posts: 836
Threads: 107
Joined: Sep 2010
Reputation:
0
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?
Posts: 167
Threads: 7
Joined: Nov 2010
Reputation:
0
Well, does this vehicle system saves your vehicle parts/mods ?
Posts: 836
Threads: 107
Joined: Sep 2010
Reputation:
0
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.