17.01.2014, 21:00
So is the purpose of this to be used when a player is outside a vehicle? If it isn't this is pointless, as:
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?
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
}
@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?

