11.05.2015, 23:31
pawn Код:
forward RACtime(); public RACtime()
{
new bool:unwanted[CAR_AMOUNT];
for(new player=0; player<MAX_PLAYERS; player++) if(IsPlayerInAnyVehicle(player))
unwanted[GetPlayerVehicleID(player)]=true;
for(new car = 1; car <= 420; car++) if(!unwanted[car] || IsTrailerAttachedToVehicle(player))
SetVehicleToRespawn(car);
}
pawn Код:
forward RACtime(); public RACtime()
{
new bool:unwanted[CAR_AMOUNT];
for(new player=0; player < GetPlayerPoolSize(); player++) if(IsPlayerInAnyVehicle(player))
unwanted[GetPlayerVehicleID(player)]=true;
for(new car; car < GetVehiclePoolSize(); car++) if(!unwanted[car] || IsTrailerAttachedToVehicle(player))
SetVehicleToRespawn(car);
}