SA-MP Forums Archive
Is there a way to remove car doors ? - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Is there a way to remove car doors ? (/showthread.php?tid=573167)



Is there a way to remove car doors ? - Toxik - 05.05.2015

Hey guys i was looking at new verion of samp (0.3.7)
is there a way to make doors fall down when cars spawn ?


Re: Is there a way to remove car doors ? - Alpay0098 - 05.05.2015

I don't think so ...
There's a function to Open/Close car doors but there's not any function to remove them.


Re: Is there a way to remove car doors ? - Mado - 05.05.2015

https://sampwiki.blast.hk/wiki/UpdateVehicleDamageStatus

https://sampwiki.blast.hk/wiki/DoorStates


Re: Is there a way to remove car doors ? - Alpay0098 - 05.05.2015

Quote:
Originally Posted by Mado
Посмотреть сообщение
Oops , I didn't know ... +Rep.


Re: Is there a way to remove car doors ? - MP2 - 05.05.2015

Also you may want this:

pawn Код:
decode_doors(doors, &bonnet, &boot, &driver_door, &passenger_door)
{
    bonnet = doors & 7;
    boot = doors >> 8 & 7;
    driver_door = doors >> 16 & 7;
    passenger_door = doors >> 24 & 7;
}

encode_doors(bonnet, boot, driver_door, passenger_door, behind_driver_door, behind_passenger_door)
{
    #pragma unused behind_driver_door
    #pragma unused behind_passenger_door
    return bonnet | (boot << 8) | (driver_door << 16) | (passenger_door << 24);
}



Re: Is there a way to remove car doors ? - Toxik - 05.05.2015

Quote:
Originally Posted by Mado
Посмотреть сообщение
i cant figure out that codes ...
Please can u code it for me ?