Car unlocked only for 1 player
#2

That loop is unnecessary, you can simply use OnVehicleStreamIn callback to do it:
pawn Код:
public OnVehicleStreamIn(vehicleid, forplayerid) {

    if(vehicleid == car_dealer_car[0]) {

        if(onmission[forplayerid] == 1) //If player is in mission.
            SetVehicleParamsForPlayer(car_dealer_car[0], forplayerid, 1, 0); //Unlocks the vehicle.
        else //If not..
            SetVehicleParamsForPlayer(car_dealer_car[0], forplayerid, 1, 1); //Locks the vehicle.
    }
    return 1;
}
Reply


Messages In This Thread
Car unlocked only for 1 player - by Lajko1 - 29.04.2016, 19:55
Re: Car unlocked only for 1 player - by Lordzy - 29.04.2016, 20:00
Re: Car unlocked only for 1 player - by slipnkit - 29.04.2016, 20:02
Re: Car unlocked only for 1 player - by Lajko1 - 29.04.2016, 20:18

Forum Jump:


Users browsing this thread: 2 Guest(s)