Quote:
Originally Posted by Konstantinos
Sorry, my mistake "..those which were not set to 1".
I actually wrote a function yesterday that is supposed to respawn the vehicles which are not occupied (trailers that are attached to occupied vehicles won't respawn either). Just make sure that you are up-to-date to YSI for the "Vehicle" iterator:
pawn Code:
RespawnVehicles() { new bool: occupied_vehicle[MAX_VEHICLES char], vehicleid;
foreach(new i : Player) { if ((vehicleid = GetPlayerVehicleID(i))) { occupied_vehicle{vehicleid} = true; occupied_vehicle{GetVehicleTrailer(vehicleid)} = true; } } foreach(new v : Vehicle) { if (!occupied_vehicle{v}) SetVehicleToRespawn(v); } }
|
Alright.. I just tried to up-to-date my
YSI and.. everything is broke. I've warning on every va_format and I still don't have Vehicle's Iterator.
If you can share me your include, it's would be good. u.u