Destroy Vehicle
#1

Hello,
I'm doing a boat race.
After The finishing of the race,I want to destory the vehicle that I created before.

Код:
for(new i;i<MAX_PLAYERS;i++) {
if(InBoatRace[i] == 1) {
TogglePlayerControllable(i, 1);
for(new i;i<MAX_PLAYERS;i++)
{
if(InBoatRace[i] == 1) DestroyVehicle(GetPlayerVehicleID(i));
}

The vehicle doesnt destroy.
This is the creation of the vehicle:

Код:
new rand = random(sizeof(RandomRaceSpawns));
Car[i] = CreateVehicle(446,RandomRaceSpawns[rand][0],RandomRaceSpawns[rand][1],RandomRaceSpawns[rand][2],RandomRaceSpawns[rand][3],75,84,3000);
PutPlayerInVehicle(i,Car[i],0);
Thank you for helping!
Reply


Messages In This Thread
Destroy Vehicle - by DevilRevenge - 13.07.2009, 09:38
Re: Destroy Vehicle - by Abernethy - 13.07.2009, 09:40
Re: Destroy Vehicle - by DevilRevenge - 13.07.2009, 09:43
Re: Destroy Vehicle - by saiberfun - 13.07.2009, 10:04

Forum Jump:


Users browsing this thread: 1 Guest(s)