- 0
Problema DespawnVehicle
-
Similar Content
-
Recently Browsing 0 members
- No registered users viewing this page.
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.
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;
}
2 answers to this question
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now