How To save skin
#4

He mean that you must add
pawn Код:
INI_WriteInt("Skin", GetPlayerSkin(playerid));
on
pawn Код:
public OnPlayerDisconnect(playerid, reason)
And just use the command like so
pawn Код:
CMD:skin(playerid,params[])
{
    new skinid,string[128],file[64];
    if(sscanf(params, "i",skinid)) return SendClientMessage(playerid,0xFFDD00AA, "** Usage: /skin [skinid].");
    if(skinid > 299 || skinid < 0) return SendClientMessage(playerid,0xFFDD00AA, "* Invalid Skin ID.");
    format(string,sizeof(string), "** You changed your skin to %d",skinid);
    SendClientMessage(playerid,0xFFDD00AA,string);
    SetPlayerSkin(playerid,skinid);
    return 1;
}
Reply


Messages In This Thread
How To save skin - by Lay - 13.10.2013, 08:45
Re: How To save skin - by AIped - 13.10.2013, 08:53
Re: How To save skin - by Lay - 13.10.2013, 08:54
Re: How To save skin - by ]Rafaellos[ - 13.10.2013, 08:57
Re : How To save skin - by Predat3r - 13.10.2013, 08:58
Re: How To save skin - by Lay - 13.10.2013, 09:08
Re: How To save skin - by ]Rafaellos[ - 13.10.2013, 09:42

Forum Jump:


Users browsing this thread: