SA-MP Forums Archive
0.3.8 SetSpawnInfo custom skin bug - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP DL Edition (https://sampforum.blast.hk/forumdisplay.php?fid=92)
+--- Forum: SA-MP 0.3.DL (https://sampforum.blast.hk/forumdisplay.php?fid=90)
+--- Thread: 0.3.8 SetSpawnInfo custom skin bug (/showthread.php?tid=644429)



0.3.8 SetSpawnInfo custom skin bug - m4karow - 07.11.2017

Hey

I'm using setspawninfo at the end of loading player's data. This data loading starts after OnPlayerFinishedDownloading called but the player have CJ skin. The bug is fixed, if i use SetPlayerSkin after spawning.


Re: 0.3.8 SetSpawnInfo custom skin bug - Psycho96 - 07.11.2017

I think it's your code, maybe it's wrong, I'm using it with custom skins and it works perfectly. Are u sure you're using your custom ID correctly?


Re: 0.3.8 SetSpawnInfo custom skin bug - m4karow - 07.11.2017

how i could be wrong if i loading the player datas after the download finished? the skin id is 20007 and i use this id in the setspawninfo but i spawning with CJ skin. but if i use /setskin, or SetPlayerSkin after spawning, the custom skin works properly.
this is my artconfig line:
AddCharModel(305, 20007, "persn6.dff", "persn6.txd");


Re: 0.3.8 SetSpawnInfo custom skin bug - Psycho96 - 07.11.2017

Can you show your pawn code line?
Your artconfig line seems good.


Re: 0.3.8 SetSpawnInfo custom skin bug - aoky - 07.11.2017

The new models only work with SetPlayerSkin. You'll have to find a new way around it.
Kalcor said:
Quote:

Custom skins can only be used with SetPlayerSkin().




Re: 0.3.8 SetSpawnInfo custom skin bug - m4karow - 07.11.2017

Quote:
Originally Posted by aoky
View Post
The new models only work with SetPlayerSkin. You'll have to find a new way around it.
Kalcor said:
yeah i guessed, thanks
but where is that post?


Re: 0.3.8 SetSpawnInfo custom skin bug - aoky - 07.11.2017

Quote:
Originally Posted by m4karow
View Post
yeah i guessed, thanks
but where is that post?
http://forum.sa-mp.com/showpost.php?...50&postcount=2


Here bud.


Re: 0.3.8 SetSpawnInfo custom skin bug - Psycho96 - 07.11.2017

Quote:
Originally Posted by aoky
View Post
The new models only work with SetPlayerSkin. You'll have to find a new way around it.
Kalcor said:
So, why I'm using SetSpawnInfo and it's setting ok the skin? :v


Re: 0.3.8 SetSpawnInfo custom skin bug - Xeon™ - 07.11.2017

Quote:
Originally Posted by Psycho96
View Post
So, why I'm using SetSpawnInfo and it's setting ok the skin? :v
i think you are using the RedirectSkin by Freeshncool?


Re: 0.3.8 SetSpawnInfo custom skin bug - Psycho96 - 07.11.2017

Quote:
Originally Posted by Xeon™
View Post
i think you are using the RedirectSkin by Freeshncool?
Nope, I just record a video about it:

https://www.youtube.com/watch?v=WN3s4npMkdM

It's with SetSpawnInfo and SpawnPlayer


Re: 0.3.8 SetSpawnInfo custom skin bug - aoky - 07.11.2017

Quote:
Originally Posted by Psycho96
View Post
Nope, I just record a video about it:

https://www.youtube.com/watch?v=WN3s4npMkdM

It's with SetSpawnInfo and SpawnPlayer
You sure you don't have the skin in your actual mod files?