Jump to content
  • 0

Masina in functiune se respawneaza singura, any fix?


.maSTER

Question

8 answers to this question

Recommended Posts

  • 0

rescrie functia DespawnVehicle astfel 

function DespawnVehicle(carid) {
    new dbid = FindSpawnID(carid);
    if(VehicleHaveDriver(dbid)) {
        VehicleTimer[dbid] = SetTimerEx("DespawnVehicle", 60000*20, 0, "d", dbid);// aici se reseteaza timer-ul pentru a nu ramane masina pe server
        return 1;
    }
    if(CarInfo[dbid][Spawned] != 0) DestroyPlayerCar(dbid);
    printf("Vehicle %d despawned. [db: %d]", carid, dbid);
    return 1;
}
 

daca are sofer se va marii timpul la care se va incerca iar despawnarea, poti sa faci asta in mai multe variante, dar asa mi-a venit mai simplu acum sa-ti dau

  • Upvote 1
Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.