Is there a way to remove car doors ?
#1

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 ?
Reply
#2

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

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

https://sampwiki.blast.hk/wiki/DoorStates
Reply
#4

Oops , I didn't know ... +Rep.
Reply
#5

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);
}
Reply
#6

i cant figure out that codes ...
Please can u code it for me ?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)