Need help with cars autorespawning. - 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: Need help with cars autorespawning. (
/showthread.php?tid=556781)
Need help with cars autorespawning. -
danielpalade - 11.01.2015
For some reason whenever a car is unused it respawns automatically after a couple of minutes.
How can i make it so it won't respawn?
My cars are defined as AddStaticVehicle so i can't set the respawn delay there as in CreateCar.
Is there a native that i can put under ongamemodeinit or something?
Re : Need help with cars autorespawning. -
MCZOFT - 11.01.2015
in your gamemode at the end of AddStaticVehicle(......,-1) -1 to never letting the car getting respawnd
Re: Re : Need help with cars autorespawning. -
danielpalade - 12.01.2015
Quote:
Originally Posted by MCZOFT
in your gamemode at the end of AddStaticVehicle(......,-1) -1 to never letting the car getting respawnd
|
There is no way I can do this with AddStaticVehicle(carid, x, y, z, rot, color1, color2); if i add -1 after the color2 it will say warning 202: number of arguments does not match definition.
Re: Need help with cars autorespawning. -
SWAT4 - 12.01.2015
Are You Using a Specefic Admin System,? IF Yes Please Tell us , Cuz Most Of The New Systems Contains Stocks To Delete Cars Every 2 Mins or More Or Less