sa-mp-fixes icon indicating copy to clipboard operation
sa-mp-fixes copied to clipboard

PutPlayerInVehicle when special action != none

Open IstuntmanI opened this issue 7 years ago • 2 comments

http://wiki.sa-mp.com/wiki/Bugs:

  • If the player has a special action, he will be instantly removed from the vehicle and the special action will be stopped.

Possible fix: call SetPlayerSpecialAction( SPECIAL_ACTION_NONE ) (don't forget about the SPECIAL_ACTION_JETPACK fix of calling ClearAnimations) before PutPlayerInVehicle, if GetPlayerSpecialAction( playerid ) != SPECIAL_ACTION_NONE. It may need a delay too,

IstuntmanI avatar Aug 05 '17 16:08 IstuntmanI

No need to remember other fixes, just put the new one after the old fix, and it will be applied anyway.

Y-Less avatar Aug 05 '17 20:08 Y-Less

Forgot about this one, it is another well-known ancient bug:

http://wiki.sa-mp.com/wiki/Bugs:

If the player has the parachute open and he is put in a vehicle in the same area, he will still have the parachute attached and the sitting position bugged. If he is put in a vehicle in another area, he will be instantly removed from the vehicle.

Should probably clear animations before being put in a vehicle, if he has that parachute animation.

These two issues are similar and that's why I didn't create another issue for this one.

IstuntmanI avatar Aug 19 '17 14:08 IstuntmanI