[Include] skinfix - Fixes OnPlayerSpawn and Skin Setting
#1

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.

pawn Code:
#include <skinfix>
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.
Reply
#2

Good one, though I don't see the standing anim causing any real problem! But this would fail if you are in a car underwater and you change your skin (ridiculously fat fetched)
Reply
#3

Hmm you got the point.
I've never try that on underwater before.

But here's some several reason why i made it.

It may annoy players. Like me.
Reply
#4

Pretty nice, This will provide fixing bugging of skin settings.. Nice
Reply
#5

pawn Code:
gSkinData[playerid][pSkin] = classid;
classid is not player skin id.

pawn Code:
AddPlayerClass(100, ...); // Classid 0
AddPlayerClass(138, ...); // Classid 1
check this.
Reply
#6

Thanks i will fix it next time.
Reply
#7

Would be better as a part of fixes.inc (in fact, I'm sure it is already!).
Reply
#8

I'm trying to fix all bugs without using fixes. But uhm, Ye sure, Fixes is still needed.
This is not good enough to fix all bugs..
Reply
#9

Quote:
Originally Posted by ******
View Post
Err, why? fixes is trying to fix all bugs, you are trying to fix all bugs - seems silly to have two separate missions with the same goal.
^
Point
Reply
#10

Quote:
Originally Posted by ******
View Post
Err, why? fixes is trying to fix all bugs, you are trying to fix all bugs - seems silly to have two separate missions with the same goal.
I'm giving a try, However like i mention in the 1st post (the main post).
I still recommended the users to use fixes.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)