SA-MP Forums Archive
How to add skins? - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: How to add skins? (/showthread.php?tid=125709)



How to add skins? - Rubennnnn - 05.02.2010

Hi,

When spawning you can, in most servers, chose of multiple skins.
How to add skins?


Re: How to add skins? - Correlli - 05.02.2010

https://sampwiki.blast.hk/wiki/AddPlayerClass


Re: How to add skins? - Rubennnnn - 05.02.2010

Quote:
Originally Posted by Don Correlli
And then when you want to select a skin, you can't see it.


Re: How to add skins? - Correlli - 05.02.2010

Quote:
Originally Posted by Rubennnnn
And then when you want to select a skin, you can't see it.
You need to set the correct code for the player camera, check the wiki.


Re: How to add skins? - Rubennnnn - 05.02.2010

Quote:
Originally Posted by Don Correlli
Quote:
Originally Posted by Rubennnnn
And then when you want to select a skin, you can't see it.
You need to set the correct code for the player camera, check the wiki.
pawn Код:
AddPlayerClass(0,-2721.8162, -318.2610, 7.8438, 45.9776, 0, 0, 0, 0, 0, 0);
    AddPlayerClass(1, -2721.8162, -318.2610, 7.8438, 45.9776, 0, 0, 0, 0, 0, 0);
and
pawn Код:
public OnPlayerRequestClass(playerid, classid)
{
    SetPlayerPos(playerid, -2721.8162, -318.2610, 7.8438);
    SetPlayerCameraPos(playerid, -2721.8162, -318.2610, 7.8438);
    SetPlayerCameraLookAt(playerid, -2721.8162, -318.2610, 7.8438);
    return 1;
}
It doesn't show the skin


Re: How to add skins? - Rzzr - 05.02.2010

Because you hvae the camera in your player
Try this:
pawn Код:
public OnPlayerRequestClass(playerid, classid)
{
SetPlayerPos(playerid, -2721.8162, -318.2610, 7.8438);
SetPlayerCameraPos(playerid, -2721.8162, -318.2610-7, 7.8438);
SetPlayerCameraLookAt(playerid, -2721.8162, -318.2610, 7.8438);
return 1;
}



Re: How to add skins? - Rubennnnn - 05.02.2010

Quote:
Originally Posted by [ST
Рυтўнвαѕ ]
Because you hvae the camera in your player
Try this:
pawn Код:
public OnPlayerRequestClass(playerid, classid)
{
SetPlayerPos(playerid, -2721.8162, -318.2610, 7.8438);
SetPlayerCameraPos(playerid, -2721.8162, -318.2610-7, 7.8438);
SetPlayerCameraLookAt(playerid, -2721.8162, -318.2610, 7.8438);
return 1;
}
That works but the camera is in the wall and you see his side-back


Re: How to add skins? - Correlli - 05.02.2010

Search for camera script by Sandra, you can save/load the camera positions with it.


Re: How to add skins? - Rubennnnn - 05.02.2010

Quote:
Originally Posted by Don Correlli
Search for camera script by Sandra, you can save/load the camera positions with it.
Doesn't exist anymore


Re: How to add skins? - Rubennnnn - 05.02.2010

help