17.05.2018, 00:16
pawn Код:
stock SetAllVehicleToRespawn()
{
new trailers[MAX_VEHICLES/2];
for(new i = 1, j; i < MAX_VEHICLES; i++)
{
for(new k = 0; k < j; k++) if(i == trailers[k]) goto Continue;
if(IsTrailerAttachedToVehicle(i))
{
trailers[j] = GetVehicleTrailer(i);
j++;
continue;
}
SetVehicleToRespawn(i);
Continue:
}
}