AddPlayerClass not showing skin-ID
#1

Hi all,

Im just making a new class-selection intro that is starting like this:

pawn Код:
public OnPlayerRequestClass(playerid, classid)
{
    SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
    SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746);
    SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746);
   
    AddPlayerClass(44, 1958.3783, 1343.1572, 15.3746, 10.0, 0, 0, 0, 0, 0, 0);
    AddPlayerClass(45, 1958.3783, 1343.1572, 15.3746, 10.0, 0, 0, 0, 0, 0, 0);
    switch (classid)
    {
        case 0, 1: // Classes that will be truckdrivers
        {
            // Display the name of the class
            GameTextForPlayer(playerid, "Trucker", 3000, 4);
            print("SHOWCLASS-TEST\n");
        }
    }
   
    return 1;
}
But my question: Why I don't see any skin (44, 45) showing? I see the ''SHOWCLASS-TEST''print in console when I press next and the name is displaying well too....
I only dont see a skin?
Or is it because the camera pos is the same as the player pos?

Can someone plz help me out?
Would be nice!

Thnx Jer

Picture of what I see now:
Reply
#2

AddPlayerClass have to be added under OnGameModeInit.
Reply
#3

Quote:
Originally Posted by costel_nistor96
Посмотреть сообщение
AddPlayerClass have to be added under OnGameModeInit.
I still dont see a skin...
Reply
#4

The skins are spawned on your camera.. make the skins spawn like one coordinate away from the camera.. still making the camera face the skins.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)