Vehcile system
#1

Hello everybody,
okay i downloaded a gamemode, in this gamemode the vehicle system is little differnet,
when you /q your car will destroy and when the player connect again will come again, and its non rp.
there is at OnPlayerDisconnect DestroyVehicleForPlayer.
and i want it when player disconnect his car stay at the server.
Someone can help me with this? its really hard.
Thanks.
Reply
#2

Just create all player vehicles OnGameModeInit (only possible depending on how you're storing the data) and don't destroy them OnPlayerDisconnect.
Reply
#3

i don't understand what you mean :c
Reply
#4

The car is connected to the user account system. Extract the code out of that system and make it so the car will spawn when the server runs. A little tip though, it may be a little "un rp" but it will reduce a massive amount of useless vehicles around your server as well as help decrease some lag.

We aren't here to script it for you, but to advise you. Now if you show everyone some code, we may be able to work with you and fix your problem.
Reply
#5

Okey, but which code you want?
Reply
#6

bump
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)