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


Messages In This Thread
DestroyVehicle like a respawner? - by gabyk - 11.02.2013, 10:09
Re: DestroyVehicle like a respawner? - by ryansheilds - 11.02.2013, 10:17
Re: DestroyVehicle like a respawner? - by gabyk - 11.02.2013, 11:59

Forum Jump:


Users browsing this thread: 1 Guest(s)