- 0
Problema DespawnVehicle
-
Similar Content
-
- 1 reply
- 147 views
-
Problema
By ImJustSlim,
- 3 answers
- 258 views
-
- 2 replies
- 141 views
-
- 1 answer
- 283 views
-
- 6 answers
- 1,125 views
-
-
Recently Browsing 0 members
- No registered users viewing this page.
Question
Gabby
Salut, masinile personale nefolosite nu primesc despawn.
Cod vechi:
function DespawnVehicle(carid) {
new dbid = FindSpawnID(carid);
if(CarInfo[dbid][Spawned] != 0) DestroyPlayerCar(dbid);
printf("Vehicle %d despawned. [db: %d]", carid, dbid);
return 1;
}
Am modificat cum am gasit intr-un topic dar nu functioneaza:
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;
}
Link to comment
Share on other sites
2 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.