28.12.2010, 19:29
this code doesn't seem to do anything:
public OnVehicleDeath(vehicleid, killerid){
SetTimer("DestroyVehicle(vehicleid)",5000,false);
}
i've tried it with and without (vehicleid), yet it still does nothing. the car respawns and this code is useless.
using this code, i am able to get cars to disappear when their health hits 0, unfortuantely this also means that some cars disappear before they explode:
public OnVehicleDeath(vehicleid, killerid){
DestroyVehicle(vehicleid);
}
can anyone help me to make all (or most) cars explode when they are flipped over, but not respawn after?
public OnVehicleDeath(vehicleid, killerid){
SetTimer("DestroyVehicle(vehicleid)",5000,false);
}
i've tried it with and without (vehicleid), yet it still does nothing. the car respawns and this code is useless.
using this code, i am able to get cars to disappear when their health hits 0, unfortuantely this also means that some cars disappear before they explode:
public OnVehicleDeath(vehicleid, killerid){
DestroyVehicle(vehicleid);
}
can anyone help me to make all (or most) cars explode when they are flipped over, but not respawn after?