SA-MP Forums Archive
SetSpawnInfo & GetPlayerSkin - 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: SetSpawnInfo & GetPlayerSkin (/showthread.php?tid=645318)



SetSpawnInfo & GetPlayerSkin - maraz1987 - 25.11.2017

The skin values of the following functions do not get custom skin value.

HTML Code:
new playerskin = GetPlayerSkin(playerid);

My skin value: 25000
Player skin returned: 0 (CJ)
HTML Code:
SetSpawnInfo(playerid, team, skin, Float:x, Float:y, Float:z, Float:rotation, weapon1, weapon1_ammo, weapon2, weapon2_ammo, weapon3, weapon3_ammo)

Selected skin no: 25000
Returned skin CJ (0)



Re: SetSpawnInfo & GetPlayerSkin - Admigo - 25.11.2017

Custom skins can only be used with SetPlayerSkin.


Re: SetSpawnInfo & GetPlayerSkin - beckzy - 26.11.2017

Quote:
Originally Posted by Admigo
View Post
Custom skins can only be used with SetPlayerSkin.
I hope that isn't the case when 0.3.8 is officially released; I hope that sometime during the RC phase - AddPlayerClass, AddPlayerClassEx, SetSpawnInfo, GetPlayerSkin, and (I've just read about this one) CreateActor - all support custom skins.


Re: SetSpawnInfo & GetPlayerSkin - Admigo - 26.11.2017

Quote:
Originally Posted by BeckzyBoi
View Post
I hope that isn't the case when 0.3.8 is officially released; I hope that sometime during the RC phase - AddPlayerClass, AddPlayerClassEx, SetSpawnInfo, GetPlayerSkin, and (I've just read about this one) CreateActor - all support custom skins.
Quote from Kalcor:
Quote:

I don't think custom skins are going to play well with the old class selection system. I might fix it before release.

Actors already support custom skins. Only there is an issue when you aim on the actor like the actor is trying to move.


Re: SetSpawnInfo & GetPlayerSkin - beckzy - 26.11.2017

Quote:
Originally Posted by Admigo
View Post
Actors already support custom skins. Only there is an issue when you aim on the actor like the actor is trying to move.
I read that CreateActor returns 65535 with custom skins.


Re: SetSpawnInfo & GetPlayerSkin - Admigo - 26.11.2017

I have no problems with actors.



Re: SetSpawnInfo & GetPlayerSkin - beckzy - 26.11.2017

What ID does CreateActor return when you create the dog?