Function OnVehicleDeath(vehicleid, killerid)
{
FRAC_OnVehicleDeath(vehicleid, killerid);
for(new playerid = 0; playerid < MAX_PLAYERS; playerid++)
{
for(new x = 0; x < MaxVeh; x++)
{
if(IsPlayerConnected(playerid) && Dtc_PlayerHaveCar[playerid][x])
{
if (vehicleid == PlayerCar[playerid][x][CarId])
{
DestroyVehicle(PlayerCar[playerid][x][CarId]);
PlayerCarSpawn(playerid,x);
}
}
}
}
return 1;
}
Wie lasse ich das Fahrzeug explodieren?