Question about class selection
#2

I believe you can use SetPlayerSkin in OnPlayerRequestClass, so for example:

pawn Код:
public OnPlayerRequestClass(playerid, classid)
{
    // If the player has no saved skin, lets say -1 means no saved skin for
    // an example. Then set the player to their saved skin, you'll probably need
    // to use SetPlayerSkin in OnPlayerSpawn or ...
    if (playerSavedSkin[playerid] != -1)
    {
        SetPlayerSkin(playerid, playerSavedSkin[playerid]);

        // ... you can use SetSpawnInfo in here (or OnPlayerRequestSpawn)
        // if you don't want to worry about setting the skin every time the
        // player spawns.
        // SetSpawnInfo(playerid, playerid, playerSavedSkin[playerid], ...);
    }
}
Reply


Messages In This Thread
Question about class selection - by Celson - 26.10.2010, 11:10
Re: Question about class selection - by Simon - 26.10.2010, 11:23
Re: Question about class selection - by Celson - 26.10.2010, 11:36

Forum Jump:


Users browsing this thread: 1 Guest(s)