car removal
#1

Код:
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
Reply
#2

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.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)