02.09.2013, 16:55
Firstly you have to save the skins when the players disconect...
then add this line in your load data functions...
then now when he spawn we set his skins...
pawn Код:
public OnPlayerDisconect(playerid)
{
new sID = GetPlayerSkin(playerid); // get the players skins
new INI:File = INI_Open(UserPath(playerid)); // the open his file in the userpatch
INI_SetTag(File,"data");
INI_WriteInt(File,"pSkin",sID); // we write a new line with his skins id
INI_Close(File); // close his files
}
pawn Код:
INI_Int("pSkin",PlayerInfo[playerid][pSkin]);
pawn Код:
SetlayerSkin(playerid,PlayerInfo[playerid][pSkin]);