Open Vehicle Doors
#1

Hi guys,

I'm searching a way to open the door of a vehicle and keep it open (I mean "open" and not "unlocked"). The problem is, that if I use

pawn Код:
CMD:open(playerid, params[])
{
    new vehicleid = GetPlayerVehicleID(playerid);
    new panels, doors, lights, tires;
    GetVehicleDamageStatus(vehicleid, panels, doors, lights, tires);
    UpdateVehicleDamageStatus(vehicleid, panels, 65536, lights, tires);
    return 1;
}
the character opens the door but immediatly closes it again. I need the door to remain open... anyone having an idea, how to do that?
Reply
#2

Just when the character opens the door, try using
pawn Код:
ClearAnimations(playerid);
or TogglePlayerControllable for some ms?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)