24.05.2014, 09:49
Hello. How can I make in this code that when I respawn all vehicles I want not to respawn trailers if you know what I mean?
pawn Код:
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 < CAR_AMOUNT; car++)
{
if(!unwanted[car] && GetVehicleModel(car) != 584) SetVehicleToRespawn(car);
}