21.11.2014, 19:14
You could always use a system like this, and when the player locks the vehicle just lock the car (doors are the locks), and when you spawn the vehicle (when you load them) change the variables too.
pawn Код:
forward Encode_Vehicle(vehicleid, engine, lights, alarm, doors, bonnet, boot, objective);
public Encode_Vehicle(vehicleid, engine, lights, alarm, doors, bonnet, boot, objective)
{
SetVehicleParamsEx(vehicleid, engine, lights, alarm, doors, bonnet, boot, objective);
}