29.09.2015, 09:34
(
Последний раз редактировалось anassmaroc; 29.09.2015 в 10:36.
Причина: Skin Save Problйm
)
hi guys i want save Skin From Skinlist (OnPlayerModelSelection)
Help me Please i Want is Saving
Help me Please i Want is Saving
PHP код:
enum
Skin,
LoadPlayerAccount
INI_Int("Skin", PlayerInfo[playerid][Skin]);
OnPlayerConnect
PlayerInfo[playerid][Skin] = 0;
OnPlayerSpawn
SetPlayerSkin( playerid, PlayerInfo[playerid][Skin] );
OnPlayerModelSelection
if(listid == skinlist)
{
if(response)
{
if(PlayerInfo[playerid][Skin] == 1)
{
new skinid;
SetPlayerSkin(PlayerInfo[playerid][Skin], modelid);
new INI:File = INI_Open(UserPath(playerid));
INI_SetTag(File,"Player's Data");
INI_WriteInt(File, "Skin",skinid);
INI_Close(File);
SendClientMessage(playerid, 0xFF0000FF, " skin Changed");
}
}
else SendClientMessage(playerid, 0xFF0000FF, "Canceled skin selection");
return 1;
}
OnPlayerDisconnect
INI_WriteInt(File, "Skin", PlayerInfo[playerid][Skin]);