12.10.2013, 14:31
Hello.
I have a problem my skin is not saving. It works fine with selecting the skin. I choose the skin and it changes it. But when I die or relog the skin resets and puts a random one.
How to save the skin after choosing. I am using this system: http://gta-sa-mp.de/stuff/mSelection/colorPreview.png
CODE:
I have a problem my skin is not saving. It works fine with selecting the skin. I choose the skin and it changes it. But when I die or relog the skin resets and puts a random one.
How to save the skin after choosing. I am using this system: http://gta-sa-mp.de/stuff/mSelection/colorPreview.png
CODE:
Код:
new skinlist = mS_INVALID_LISTID;
public OnPlayerModelSelection(playerid, response, listid, modelid)
{
if(listid == skinlist)
{
if(response)
{
SendClientMessage(playerid, 0xFF0000FF, "Your has been changed!");
SetPlayerSkin(playerid, modelid);
}
else SendClientMessage(playerid, 0xFF0000FF, "Canceled skin selection");
return 1;
}
return 1;
}
public OnGameModeInit()
{
ManualVehicleEngineAndLights();
new FormatForFaction[20];
skinlist = LoadModelSelectionMenu("skins.txt");
return 1;
}
CMD:clothes(playerid, params[])
{
ShowModelSelectionMenu(playerid, skinlist, "Select Skin");
return 1;
}

