22.12.2012, 15:28
Quote:
|
Код:
public OnPlayerDisconect(playerid)
{
new skin = GetPlayerSkin(playerid);
new INI:File = INI_Open(UserPath(playerid));
INI_SetTag(File,"data");
INI_WriteInt(File,"pSkin",skin);
INI_Close(File);
}
Never used Y_Ini so cant help you with setting the players skin when spawning. EDIT: I have been looking around for you, and this should work (Untested) Код:
enum pInfo
{
pSkin
}
newPlayerInfo[MAX_PLAYERS][pInfo];
forward LoadUser_data(playerid,name[],value[]);
public LoadUser_data(playerid,name[],value[])
{
INI_Int("pSkin",PlayerInfo[playerid][pSkin]);
return 1;
}
OnPlayerSpawn(playerid)
{
SetlayerSkin(playerid,PlayerInfo[playerid][pSkin]);
}
|

thanks really


