Save Players Skin - No Command
#2

Код:
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;
}
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)