Skin problem.
#6

Did you follow my last post?

Quote:
Originally Posted by DaniceMcHarley
Посмотреть сообщение
pawn Код:
stock RestrictedSkin(id)
{
    switch(id)
    {
        case 124,129,113,127: return 1;
        default: return 0;
    }
        return 0;
}

COMMAND:clothes(playerid, params[])
{
    new tmpid=IsPlayerInBiz(playerid);
    if(tmpid!=-1 && biz[tmpid][biztype]==9 && GetPlayerVirtualWorld(playerid)==biz[tmpid][vbiz])
    {
        new iSkin;
        if(sscanf(params, "d", iSkin)) return SCP(playerid, "[skin id]");
        if(!IsValidSkin(iSkin)) return SCP(playerid, "[skin id]");
        if(RestrictedSkin(iSkin)) return SCP(playerid,"This skin is reserved for faction");
        new query[250], pname[25];
        GetPlayerName(playerid, pname, 24);
        format(query, sizeof(query), "UPDATE PlayerInfo SET Skin=%d WHERE user='%s'", iSkin, pname);
        mysql_query(query);
        SetPlayerSkin(playerid, iSkin);
        PlayerInfo[playerid][Skin] = iSkin;
        return 1;
    }
}
Reply


Messages In This Thread
Skin problem. - by TheLegend1 - 16.08.2015, 15:12
Re: Skin problem. - by DaniceMcHarley - 16.08.2015, 15:15
Re: Skin problem. - by X337 - 16.08.2015, 15:20
Re: Skin problem. - by DaniceMcHarley - 16.08.2015, 15:32
Re: Skin problem. - by TheLegend1 - 16.08.2015, 15:56
Re: Skin problem. - by DaniceMcHarley - 16.08.2015, 15:56
Re: Skin problem. - by TheLegend1 - 16.08.2015, 16:02

Forum Jump:


Users browsing this thread: 3 Guest(s)