Fac Veh Respawn URGENT**
#1

I have this to respawn LSPD vehicle's:

for(new i = 0; i < sizeof(LSPDVehicles); i++) {
SetVehicleToRespawn(LSPDVehicles[i]);

But I want it to only respawn vehicles that people ARE NOT in. This respawns every vehicle even if its being used.
Reply
#2

pawn Код:
for(new i = 0; i < sizeof(LSPDVehicles); i++) {
SetVehicleToRespawn(LSPDVehicles[i]);
else if IsPlayerInAnyVehicle);
SetVehicleToStay(LSPDVehicles[i]);
Not sure if it will work.

BTW: you have to define SetVehicleToStay if you're gonna try this.
Reply
#3

Try this

pawn Код:
for(new i = 0; i < sizeof(LSPDVehicles); i++) {
if(LSPDVehicles[i] > 0 && IsVehicleOccupied(LSPDVehicles[i]) == INVALID_VEHICLE_ID)
SetVehicleToRespawn(LSPDVehicles[i]);
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)