DestroyVehicle like a respawner?
#1

Hm i created a vehicle per array.
pawn Код:
DDA_CAR [ playerid ] = AddStaticVehicleEx ( 405, 347.5996, -1500, 35.9000, 128, 1, 1, 1800);
At OnVehicleDamageStatusUpdate i destroyed vehicle, but the vehicle respawn, i want to destroy
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;
}
I don't wrong the script...
Reply
#2

You cannot destroy vehicles with that, you must use CreateVehicle function if you wish to destroy vehicles later.
Reply
#3

I created and with CreateVehicle and AddVehicleStaticEx.
Conclusion: DON'T WORK .
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)