Skin saving. (y_INI)
#3

Firstly you have to save the skins when the players disconect...
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
}
then add this line in your load data functions...
pawn Код:
INI_Int("pSkin",PlayerInfo[playerid][pSkin]);
then now when he spawn we set his skins...
pawn Код:
SetlayerSkin(playerid,PlayerInfo[playerid][pSkin]);
Reply


Messages In This Thread
Skin saving. (y_INI) - by DaniceMcHarley - 02.09.2013, 15:14
Re: Skin saving. (y_INI) - by Ada32 - 02.09.2013, 15:50
Re : Skin saving. (y_INI) - by Matnix - 02.09.2013, 16:55
Re: Skin saving. (y_INI) - by DaniceMcHarley - 03.09.2013, 08:41
Re: Skin saving. (y_INI) - by Dragonsaurus - 03.09.2013, 08:49
Re: Skin saving. (y_INI) - by DaniceMcHarley - 03.09.2013, 16:14

Forum Jump:


Users browsing this thread: 2 Guest(s)