10.03.2013, 05:15
This bug is easy to fix for advanced scripters but..
Newbie scripters cannot fix this. So i decided to create this include.
To fix the little skin setting bug in SA-MP.
Demonstration:
When you set your player skin while on the vehicle. The animation sitting of player in the vehicle will be changed to
standing animation (stuck animation). Although you cannot move you're still in the vehicle. This has been fixed by skinfix. When you set your player skin while on the vehicle with skinfix. It will get the player's vehicle id. player's vehicle seat. skinfix will store them to a var. Then when the skin setting is done. The player is in the vehicle again. If you've laggy internet the trick might be epic fail due to internet lag. Another one, My skin is skin id 29. I set my skin to skin id 299. If i kill my self. My skin will be skin id 29 again instead of skin id 299. There is another demonstration here's the video:
[ame]http://www.youtube.com/watch?v=nKS2_s91YCY[/ame]
Tested many times..
Download:
You will need the following to make the include work:
https://sampforum.blast.hk/showthread.php?pid=1696956#pid1696956 (y_hook).
Download Link: http://pastebin.com/w72D28BN
After you put the include in your pawno/include folder.
Open your script then just do.
below the a_samp.
No need functions. The include will do it all.
If you've found bug please let me know it by posting it in this thread.
Credits to
MP2 for the idea (While testing his gBug my brain gives me new idea)
****** for y_hooks
Me for making the include.
Newbie scripters cannot fix this. So i decided to create this include.
To fix the little skin setting bug in SA-MP.
Demonstration:
When you set your player skin while on the vehicle. The animation sitting of player in the vehicle will be changed to
standing animation (stuck animation). Although you cannot move you're still in the vehicle. This has been fixed by skinfix. When you set your player skin while on the vehicle with skinfix. It will get the player's vehicle id. player's vehicle seat. skinfix will store them to a var. Then when the skin setting is done. The player is in the vehicle again. If you've laggy internet the trick might be epic fail due to internet lag. Another one, My skin is skin id 29. I set my skin to skin id 299. If i kill my self. My skin will be skin id 29 again instead of skin id 299. There is another demonstration here's the video:
[ame]http://www.youtube.com/watch?v=nKS2_s91YCY[/ame]
Tested many times..
Download:
You will need the following to make the include work:
https://sampforum.blast.hk/showthread.php?pid=1696956#pid1696956 (y_hook).
Download Link: http://pastebin.com/w72D28BN
After you put the include in your pawno/include folder.
Open your script then just do.
pawn Code:
#include <skinfix>
No need functions. The include will do it all.
If you've found bug please let me know it by posting it in this thread.
Credits to
MP2 for the idea (While testing his gBug my brain gives me new idea)
****** for y_hooks
Me for making the include.