Anti vehicle respawn: Is this possible?
#10

He's asking for a vehicle removal on respawn - not when it 'dies'. Additionally I have no idea why you're using a timer.

Код:
static n_aVehiclePurchased[MAX_VEHICLES] = {0, ...};  // Flag to determine a vehicle is purchased

// When you create your vehicle, assign the relevant array iteration to the vehicle ID.
n_aVehiclePurchased[CreateVehicle(model, x, y, z, rot, color, color2, respawntime)] = 1;


// Now just check when the vehicle respawns if it's a purchased one. If so remove it.
public OnVehicleRespawn(vehicleid)
{
  if(!n_aVehiclePurchased[vehicleid])
    return;
  
  n_aVehiclePurchased = 0;
  DestroyVehicle(vehicleid);
  
}
Reply


Messages In This Thread
Anti vehicle respawn: Is this possible? - by Jochemd - 19.04.2010, 16:53
Re: Anti vehicle respawn: Is this possible? - by Jeffry - 19.04.2010, 16:56
Re: Anti vehicle respawn: Is this possible? - by Jochemd - 19.04.2010, 16:57
Re: Anti vehicle respawn: Is this possible? - by Jeffry - 19.04.2010, 17:00
Re: Anti vehicle respawn: Is this possible? - by Jochemd - 19.04.2010, 17:02
Re: Anti vehicle respawn: Is this possible? - by Jeffry - 19.04.2010, 17:03
Re: Anti vehicle respawn: Is this possible? - by Jochemd - 19.04.2010, 17:06
Re: Anti vehicle respawn: Is this possible? - by Jeffry - 19.04.2010, 17:34
Re: Anti vehicle respawn: Is this possible? - by Jeffry - 20.04.2010, 12:19
Re: Anti vehicle respawn: Is this possible? - by Jay_ - 20.04.2010, 12:39

Forum Jump:


Users browsing this thread: 1 Guest(s)