Fahrzeug/Map Problem

Diese Seite verwendet Cookies. Durch die Nutzung unserer Seite erklären Sie sich damit einverstanden, dass wir Cookies setzen. Weitere Informationen

  • Inwiefern ein Code?

    Wenn Fahrzeug destroyed wird lädt die map einfach neu ich weiß nicht warum das so ist.

    JavaScript-Quellcode: stock DeleteVehicle(vehicleid)

    1. stock DeleteVehicle(vehicleid)
    2. {
    3. if (IsValidVehicle(vehicleid))
    4. {
    5. Vehicle[vehicleid][vehNeonID] = 0;
    6. DestroyDynamic3DTextLabel(Vehicle[vehicleid][vehText]);
    7. DestroyDynamicObject(Vehicle[vehicleid][vehNeon1]);
    8. DestroyDynamicObject(Vehicle[vehicleid][vehNeon2]);
    9. DestroyDynamicObject(Vehicle[vehicleid][vehSiren1]);
    10. DestroyDynamicObject(Vehicle[vehicleid][vehSiren2]);
    11. DestroyDynamicObject(Vehicle[vehicleid][vehSiren3]);
    12. DestroyDynamicObject(Vehicle[vehicleid][vehSiren4]);
    13. DestroyDynamicObject(Vehicle[vehicleid][vehSiren5]);
    14. DestroyDynamicObject(Vehicle[vehicleid][vehUCL]);
    15. Vehicle[vehicleid][vehNeon1] = INVALID_OBJECT_ID;
    16. Vehicle[vehicleid][vehNeon2] = INVALID_OBJECT_ID;
    17. Vehicle[vehicleid][vehSiren1] = INVALID_OBJECT_ID;
    18. Vehicle[vehicleid][vehSiren2] = INVALID_OBJECT_ID;
    19. Vehicle[vehicleid][vehSiren3] = INVALID_OBJECT_ID;
    20. Vehicle[vehicleid][vehSiren4] = INVALID_OBJECT_ID;
    21. Vehicle[vehicleid][vehSiren5] = INVALID_OBJECT_ID;
    22. Vehicle[vehicleid][vehUCL] = INVALID_OBJECT_ID;
    23. Vehicle[vehicleid][vehUCLCreated] = 0;
    24. Vehicle[vehicleid][vehKMStand] = 0;
    25. Vehicle[vehicleid][vehTankKM] = 0;
    26. Vehicle[vehicleid][vehKMStandCount] = 0;
    27. Vehicle[vehicleid][vehMaterialien] = 0;
    28. Vehicle[vehicleid][vehDrogen] = 0;
    29. Vehicle[vehicleid][vehAKRounds] = 0;
    30. Vehicle[vehicleid][vehM4Rounds] = 0;
    31. Vehicle[vehicleid][vehSniperRounds] = 0;
    32. Vehicle[vehicleid][vehDeagleRounds] = 0;
    33. Vehicle[vehicleid][vehMP5Rounds] = 0;
    34. Vehicle[vehicleid][vehShotgunRounds] = 0;
    35. if (Vehicle[vehicleid][vehMotor])KillTimer(Vehicle[vehicleid][VehicleTimer]);
    36. Vehicle[vehicleid][vehMotor] = false;
    37. Vehicle[vehicleid][vehLicht] = false;
    38. Vehicle[vehicleid][vehHaube] = false;
    39. Vehicle[vehicleid][vehKRaum] = false;
    40. Vehicle[vehicleid][vehFuel] = VehicleData[GetVehicleModel(vehicleid)-400][vehMaxTank];
    41. Vehicle[vehicleid][vehPosX2] = -1;
    42. Vehicle[vehicleid][vehPosY2] = -1;
    43. Vehicle[vehicleid][vehPosZ2] = -1;
    44. DestroyVehicle(vehicleid);
    45. return 1;
    46. }
    47. return 0;
    48. }
    Alles anzeigen