11.02.2013, 10:09
Hm i created a vehicle per array.
At OnVehicleDamageStatusUpdate i destroyed vehicle, but the vehicle respawn, i want to destroy
It's a possible bug ?
I don't wrong the script...
pawn Код:
DDA_CAR [ playerid ] = AddStaticVehicleEx ( 405, 347.5996, -1500, 35.9000, 128, 1, 1, 1800);
It's a possible bug ?
pawn Код:
public OnVehicleDamageStatusUpdate(vehicleid, playerid)
{
if ( P_INFO [ playerid ] [ DDA_D ] == 1 ) {
// others..
DestroyVehicle ( DDA_CAR [ playerid ] ); // Here!
DDA_CAR [ playerid ] = -1;
}
return 1;
}