12.11.2013, 13:33
hi i need to make an not sitible ant not movetlib vehicle, so no one can enter it or push it in to onother place, the question is how?
new engine, lights, alarm, doors, bonnet, boot, objective; GetVehicleParamsEx(vehicleid, engine, lights, alarm, doors, bonnet, boot, objective); SetVehicleParamsEx(vehicleid, 0,0,0,1,0,0,0);
you can do it with this:
Код:
new engine, lights, alarm, doors, bonnet, boot, objective; GetVehicleParamsEx(vehicleid, engine, lights, alarm, doors, bonnet, boot, objective); SetVehicleParamsEx(vehicleid, 0,0,0,1,0,0,0); |
new engine, lights, alarm, doors, bonnet, boot, objective;
GetVehicleParamsEx(tacka1 || tacka2 || tacka3 || tacka, engine, lights, alarm, doors, bonnet, boot, objective);
SetVehicleParamsEx(tacka1 || tacka2 || tacka3 || tacka, 0,0,0,1,0,0,0);
pawn Код:
|
You can't "lock it in place", if that's what you mean. Try checking every X time if the vehicle is still in the position it's supposed to be and reset it to the correct position if it's not.
As for the vehicle not being enterable by other players. You can lock the doors & check if the player is the car owner under OnPlayerEnterVehicle() |