18.10.2013, 07:03
You will have to store datas for that.
pawn Код:
enum PlayerInfo
{
pSkin
}
new pInfo[MAX_PLAYERS][PlayerInfo];
forward loadaccount_user(playerid, name[], value[]);
public loadaccount_user(playerid, name[], value[])
{
INI_Int("Skin", pInfo[playerid][pSkin]);
return 1;
}
public OnPlayerDisconnect(playerid, reason)
{
new INI:file = INI_Open(Path(playerid));
INI_SetTag(file,"Player's Data");
INI_WriteInt(file,"Skin",pInfo[playerid][pSkin]
INI_Close(file);
return 1;
}