#1

Hello, I have a problem. I did a job farmer, which is attached to a tractor trailer, the problem is that the / rac trailer is respawn, you can make this a restriction no longer respawn if used?

/ rac = respawn all cars.

pawn Код:
CMD:rac(playerid, params[])
{
    if(playerLogged[playerid] == 0) return 0; if(PlayerInfo[playerid][pAdmin] < 3) return NotAdmin(playerid);
    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]) SetVehicleToRespawn(car); }
    return 1;
}
Reply
#2

Umm show where you are spawning that trailer..
Reply
#3

PHP код:
    AttachTrailerToVehicleFarmerJob], FarmerJob] ), AttachTrailerToVehicleFarmerJob10 ], FarmerJob] ),
    
AttachTrailerToVehicleFarmerJob11 ], FarmerJob] ), AttachTrailerToVehicleFarmerJob12 ], FarmerJob] ),
    
AttachTrailerToVehicleFarmerJob13 ], FarmerJob] ); 
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)