Save Players Skin - No Command
#7

Quote:
Originally Posted by justinnater
Посмотреть сообщение
Код:
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);
}
Maybe that?
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]);
}
This is just to give you a quick look on how you should do it.
yes work bro
thanks really
Reply


Messages In This Thread
Save Players Skin - No Command - by zudokuxd10 - 22.12.2012, 12:08
AW: Save Players Skin - No Command - by Blackazur - 22.12.2012, 12:14
Re: AW: Save Players Skin - No Command - by zudokuxd10 - 22.12.2012, 13:06
Re: Save Players Skin - No Command - by zudokuxd10 - 22.12.2012, 14:40
Re: Save Players Skin - No Command - by justinnater - 22.12.2012, 14:53
Re: Save Players Skin - No Command - by Faisal_khan - 22.12.2012, 14:57
Re: Save Players Skin - No Command - by zudokuxd10 - 22.12.2012, 15:28

Forum Jump:


Users browsing this thread: 1 Guest(s)