01.04.2011, 16:59
Hi,
I have one problem i want to destroy just few cars with this
but this car hadn't destroyed.
But if I write DestroyVehicle(vehicleid); then all cars will become destroyable( such as AddStaticVehicle(Ex))
So what I should do to make it work right
I have one problem i want to destroy just few cars with this
pawn Код:
public OnVehicleDeath(vehicleid, killerid)
{
DestroyVehicle(Car[killerid]);
return 1;
}
pawn Код:
new Car[MAX_PLAYERS];
pawn Код:
Car[playerid] =CreateVehicle(522,x+2,y+2,z+2,0.0,-1,-1,-1);// A lot of lines like this
but this car hadn't destroyed.
But if I write DestroyVehicle(vehicleid); then all cars will become destroyable( such as AddStaticVehicle(Ex))
So what I should do to make it work right