[HELP] respawn
#1

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);
    }
Reply


Messages In This Thread
[HELP] respawn - by Luca12 - 24.05.2014, 09:49
Re: [HELP] respawn - by MattTucker - 24.05.2014, 10:41
Re: [HELP] respawn - by Luca12 - 24.05.2014, 10:48
Re: [HELP] respawn - by MasonSFW - 24.05.2014, 10:50
Re: [HELP] respawn - by Luca12 - 24.05.2014, 11:15

Forum Jump:


Users browsing this thread: 1 Guest(s)