01.01.2013, 12:36
i put that players choose skin before login, but it always spawn me with CJ's skin (ID: 0)
enum:
OnPlayerRequestClass
OnPlayerSpawn
loaduserdata
onplayeregister
OnPlayerLogout
and how to make that it saves your skin, and on the next login automatically spawn you with that skin youchoose
enum:
Код:
Skin,
Код:
PlayerInfo[playerid][Skin] = GetPlayerSkin(playerid);
Код:
SetPlayerSkin(playerid, PlayerInfo[playerid][Skin]);
Код:
INI_Int("Skin", PlayerInfo[playerid][Skin]);
Код:
INI_WriteInt(playerFile, "Skin", GetPlayerSkin(playerid));
Код:
PlayerInfo[playerid][Skin] = GetPlayerSkin(playerid);
Код:
INI_WriteInt(playerFile, "Skin", PlayerInfo[playerid][Skin]);