Zcmd /setskin [ID] [Skin ID]
#2

Try this (untested):

Код:
CMD:setskin(playerid, params[]) //this is the new syntax for zcmd
{
    new level, id;
    if(sscanf(params, "dd", id, level)) //changed from 'ud' to 'dd'
    {
        if(Player[playerid][AdminLevel] >= 2)
        {
            SendClientMessage(playerid, WHITE, "{FF0000}USAGE:{FFFFFF}  /setskin [playerid] [skin id]");
        }
    }
    else
    {
        if(Player[playerid][AdminLevel] >= 2)
        { // no need for tmp here, you already got 'level' (skinid?) by sscanf
            if(level > 299 || level < 1) return SendClientMessage(playerid, GREY, "Invalid skin ID!");
            Player[id][LastSkin] = level;
            SetPlayerSkin(id, Player[id][LastSkin]);
        }
    }
    return 1;
}
Reply


Messages In This Thread
Zcmd /setskin [ID] [Skin ID] - by GangsTa_ - 25.06.2011, 17:07
Re: Zcmd /setskin [ID] [Skin ID] - by Willow - 25.06.2011, 17:29
Re: Zcmd /setskin [ID] [Skin ID] - by GangsTa_ - 25.06.2011, 17:34
Re: Zcmd /setskin [ID] [Skin ID] - by Markx - 25.06.2011, 17:36
Re: Zcmd /setskin [ID] [Skin ID] - by Tommy_Mandaz - 25.06.2011, 17:38
Re: Zcmd /setskin [ID] [Skin ID] - by GangsTa_ - 25.06.2011, 17:38

Forum Jump:


Users browsing this thread: 1 Guest(s)