How to add skins?
#1

Hi,

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

https://sampwiki.blast.hk/wiki/AddPlayerClass
Reply
#3

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

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.
Reply
#5

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
Reply
#6

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;
}
Reply
#7

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
Reply
#8

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

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
Reply
#10

help
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)