Respawn
#1

How to make respawn of all the trailers that I created.
And the trailer should not disappear when the player is connected to the truck.
Reply
#2

How to make respawn for these trailers after writing a command.
Код:
Trailer[0][ID_Trailer] = CreateVehicle(591, 1630.7227, -1089.4471, 24.5123, 269.7912, -1, -1, -1);
Trailer[1][ID_Trailer] = CreateVehicle(591, 1630.7227, -1089.4471, 24.5123, 269.7912, -1, -1, -1);
Trailer[2][ID_Trailer] = CreateVehicle(591, 1630.7227, -1089.4471, 24.5123, 269.7912, -1, -1, -1);
Reply
#3

https://sampwiki.blast.hk/wiki/SetVehicleToRespawn - SetVehicleToRespawn to Respawn your vehicles.
Reply
#4

Player has a connected trailer, how to make it not respawn.
Reply
#5

Then I suppose you will have to respawn the trailer manually one by one. Using their IDs. (/dl)
Reply
#6

I wanted to do CMD for unused trailers. If the player is not sitting in a trailer, then the trailer should be respawn. Just how to do it?
Reply
#7

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:
    }
}
Reply
#8

<REMOVED>
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)