08.11.2015, 03:51
(
Последний раз редактировалось Sh4d0w2; 08.11.2015 в 05:31.
)
For this,you need to make the choosen skin saved.
Add this /saveskin command and it should work :
Remember to add
on top
Add this /saveskin command and it should work :
PHP код:
COMMAND:saveskin(playerid, params[])
{
new skinid, string[256];
if(sscanf(params, "i", skinid)) SendClientMessage(playerid, 0xFFFFFFAA,"usage: /saveskin[skinid]");
if(skinid > 299) return SendClientMessage(playerid,0xFF0000AA,"error: Available Skin: 0 - 299 !");
SetPlayerSkin(playerid,skinid);
format(string, sizeof(string), "You changed your Skin-ID succesful!");
SendClientMessage(playerid, 0xFF0000AA, string);
// Now we will save the Skin.
new INI:File = INI_Open(UserPath(playerid));
INI_SetTag(File,"data");
INI_WriteInt(File,"SkinID",skinid);
INI_Close(File);
return 1;
}
PHP код:
#include <YSI\y_ini>