SA-MP Forums Archive
Vehicles not respawning - 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: Vehicles not respawning (/showthread.php?tid=569991)



Vehicles not respawning - MP2 - 04.04.2015

When a vehicle is destroyed without ever having an occupant in it, it doesn't respawn. This can be quite a problem. Can this please be fixed ASAP? I have a gas tank shooting script which can be used to blow up unoccupied vehicles, and they don't respawn. If this isn't fixed I'm going to have to disable it...

I did some testing, and it appears the vehicles don't get destroyed. GetVehicleModel doesn't return 0 (meaning they're created) and their position (GetVehiclePos) is reported as their spawn points, but they aren't there. I guess that means this is a client-side issue?

PLEASE fix this ASAP.

EDIT: Re-joined the server. The vehicles were back at their spawn points but on fire. They then blew up and never respawned.. again.


Re: Vehicles not respawning - T-N-Z - 04.04.2015

I have noticed that too, but only on trains and trams, so I am not sure if that's 0.3.7 issue only. If you leave them, they just stay in the same place and never respawn.

Also there's another bug if you push a empty vehicle into a water it won't respawn, but that's an old issue, should be fixed.


Re: Vehicles not respawning - n0minal - 04.04.2015

Confirmed, and seems weird, this bug makes scripts like unoccupied vehicle damage be useless, please fix this Kalcor.

Код:
new veh;

CMD:ccreate(playerid, params[])
{
	new model;
	if(!sscanf(params, "i", model))
	{
		if(399 < model < 601)
		{
			new Float:x, Float:y, Float:z;
			GetPlayerPos(playerid, x, y, z);
			veh = CreateVehicle(model, x + 1.5, y + 1.5, z + 0.5, 0, 0, 0, 1000);
		}
	}
	return 1;
}

CMD:des() return SetVehicleHealth(veh, 0.0);



Re: Vehicles not respawning - beckzy - 04.04.2015

Yes please fix this


Re: Vehicles not respawning - Kar - 08.04.2015

YESSSS, please fix this issue. Only way to fix is to SetVehicleToRespawn, everyone wants this fixed. Constantly players complain about seeing vehicles burning.

This is an annoying BUG.


Re: Vehicles not respawning - Matess - 08.04.2015

It's possible to "fix" this with YSF -> SetVehicleBeenOccupied(), so maybe add this function only?