SA-MP Forums Archive
car removal - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: car removal (/showthread.php?tid=66134)



car removal - CJ101 - 19.02.2009

Код:
if(GetVehicleModel(vehicleid) == 498)
{
GivePlayerMoney(playerid,1076);
SendClientMessage(playerid, COLOR_YELLOW, "== You found the weapon van.");
RemovePlayerFromVehicle(playerid);
DestroyVehicle(vehicleid);
}
ok so when the person enters the van, they get the gun. it removes the from the van, and destroys the vehicle. However, the vehicle never can be popped up again.

anyway to remove the vehicle, and have it spawn again later



Re: car removal - Redirect Left - 19.02.2009

Make sure you're using CreateVehicle, not AddStaticVehicle, as they cannot be deleted (as far as I know)

You will need to CreateVehicle the vehicle again at a later point, it's the only way to make a deleted vehicle re-appear.