Vehcile system - 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: Vehcile system (
/showthread.php?tid=555449)
Vehcile system -
Rabea - 07.01.2015
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.
Re: Vehcile system -
Divergent - 07.01.2015
Just create all player vehicles OnGameModeInit (only possible depending on how you're storing the data) and don't destroy them OnPlayerDisconnect.
Re: Vehcile system -
Rabea - 07.01.2015
i don't understand what you mean :c
Re: Vehcile system -
Steven82 - 07.01.2015
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.
Re: Vehcile system -
Rabea - 07.01.2015
Okey, but which code you want?
Re: Vehcile system -
Rabea - 14.01.2015
bump