[Include] freezeVehicle and UnfreezeVehicle
#9

So is the purpose of this to be used when a player is outside a vehicle? If it isn't this is pointless, as:

pawn Код:
new bool:IsVehicleFrozen[MAX_VEHICLES];
   
    stock FreezeVehicle(vehicleid)
    {
        if(IsPlayerInAnyVehicle(playerid))
        {
            TogglePlayerControllable(playerid, false);
            IsVehicleFrozen[GetPlayerVehicleID(playerid)] = true;
            return true; // dont need to do this, but put it out there for the sake of it.
        }
        else return false; // you dont even need to do this either
       
    }
does the same thing i believe. If it isn't it's a much easier method anyways


@pdsk2012

I have no idea, but if this is some sort of method to stop a player driving a vehicle, they can quite simply set a variable to check if the vehicle is enter-able, then if yes let him in, else chuck him out.

Also like you said, why the f**k would you wanna freeze a vehicle?
Reply


Messages In This Thread
freezeVehicle and UnfreezeVehicle - by boomerboom - 15.01.2014, 17:29
Re: freezeVehicle and UnfreezeVehicle - by Biesmen - 15.01.2014, 17:33
Re: freezeVehicle and UnfreezeVehicle - by boomerboom - 15.01.2014, 17:36
Re: freezeVehicle and UnfreezeVehicle - by Patrick - 15.01.2014, 17:47
Re: freezeVehicle and UnfreezeVehicle - by boomerboom - 15.01.2014, 17:53
Re: freezeVehicle and UnfreezeVehicle - by iJumbo - 15.01.2014, 21:52
Re: freezeVehicle and UnfreezeVehicle - by boomerboom - 16.01.2014, 11:14
Re: freezeVehicle and UnfreezeVehicle - by iJumbo - 16.01.2014, 11:21
Re: freezeVehicle and UnfreezeVehicle - by sammp - 17.01.2014, 21:00
Re: freezeVehicle and UnfreezeVehicle - by Abagail - 17.01.2014, 21:08

Forum Jump:


Users browsing this thread: 1 Guest(s)