Vehicle getting auto respawned? - 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: Vehicle getting auto respawned? (
/showthread.php?tid=627145)
Vehicle getting auto respawned? -
Mokless - 24.01.2017
So the problem is kinda weird. There are few added vehicles around the city using following code.
Код:
CreateVehicle(518, 1411.2491, -2347.3430, 13.2101, 180.0483, 9, 39, 600);
Whenever a player driving it, it gets destroyed (hidden). It's not getting re-spawned either. What could be the problem?
I have tried adding a vehicle with no respawn delay too. It still getting removed. There's no exact time it's getting removed. It's random.
Re: Vehicle getting auto respawned? -
Yaa - 24.01.2017
PHP код:
CreateVehicle(518, 1411.2491, -2347.3430, 13.2101, 180.0483, 9, 39, -1);
for no respawn delay ^^
if car dead then it's got respawned
NOTE: if you setted a respawn_delay, the passanger not count! the car got respawned if there no DRIVER in
Re: Vehicle getting auto respawned? -
Mokless - 24.01.2017
Quote:
Originally Posted by Yaa
PHP код:
CreateVehicle(518, 1411.2491, -2347.3430, 13.2101, 180.0483, 9, 39, -1);
for no respawn delay ^^
if car dead then it's got respawned
NOTE: if you setted a respawn_delay, the passanger not count! the car got respawned if there no DRIVER in
|
I tried this already. It's still getting removed.
Not RESPAWNING either. That's the problem. Not sure where it's going.
Re: Vehicle getting auto respawned? -
princejeet1510 - 24.01.2017
Well convert the CreateVehicle to AddStaticVehicleEx
And then set the respawn time to -1 that might help.
https://sampwiki.blast.hk/wiki/AddStaticVehicleEx
Re: Vehicle getting auto respawned? -
LennyBE - 24.01.2017
Anything in your script that can cause a vehicle to destroy?