26.10.2010, 11:23
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], ...);
}
}